Skip to content

Instantly share code, notes, and snippets.

@jexchan
jexchan / visualization_in_js.md
Created December 25, 2011 13:48 — forked from entaroadun/visualization_in_js.md
README:Visualization using Javascript on Github
@jexchan
jexchan / node-and-npm-in-30-seconds.sh
Created December 28, 2011 14:11 — forked from isaacs/node-and-npm-in-30-seconds.sh
BASH:install node wherever.
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl http://npmjs.org/install.sh | sh
@jexchan
jexchan / mirror_internal.md
Created April 1, 2012 14:56
Mirror sites for Linux
@jexchan
jexchan / markdown_example.md
Created April 1, 2012 15:49
Markdown usage

项目内容概述

这里可以对项目的作简单介绍。 标题为一级标题大写
此处为换行测试。

段落分隔、示例链接 列举。

使用方法

@jexchan
jexchan / hack.sh
Created April 2, 2012 11:38 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@jexchan
jexchan / hack.sh
Created April 2, 2012 11:38 — forked from DAddYE/hack.sh
OSX For Hackers
#!/usr/bin/env bash
##
# This is a script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# Download and auto-run with:
# $ curl -sL https://raw.github.com/gist/2108403/hack.sh | bash
#
# or download and prompt before change defaults:
@jexchan
jexchan / multiple_ssh_setting.md
Created April 10, 2012 15:00
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@jexchan
jexchan / pagination.md
Created May 27, 2012 23:49 — forked from mislav/pagination.md
"Pagination 101" by Faruk Ateş

Pagination 101

Article by Faruk Ateş, [originally on KuraFire.net][original] which is currently down

One of the most commonly overlooked and under-refined elements of a website is its pagination controls. In many cases, these are treated as an afterthought. I rarely come across a website that has decent pagination, and it always makes me wonder why so few manage to get it right. After all, I'd say that pagination is pretty easy to get right. Alas, that doesn't seem the case, so after encouragement from Chris Messina on Flickr I decided to write my Pagination 101, hopefully it'll give you some clues as to what makes good pagination.

Before going into analyzing good and bad pagination, I want to explain just what I consider to be pagination: Pagination is any kind of control system that lets the user browse through pages of search results, archives, or any other kind of continued content. Search results are the o

@jexchan
jexchan / github.css
Created September 3, 2012 03:02 — forked from andyferra/github.css
Github Markdown CSS - for Markdown Editor Preview
body {
font-family: Helvetica, arial, sans-serif;
font-size: 14px;
line-height: 1.6;
padding-top: 10px;
padding-bottom: 10px;
background-color: white;
padding: 30px; }
body > *:first-child {
@jexchan
jexchan / apiexamples.js
Created January 28, 2013 02:11 — forked from jrburke/apiexamples.js
AMD Example
//*******************************************
// Level 1, basic API, minimum support
//*******************************************
/*
Modules IDs are strings that follow CommonJS
module names.
*/
//To load code at the top level JS file,
//or inside a module to dynamically fetch