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
@zjhiphop
zjhiphop / Compose toString problem
Created August 14, 2012 10:18
Compose toString problem
require(["compose"], function(c) {
var b = c(function() {
}, {toString: function() {
return this.name
}});
var a = c.create(b)
a.name = 'a';
console.log(a.toString())
})
@zjhiphop
zjhiphop / frameworks.md
Created December 4, 2012 05:55 — forked from yyx990803/frameworks.md
国内互联网公司的前端框架简介

百度:Tangram

基本上就是个百度版jQuery,2.0版本使用链式API,更像了。
配套的还有UI库Magic和模版引擎BaiduTemplate(和ejs很像)

腾讯:JX

理念在介绍里面写的很详细,代码清晰,注释丰富,可读性很好,但只有文档没有实例。
比较传统的大块头框架,本质上来说还是一堆工具方法和对象的堆积,提供了很基本的模块化的开发方式,但没有模块间的依赖关系支持。

@zjhiphop
zjhiphop / index.html
Created March 22, 2013 09:39
htmltest
<link href="http://fonts.googleapis.com/css?family=Open+Sans:regular,semibold,italic,italicsemibold|PT+Sans:400,700,400italic,700italic|PT+Serif:400,700,400italic,700italic" rel="stylesheet" />
#!/bin/bash
function actual_path() {
if [ [ -z "$1" ] -a [ -d $1 ] ]; then
echo $(cd $1 && test `pwd` = `pwd -P`)
return 0
else
return 1
fi
}
var BaseObject = {
create: function create() {
var instance = Object.create(this);
instance._construct.apply(instance, arguments);
return instance;
},
extend: function extend(properties, propertyDescriptors) {
propertyDescriptors = propertyDescriptors || {};
@zjhiphop
zjhiphop / git-bundle
Last active December 25, 2015 14:19 — forked from garryyao/git-bundle
#!/bin/bash
# Issue arbitary git command for each of the sub modules.
# E.g. git-bundle checkout feature/docs
# Check out the feature/docs branch for each of the sub module.
function print_header
{
printf '%.0s-' {1..30} && echo
echo $1
printf '%.0s-' {1..30} && echo
@zjhiphop
zjhiphop / config.json
Created December 30, 2015 02:52 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#428bca, 6.5%)",
"@brand-success": "#5cb85c",
@zjhiphop
zjhiphop / Ming.md
Last active December 30, 2015 23:59
Ming relates resources

Links:

  • [LiveReload][1]
  • [iconmoon][2]
  • [big-menus-small-screens-responsive-multi-level-navigation][3]
  • [asg-web-sites][4]
  • [minglabs][5]
  • [git-ftp][6]
  • [sass-way][7]
  • [sass-source-map][8]
  • [Middle-Man-App][9]
  1. Plain Strings (207): foo
  2. Anchors (208): k$
  3. Ranges (202): ^[a-f]4$
  4. Backrefs (201): (...).*\1
  5. Abba (193): ^(?!.*(.)(.)\2\1)
  6. A man, a plan (177): ^(.)[^p].*\1$
  7. Prime (286): ^(?!(..+)\1+$)
  8. Four (199): (.)(.\1){3}
  9. Order (199): ^[^o]?.{5}$
  10. Triples (588): (00[039]|12|015|50)$|1..?4|4.2|1.7|6.0|006
@zjhiphop
zjhiphop / problem.md
Last active January 1, 2016 10:09
KAWO Front-end

Problems

  • When run npm install inside 'kawo_app' dir always got 'error 34'?

Resourses:

  • [sketchmine][1]
  • [sketch-vs-photoshop][2]
  • [XHR2][3]