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 / 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 / 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 theconektd/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
@jexchan
jexchan / gist:5037517
Last active April 23, 2024 08:18 — forked from jrochkind/gist:2161449
A Capistrano Rails Guide

A Capistrano Rails Guide

by Jonathan Rochkind, http://bibwild.wordpress.com

why cap?

Capistrano automates pushing out a new version of your application to a deployment location.

I've been writing and deploying Rails apps for a while, but I avoided using Capistrano until recently. I've got a pretty simple one-host deployment, and even though everyone said Capistrano was great, every time I tried to get started I just got snowed under not being able to figure out exactly what I wanted to do, and figured I wasn't having that much trouble doing it "manually".

@jexchan
jexchan / chef_solo_bootstrap.sh
Last active December 14, 2015 10:10 — forked from ryanb/chef_solo_bootstrap.sh
Ubuntun Install Ruby before Chef
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev make
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p374.tar.gz
tar -xvzf ruby-1.9.3-p374.tar.gz
cd ruby-1.9.3-p374/
./configure --prefix=/usr/local
make
make install
@jexchan
jexchan / Intro-to-Vagrant-for-Drupal.md
Last active December 14, 2015 18:19 — forked from dergachev/Intro-to-Vagrant-for-Drupal.md
Intro to Vagrant for Drupal

Vagrant tutorial

  • Slideshow structure
    • About me - Alex Dergachev, co-founder @evolvingweb (follow me gh/twitter: @dergachev)
    • The problem
    • The solution - Chef & Virtualbox & Vagrant
      • Benefits
        • repo + sql dump + cookbooks + ubuntu ISO = Drupal stack
        • prod vs dev consistency
  • sysadmin code reuse