Giter Club home page Giter Club logo

play's People

Watchers

James Cloos avatar pimgeek avatar

play's Issues

如何编写并成功运行一个简单的 “hello world” MRI 互动脚本?

如何登录?

如何打开互动管理?

如何判断 MRI 仿真器已经完全载入?

如何管理项目目录?

如何创建一个新的 MRI 仿真器专用脚本?

  • 使用小写字母
  • 不要加空格,用下划线分隔不同的单词
  • 末尾要以 .json 结尾
    例如: hello_world.json

熟悉 hello_world.json 脚本源码

如何填写 uri?

如何填写 priority?

如何填写 ttl?

如何填写 interval?

如何填写 events?

如何填写 condition?

如何填写 beads?

在 beads 对象中,如何填写 suburi?

在 beads 对象中,如何填写 condition?

在 beads 对象中,如何填写 show?

在 beads 对象中,如何填写 cmd?

点击蓝色背景的 “重新初始化” 按钮

点击绿色背景的 [mri.open] 按钮

在制作教程的过程中,我问了小白团队哪些问题?

我在自己的仿真器环境里,可以把所有与 Hello World 脚本无关的目录和文件都删除,然后提交 PR 吗?

你可以这么调试,但是这个PR我肯定不会合并

我发现脚本之间的依赖关系判断,超出了 Hello World 教程应该覆盖的范围。在以后给新手创建仿真器账号时,能否一上来只给 TA 一个空的项目?或者换个方式,我会教新手删除多余的目录,把 Hello World 讲清楚以后,再告诉 TA 怎么还原那些被删除的目录?

  • 你先教新手清空目录,然后开发 hello world
  • 还原就别想了,很麻烦,需要我配合操作的
  • 请联系李飞帮你恢复目录到开发前的状态
  • 你的建议都很非常好,我会考虑满足,回头构想一个计划

python map 的同时处理科学计数的数值

import decimal

arr = [[1,' a ', 3.0 ],[' 4?' ,5.112321E15, None]]

def isfloat(val):
    try:
        float(val)
        return True
    except:
        return False

        
def isint(val):
    try:
        int(val)
        return True
    except:
        return False

def mystr(val):
    if (isfloat(val)):
        return val
    else:
        return str(val)

def mystrip(val):
    if (isint(val)):
        return val
    else:
        return val.strip(' ?')

new_arr = []
for row in arr:
    tmp1 = list(map(mystr, row))
    tmp2 = list(map(mystrip, tmp1))
    new_arr.append(tmp2)

print(new_arr)

TMair 2018-01-20 日的会议是怎样的?

主题:Conflict in Work

Table Topic 环节是怎样的?

主持人:Darwin Wu

引导词:In our daily life, all of us have been encountered with some kind of interpersonal conflicts. Some of them are small and easy to manage, while others are big & challenging, which might take our precious time and energy to deal with. Sometimes I wonder is there any way to totally avoid conflicts? Or, at least some way to turn big conficts into smaller ones?

In today's table topic session, we are going to talk about "conflicts", either in your family, your office, your college, or in public places... You can choose a type of question and we will do role playing games. I will be standing here to facilitate your role playing. Each of you will have about 2 minutes to express your ideas.

Now, before we start, let me make my point clear, there're no correct answers to these questions, just think over it and say something about it.

Table Topic Questions

Family Scene

参考链接 1

Work Overtime #gtd

You had worked overtime for 2 days in line. Today your boss asked you to deliver a report before tomorrow morning, so you have to work overtime again. Your husband/wife is angry and speak to you (on the phone): "you never come back on time, which one is more important to you? work or me?!"

What would you reply?

suggested answer: “I feel unimportant to you when you work overtime and don’t text me.”
Differ in Mood #gtd

You have just enjoyed an interesting short video on WeChat, and asked your partner to watch with you together, but your husband/wife behaves impatiently and replies: "Okay..okay! I've seen it. Totally nonsense! A waste of time. Could you leave me alone?"

What would you reply?

suggested answer: “So, you feel like you can calm down and relax best by yourself, is that right?”
Confusing Expression #gtd

One day, you requested your husband/wife to clean the dishes right now, but he/she refused and said something like: "I've had enough of this! Don't you see I'm busy now? Could you give me more space?"

What would you reply?

suggested behaviour 1: Ask for clarification. "Space" could simply mean more time and room to think things over.
suggested behaviour 2: When something is bothering you, address it asap. Don’t spend time by yourself guessing over the reason.

Office Scene

参考链接 1

Too Much Noise

You want to focus on your email writing, but your colleagues are talking aloud about gossip news and laughing, totally ignores your situation. You hope they could keep quiet.

What should your say?

Suggested Answer: “I’ve overheard a lot of your private conversation. I don’t want to overhear these things, but your voice are too loud!”
Using Harsh Words on Others

You are a project manager, one your subordinates in your team misunderstood your requirement, when she/he deliver the wrong results, one week had passed. You felt very upset and said "You are so stuipd! how could you be wrong on such simple task?" But later you regretted doing so.

What would you say?

Suggested Answer: “I’m sorry for having said those hurtful things. I was upset, but it wasn’t right of me to blame you like that.”
Different Ways to Do Things

You are experienced in your project work, one day you need to collaborate with another new colleague, who wants to do it in her/his own way, but you are not sure whether his/her new way will work as smoothly as usual.

What would you do to ?

Suggested answer: “Let’s sit down and discuss the options that we have. Together we can identify the best approach to this assignment.”
Urgent & Extra Work

You are a project manager. One day you were required to submit a important project progress report by midnight that day. It had to be done with the help of your subordinate. But there was only 1 hours before the end of office hour.

What would you say to this subordinate?

Suggested Answer: “We really need to submit this report by midnight tonight. I know you don’t want to work overtime, but it's impossible to get it done before 18:00. What if you work for two extra hours today, and you can either come in two hours late or leave two hours early on tomorrow?”

College Scene

Lights Off Time #gtd

You want to go to sleep at around 9:30pm, but your roomate keep playing computer game and produce lots of noise until midnight(with the overhead lights on), totally ignoring your needs. You feel annoyed and want to let your roommate know.

What would you say? And when would you say it?

Suggested Answer 1: After the roommate finish playing, tell she/he that “I have trouble falling asleep when you playing in the room. Next time, could you check if I'm sleeping before playing computer game?”
Suggested Answer 2: Setup rules like “Put on earphone after 9:30pm, turn off the overhead light and put on table lamp, stop making noise, etc.”
Suggested Answer 3: Apply for a room change
Cleaning Duties

You like keeping the dorm clean and neat. But one of your roommate often ignore others and drop trashs everywhere, but don't clean it for her/himself. You want to let the roommate pay more attention to her/his own duties.

What would you do to solve this problem?

Suggest Answer: draft a cleaning schedule for everyone in the dorm. And wait until everyone is in dorm, hold a roommates' meeting to discuss this.

Public Scene

Jumping the Queue

You are standing in the end of a queue waiting to order railway ticket, but someone come here in a hurry and stand in front of you without any words.

In this case, what would you say to her/him?

Suggested Answer: “Excuse me, but I believe I was waiting in line before you.”
Naughty Children

You are having dinner with your friends in a restaurant, but there are children's laughter & crying noise from the nearby table. They even running around tables and make you disturbed.

What would you do in this situation?

Suggested Answer: Slowly walk to the children, and lower down your body and told them secretly: “Hi, little friends! Do you know we are playing a game called ‘Talking Quietly Around The Table’? When you talk too loudly, the foods will be unhappy and give us BAD taste!”

用 python 处理 MS Excel 文件的方法

# -*- coding:utf-8 -*-
#把程序直接放入表格所在的文件夹内,双击运行即可
import os,shutil
import xlrd
from xlwt import *
pathx=os.path.join('.','分割sheet后的表格').decode('utf-8')  #处理后用于存放表格的文件夹
try:
    shutil.rmtree(pathx)  #删除同名文件夹
except WindowsError:
    print "dir is not exist"
os.makedirs(pathx)    #创建文件夹
dir=os.listdir('.')  #获取当前目录下的所有文件
for i in dir:
    if 'xls' in i[-4:]:  #筛选以xls或xlsx为后缀的文件
        filename=unicode(i,'gbk')
        data=xlrd.open_workbook(filename)  #打开文件
        for q in range(len(data.sheets())):
            w=Workbook(encoding='gbk')   #定义新建表格文件的编码格式
            a=data.sheet_by_index(q)  #把第q个页的信息付给变量a
            name=data.sheets()[q].name
            nrows=a.nrows  #行数
            ncols=a.ncols  #列数
            ws=w.add_sheet(name)     #给文件添加sheet页
            for s in range(nrows):   #遍历所有的单元格内容
                for x in range(ncols):
                    number = a.cell(s,x).value
                    ws.write(s,x,p)  #写入单元格内容
            filename=name+'.xls'
            w.save(filename)
            shutil.move(filename,pathx)

pazo 提出的 Holobrain 创想

关于 pazo 提出的 Holobrain 创想,我可以了解什么? #pazo

性质 #pazo

文件管理系统

这个是重要特性,节点下要有“存储”文件的能力。如今的文件系统(文件夹)实现方式从技术上而言只是在文件夹下存储了文件存储的硬件地址。路径的定位方式虽然与物理存储有一定相关性,但并非完全对应。此功能同The Brain中Thought的Link to File等。我想最后能将程序也变成一个节点,“用什么程序打开”变成一种联系。

笔记库

图文输出软件

愿景 #pazo

图形关系组织的文件存放方式

通过非线性编辑产生线性内容(可参照视频非编系统)

多渠道、高效率、精准的索引定位

特性 #pazo

软件特性

全平台

可导出

全局索引

云端同步(可选)

多语言混排

LaTeX数学公式编辑支持

逻辑架构

节点 Node

关键字或内容标题

接口 Interface
父接口 Parent
子接口 Child
跳转接口 Jump
样式
文字颜色 Color
文字背景色 Background Color
图标 Icon

放于节点文字前用以加强区分度和观感

圆角方形/圆形
注释 Label

节点的注释描述

鼠标悬浮于节点时显示,作为节点的简要补充
类 Class

节点的类别属性,单个节点只能有一个类

可通过类创建隐式父节点
或者我们可以将类理解为层级
通过类将树形图在类库中呈剖面形式展示
标签 Tag

节点的标签属性,单个节点可拥有多个标签

显示标签标记,鼠标悬停时显示标签
历史 History

查看该节点的修改历史

样式
动作
时间
想法

联系 Link

节点与节点之间的关系

方向 Direction
类 Type
注释 Label
半透明显示,鼠标悬停完全显示
历史 History

样式同节点历史

添加注释 Added Label
变更注释 Changed Label
删除注释 Removed Label
类设定:Set Type
方向变更 Changed Direction
颜色设定 Set Color
粗细设置 Changed Thickness
样式设定 Set Style
创建笔记 Created Note
变更笔记 Changed Note
显示特性
颜色
样式
粗细

笔记 Notes

节点或联系下的图文页

文本框功能
markdown支持
LaTeX支持
复选框列表 To-do List(markdown那个太简陋)
多媒体添加
浏览器功能(即网页链接直接访问)

附件 Attachment

节点或联系下的附件

可以理解为现在的文件夹,可进行文件夹该有的所有操作。也应该是一个浏览器,可以随时保存网页。

类库 Class Library

内容聚合、鸟瞰功能、分组功能

以类型分库,按父节点分组,成多级树形包含式分组(同文件夹)。支持多对多特性。即A、B同时包含C,且A与B同级,则两个组中均可查看到C。我们可以理解为树状剖面图。
内容聚合,标签树、标签云等

界面

节点图 Map

节点关系图谱

普通模式 Normal

显示该节点的所有关系节点和其父节点下所有同级子节点

提纲模式 Outline

显示该节点的所有下级节点、与其有跳转关系节点及该跳转节点的所有下级节点

思维导图 Mind Map

显示所有节点与关系

路径模式 Path

显示从某节点到现所在节点的路径及现所在节点的子节点与联想节点

类库模式 Class Library

显示某一类(层)的节点

该模式下应当支持节点规则排列,而拒绝节点间进行连接

内容页 Report

采用浏览器的多页面样式

笔记页 Note
附件页 Attachment
关联文件
截图
访问链接

编辑界面 editor

输出内容界面,参考现有的非编系统

可能使用时间线 Time Line 作为初步组织,然后通过产生一个新文件来进行精校和润色等。
需要一个暂时寄存的素材库,即重新建立库级文档

索引

方式

关键字
节点名
标签
笔记内关键字
时间
特性
已删除
重名
孤立节点
较少的父节点
附件
文件类型

各种大调/小调的调号变化规则是怎样的?

Pasted image

序号	调号	以 C 调为准的升(降)
1	C	无需升降
2	G	(#)4
3	D	(#)4,(#)1
4	A	(#)4,(#)1,(#)5
5	E	(#)4,(#)1,(#)5,(#)2
6	B	(#)4,(#)1,(#)5,(#)2,(#)6
7	♯F	(#)4,(#)1,(#)5,(#)2,(#)6,(#)3
8	♯C	(#)4,(#)1,(#)5,(#)2,(#)6,(#)3,(#)7
9	F	(b)7
10	♭B	(b)7,(b)3
11	♭E	(b)7,(b)3,(b)6
12	♭A	(b)7,(b)3,(b)6,(b)2
13	♭D	(b)7,(b)3,(b)6,(b)2,(b)5
14	♭G	(b)7,(b)3,(b)6,(b)2,(b)5,(b)1
15	♭C	(b)7,(b)3,(b)6,(b)2,(b)5,(b)1,(b)4

参考链接

试题中常见的例子

  • 如果是 # (G 大调),就检查所有的 fa 是否带(#)
  • 如果是 b (F 大调),就检查所有的 xi 是否带(b)
  • 如果是 bb(bB大调),就检查所有的 mi 和 xi 是否带(b)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.