Skip to content

Instantly share code, notes, and snippets.

View zjhiphop's full-sized avatar
🎯
Focusing

newboy zjhiphop

🎯
Focusing
  • cloud-tea
  • USA
View GitHub Profile
# Reference:
https://www.cloudgear.net/blog/2015/5-minutes-kubernetes-setup/
# install homebrew and cask
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# install virtualbox
brew cask install virtualbox
# install dockertoolbox
❯ rollup --version
rollup version 0.25.3
❯ time rollup -c ./rollup.js
rollup -c ./rollup.js 4.65s user 0.22s system 118% cpu 4.131 total
❯ time webpack
Hash: ebb00bbccd954c114d3c
Version: webpack 2.0.7-beta
Time: 3623ms
@zjhiphop
zjhiphop / docker-clean.sh
Last active September 8, 2016 05:46
docker-clean
#!/bin/bash
# remove exited containers:
docker ps --filter status=dead --filter status=exited -aq | xargs docker rm -v
# remove unused images:
docker images --no-trunc | grep '<none>' | awk '{ print $3 }' | xargs docker rmi
# remove unused volumes:
docker volume ls -qf dangling=true | xargs docker volume rm
@zjhiphop
zjhiphop / weex.md
Last active August 7, 2016 15:20
Weex Wish List

Weex通用模块期望列表

  • NetWork Downloads
  • Route like Angular UI Route
  • File Upload

Weex通用组件期望列表

  • UI components like ionic UI
@zjhiphop
zjhiphop / app.scss
Created July 11, 2016 07:42 — forked from malixsys/app.scss
ionic framework validation
form i.icon.error {
color: $assertive;
}
form input + i.icon.error {
display: none;
margin-left: 8px;
}
form.ng-submitted input.ng-invalid + i.icon.error {
@zjhiphop
zjhiphop / js-extend.js
Last active May 8, 2016 10:15
Different type of JS Extend
//Simple Prototype extend
var extend = (function () {
var f = function(){};
return function (c, p) {
f.prototype = p.prototype;
c.prototype = new f;
c._super = p.prototype;
c.prototype.constructor = c;
}
})();
Node.js年度技术栈推荐
根据当前年度技术趋势,给出Node.js技术栈推荐,欢迎阅读
目录
2016升级Node 4.x和Koa
Web框架:koa
数据库:mongoose
测试:ava
流程控制:bluebird(generator、async)
@zjhiphop
zjhiphop / ShellRC.md
Created January 29, 2014 03:46
Shell Tips

Search path for the cd command

  • zsh
      Search path for the cd command
      cdpath=(.. ~ ~/Documents/project ~/.zsh)
  • bash
      export CDPATH=".:~:~/workspace"