This file contains 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
/** | |
* Created by lixuexin on 2017/9/15. | |
*/ | |
import { createStore, combineReducers } from 'redux'; | |
import _ from 'lodash'; | |
const reducer = combineReducers({ | |
dynamicRoot: (state = {}, action) => { | |
// if your want to change all reducer,see |
This file contains 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
/** | |
* Created by lixuexin on 2017/8/1. | |
*/ | |
// how to use | |
// 1: selected the items you want to add to omnifocus ( press command for multi select ) | |
// 2: open chrome(>59) console and paste the follow code | |
var count = 0; | |
Array.prototype.forEach.call( | |
document.getElementsByClassName('context-menu-selection'), | |
item => { |
This file contains 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
var R = require('ramda'); | |
var add = (b,str)=>str.split(b); | |
const curryAdd = R.curry(add); | |
curryAdd(" ")("2 1") |
This file contains 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 flash.display.DisplayObject; | |
import flash.display.Sprite; | |
import flash.events.Event; | |
import flash.geom.Point; | |
import flash.utils.getTimer; | |
class GamblingCircle | |
{ | |
private var path:Vector.<Point>; | |
private var items:Vector.<DisplayObject>; |
This file contains 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 | |
{ | |
import com.greensock.TweenLite; | |
import com.greensock.easing.Quad; | |
import com.greensock.easing.Quart; | |
import com.greensock.easing.Quint; | |
import flash.display.Sprite; | |
import flash.events.MouseEvent; | |
public class CircularCoverFlow extends Sprite |
This file contains 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
public function getLegalIndexFromArray(index,arrayLength):int | |
{ | |
return (index%arrayLength+arrayLength)%arrayLength; | |
} |
This file contains 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 utils | |
{ | |
import flash.system.System; | |
import flash.utils.describeType; | |
public class FunctionUtils | |
{ | |
/** | |
* 不适合构造函数 | |
* @param target |
This file contains 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 | |
{ | |
import flash.events.TimerEvent; | |
import flash.utils.Timer; | |
/** | |
* 计时器 | |
* @author lixuexin | |
* | |
*/ | |
public class Clock |
This file contains 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 demo | |
{ | |
import flash.display.Sprite; | |
import flash.events.*; | |
import flash.geom.Matrix; | |
import flash.geom.Point; | |
public class FishRoundFly extends Sprite | |
{ | |
private var fish:Sprite = new Sprite; |
This file contains 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 | |
{ | |
import com.bit101.components.InputText; | |
import com.bit101.components.PushButton; | |
import flash.display.Shape; | |
import flash.display.Sprite; | |
import flash.display.Stage; | |
import flash.events.MouseEvent; | |
import flash.geom.Matrix3D; |