Skip to content

Instantly share code, notes, and snippets.

View shanechin's full-sized avatar

Shane Chin shanechin

  • Columbia University
  • New York, New York
View GitHub Profile
@shanechin
shanechin / CU Dorms
Created April 18, 2012 22:31
Columbia Dorm List
var dorms =
["Claremont",
"548 W 113th",
"600 West 113th",
"Broadway",
"Brownstones",
"Carman",
"East Campus",
"Furnald",
"Harmony",
@shanechin
shanechin / gist:2424076
Created April 19, 2012 20:49
Computer Modern Fonts
<style type="text/css">
@font-face {
font-family: "Computer Modern";
src: url('http://mirrors.ctan.org/fonts/cm-unicode/fonts/otf/cmunss.otf');
}
@font-face {
font-family: "Computer Modern";
src: url('http://mirrors.ctan.org/fonts/cm-unicode/fonts/otf/cmunsx.otf');
font-weight: bold;
}
@shanechin
shanechin / gist:2469159
Created April 23, 2012 06:43
Other snippet sites
http://snipt.net/sac2171/
I like github gists, but snipt looks better when embedded.
@shanechin
shanechin / test.js
Created August 27, 2012 00:26 — forked from dbamber/test.js
Testing GOogle document api support for tables
/*
* Author: David Bamber <dbamber@gmail.com>
* http://bmbr.co
*
* Usage: node test.js -u <googleuser> -p <googlepass>
* node test.js -u <googleuser> -p <googlepass> -regex -url /feeds/default/private/full
*
* Optional Fags:
* -url [url]: requests a different uri from docs api, defaults to /feeds/default/private/full/-/table
* -regex: applies a regex to try and sanitize output
function [ preds, acc, decvals ] = verifier( folds, images, output )
%VERIFIER Reads images and classifies based on gender
% Read certain facial features (eyes, nose, mouth, cheek)
% Train features using regression techniques in order to determine if
% male or female
vl_setup()
% Read the folds
q = read_lfw_folds(folds);
@shanechin
shanechin / date_bookmarklet.js
Last active December 10, 2015 21:29
My first bookmarklet!
javascript: (function(){
var today = new Date();
var day = today.getDate();
var month = today.getMonth() + 1;
/* January starts with zero */
var year = today.getFullYear();
var thisDate = month + '/' + day + '/' + year;
alert(thisDate);
/* Trying to write to the document is actually unneccessarily complicated. document.write(thisDate)*/
/sbin/ifconfig | grep inet
// ==UserScript==
// @name PissApOff
// @namespace http://use.i.E.your.homepage/
// @version 0.1
// @description enter something useful
// @include http://fifa1404.herokuapp.com/view/1
// @include http://fifa1404.herokuapp.com/
// @copyright 2012+, You
// ==/UserScript==
@shanechin
shanechin / gist:6084025
Created July 25, 2013 21:39
Noir installation
When using Noir, you must install the newer version of leiningen, you may place it on path within the /bin/ folder.
verify correct usage with which lein.
https://raw.github.com/technomancy/leiningen/stable/bin/lein
These two symbols look correct in my terminal, before I was seeing > and <
" My own hack for the seperator
let g:airline_left_sep = ''
let g:airline_right_sep = ''