Skip to content

Instantly share code, notes, and snippets.

View colinyoung's full-sized avatar
🚲

Colin Young colinyoung

🚲
View GitHub Profile
@colinyoung
colinyoung / .bash_profile
Created March 12, 2019 21:14
bash_profile
export NVM_DIR="$HOME/.nvm"
. "/usr/local/opt/nvm/nvm.sh"
alias gs="git status"
alias gco="git checkout"
alias gdelmerged='git branch --merged | egrep -v "(^\*|master|develop)" | xargs git branch -d'
alias gitunpushed="git log --branches --not --remotes"
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion
<!DOCTYPE html>
<html>
<head>
<title>Foo</title>
<meta charset='utf-8' />
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0' />
<style type='text/css'>
div {
cursor:pointer;
cursor:hand;
@colinyoung
colinyoung / edge_template.rb
Last active August 29, 2015 14:03
Heavily tweaked, opinionated Rails template for Ember-Rails.
# 'Forked' from Ember.js' edge_template.rb by @colinyoung.com.
#
# This script is used with the Ruby on Rails' new project generator:
#
# rails new my_app -m http://emberjs.com/edge_template.rb
#
# For more information about the template API, please see the following Rails
# guide:
#
# http://edgeguides.rubyonrails.org/rails_application_templates.html
@colinyoung
colinyoung / keybase.md
Last active August 29, 2015 14:02
keybase.md

Keybase proof

I hereby claim:

  • I am colinyoung on github.
  • I am colinyoung (https://keybase.io/colinyoung) on keybase.
  • I have a public key whose fingerprint is F76E B15E E19A 18B8 7A5F 4B26 9A7B 3502 60CA 1BD8

To claim this, I am signing this object:

@colinyoung
colinyoung / hello.c
Created June 19, 2012 17:23
Recent gist
#include <stdio.h>
void main() {
printf("%s", "Hello world");
return 0;
}
@colinyoung
colinyoung / PostalAddress.rb
Created June 22, 2011 06:29
Parses a postal address into its components. (limited) i18n support and other features. inspired by this forrst post: http://forr.st/~zDa
#
# Most of the regexes here are from http://twitter.com/schuyler.
# They were posted on Forrst (http://forr.st/~zDa) as a public post,
# so I reworked them into a full class.
#
# Added:
# => (limited) international support -- should handle US/Canada and most of western europe
# => added :receipient, :postcode, and :country fields
# => state/province detection built-in
- verbs : '/verbs',
+ verbs : '/captaindouchenozzle',
// Need to grab hash from page here
// Append hash to iFrame src url
var hash = (location.href.split("#")[1] || "");
// change to your application's requirement, probably hash or id
var your_param = "hash_value";
// Set path to the iframe file
var url = 'http://www.google.com/';
if (hash) url += '?' + your_param + '=' + hash;
#!/usr/bin/php
<?php
$u = "Colin";
$StartsWith = array("@");
$SpecificFiles = array(
"saga.psd"
);
define("FILENAME_START", 51);
/* NO EDITING BELOW THIS LINE */
on (release) {
flash.external.ExternalInterface.call("loadShadowbox");
}