Skip to content

Instantly share code, notes, and snippets.

Scott is ignoring this status thing...

Scott Pham scottpham

Scott is ignoring this status thing...
View GitHub Profile
artero / launch_sublime_from_terminal.markdown
Last active Jan 28, 2021 — forked from olivierlacan/launch_sublime_from_terminal.markdown
Launch Sublime Text 2 from the Mac OS X Terminal
View launch_sublime_from_terminal.markdown

Launch Sublime Text 2 from the Mac OS X Terminal

Sublime Text 2 ships with a CLI called subl (why not "sublime", go figure). This utility is hidden in the following folder (assuming you installed Sublime in /Applications like normal folk. If this following line opens Sublime Text for you, then bingo, you're ready.

open /Applications/Sublime\ Text\

You can find more (official) details about subl here:


chrislkeller /
Last active Mar 13, 2018
A pair of python scripts to create a flat json file from a given csv file that can be used in a handlebars.js template.

Snippets: Build a flat json file for handlebars.js template or jquery-vertical-timelines

UPDATED I've made some updates to the script.

  • Script now accepts a "usage" argument for "handlebars" or "timeline" or "array"
  • Script assumes a header row and strips underscores and spaces and converts header fields to lowercase when creating keys.
  • Because the resulting JSON file can also be used to power Vertical Timelines, I've re-named the script to
  • The script remains unchanged. I will attempt to re-work it to create handlebars or timeline JSON in the coming weeks.

See more in the Usage section below.

View bootstrap_ms.css.scss
// Bootstrap Mid-Small - col-ms-* - the missing grid set for Bootstrap3.
// This is a hack to fill the gap between 480 and 760 pixels - a missing range
// in the bootstrap responsive grid structure. Use these classes to style pages
// on cellphones when they transition from portrait to landscape.
// NOTE: Here I use SASS instead of LESS for styling. To convert to LESS
// replace '$screen' with '@screen' and '$grid' with '@grid'.
// See for more info.
View bootstrap_ms.css
KoGor /
Created Dec 28, 2013
Marker animation along SVG <path> element with D3.js II

Marker animation along SVG "path" element with D3.js: animating "path" and marker movement synchronously.

brock /
Last active Feb 14, 2021
Complete Node Reinstall. I've moved this to a repo at
# node-reinstall
# credit:
## program version
## path prefix
addyosmani / package.json
Last active Jan 7, 2021
npm run-scripts boilerplate
View package.json
"name": "my-app",
"version": "1.0.0",
"description": "My test app",
"main": "src/js/index.js",
"scripts": {
"jshint:dist": "jshint src/js/*.js",
"jshint": "npm run jshint:dist",
"jscs": "jscs src/*.js",
"browserify": "browserify -s Validating -o ./dist/js/build.js ./lib/index.js",
#!/usr/bin/env bash
set -e
main() {
file_to_edit=`select_file $previous_file`
if [ -n "$file_to_edit" ] ; then
"$EDITOR" "$file_to_edit"
main "$file_to_edit"