config/
default.js
production.js
components/
button/
styles/
input/
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 _ from 'lodash'; | |
const wechatScript = '//res.wx.qq.com/open/js/jweixin-1.1.0.js'; | |
export const loadSdk = () => | |
new Promise((resolve) => { | |
require('scriptjs')(wechatScript, () => { | |
resolve(global.wx); | |
}); | |
}); |
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
.app { | |
padding: 6px 20px 30px; | |
} | |
.subText { | |
composes: text from "./Child.css"; | |
color: red; | |
} |
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
function docker-safe-rm { | |
(docker ps -a -q -f name=$1$ || echo :) | xargs docker rm -f | |
} |
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
# kill all docker process | |
docker rm $(docker ps -a -q) | |
# remove untaged images | |
docker rmi $(docker images -a | grep "^<none>" | awk '{print $3}') |
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 { createStore } from 'reflux'; | |
import GalleryActions from '../actions/GalleryActions' | |
export default createStore({ | |
init(){ | |
this.galleryMap = {} | |
this.listenTo(GalleryActions.listGalleries.completed, 'onGalleryListUpdate') | |
this.listenTo(GalleryActions.getGallery.completed, 'onGalleryUpdate') |
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 qs from 'qs' | |
import scriptjs from 'scriptjs' | |
const $schoolMap = document.getElementById('school-map'); | |
const baiduMapUri = 'http://api.map.baidu.com/getscript'; | |
const baiduMapConf = { | |
v: '2.0', | |
ak: 'YOUR_ACCESS_KEY' | |
}; |
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 Immutable from 'immutable'; | |
import _ from 'lodash' | |
import jsen from 'jsen' | |
import isTypeArray from './../libs/isTypeArray'; | |
import updateData from './../libs/updateData'; | |
import completeSchema from './../libs/completeSchema'; | |
function SchemaRecord(schema = {}) { |
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 through = require('through'); | |
var gutil = require('gulp-util'); | |
var path = require('path'); | |
module.exports = function() { | |
var gulp = this; | |
this.isWatching = false; | |
this.setWatcher = function() { |
brew install docker
&&brew install boot2docker
.boot2docker download
to get the lastest server iso.boot2docker init
to host it to VitualBox.boot2docker up
to start the boot2docker-vm. follow console and set environment variables. if you have AnyConnect VPN,DOCKER_HOST
should be set totcp://127.0.0.1:2376
and runVBoxManage controlvm boot2docker-vm natpf1 "docker,tcp,127.0.0.1,2376,,2376"
docker version
to check anything is ok.