This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const cc=console; | |
var a=require('yargs').argv; | |
if(a.params=="liumingtai"){ | |
cc.log("真确"); | |
}else{ | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install --save-dev babel-plugin-transform-decorators | |
{ | |
"plugins": ["transform-decorators"] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "keys": ["f12"], "command": "htmlprettify"}, | |
{ "keys": ["f1"], "command": "fold" }, | |
{ "keys": ["f2"], "command": "unfold" }, | |
{ "keys": ["ctrl+l"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} }, | |
{ "keys": ["alt+/"], "command": "auto_complete" }, | |
{ "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context": | |
[ | |
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Package Control Messages | |
======================== | |
SublimeCodeIntel | |
---------------- | |
SublimeCodeIntel | |
================ | |
____ _ _ _ ____ _ ___ _ _ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*actually i dont want to leanr the shit chai 没办法*/ | |
import chai from 'chai' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import rebound from 'rebound' | |
var springSystem = new rebound.SpringSystem(); | |
var spring = springSystem.createSpring(50, 3);/* 50---3 */ | |
function setSpring(el) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SpringConfig | |
.fromOrigamiTensionAndFriction | |
``` | |
fromOrigamiTensionAndFriction: function(tension, friction) { | |
return new SpringConfig( | |
OrigamiValueConverter.tensionFromOrigamiValue(tension), | |
OrigamiValueConverter.frictionFromOrigamiValue(friction)); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import ReactDOM, { findDOMNode } from 'react-dom' | |
// import addClass from 'dom-helpers/class/addClass'; | |
import { addClass } from 'dom-helpers/class'; | |
import raf from 'dom-helpers/util/requestAnimationFrame'; | |
import { querySelectorAll } from 'dom-helpers/query'; | |
const timeout = 400 | |
export class Group extends React.Component { | |
constructor(props) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Tween.js | |
* t: current time(当前时间); | |
* b: beginning value(初始值); | |
* c: change in value(变化量); | |
* d: duration(持续时间)。 | |
* you can visit 'http://easings.net/zh-cn' to get effect | |
*/ | |
var Tween = { | |
Linear: function (t, b, c, d) { return c * t / d + b; }, |