This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vim | |
Fugitive.vim - git commit from inside vim | |
Hitch | |
Nerdtree.vim - project folders | |
surround.vim - | |
unimpaired.vim - bracket shortcuts | |
Vimperator - vim in FF browser | |
Vimium - vim in Chrome browser | |
afterimage.vim - edit pngs in vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Template I am trying to use: | |
https://github.com/rupakg/heat-hpcloud/blob/master/templates/simple_single_instance_only.template | |
Call I am making: | |
heat -d stack-create teststack \ | |
-f ~/heat-hpcloud/templates/simple_single_instance_only.template \ | |
-P "InstanceType=standard.large;KeyName=heat_key;ImageId=U1204-HeatCfn" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'hashie' | |
require 'httparty' | |
require 'json' | |
#require 'punchtab/auth' | |
BASE_API_URL = 'https://api.punchtab.com/v1' | |
module Punchtab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# create a list of all gems or grep | |
gem file > u.txt | |
# edit u.txt and remove gems you dont want to uninstall | |
for u in `cat u.txt`; do echo $u; done | cut -d" " -f1 | xargs gem uninstall -aIx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ruby 1.9 Walkthru Notes | |
(http://dev-logger.blogspot.co.uk/2011/11/ruby-19-walkthrough-by-peter-cooper.html) | |
Strings | |
- Parse lines in a String object with #each_line or #lines, instead of #each | |
- String#ord returns the UTF-8 index | |
- "x".ord is the new way of doing ?x | |
- ?a == "a" (and no more "97") | |
- "A".ord == 65, "ABC".ord == 65 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ruby 1.9 Notes by Peter Cooper (http://rubyinside.com/19.txt) | |
INTRO | |
- Welcome to the Ruby 1.9 Walkthrough | |
- A walkthrough or a review, if you will, of how Ruby 1.9.2/3 compares to Ruby 1.8.7 | |
- I've gone through and tried 100s of things on Ruby 1.8.6, 1.8.7, and 1.9.2 to see what has changed | |
- Matz quote | |
- Many of the videos and blog posts about 'what's new in Ruby 1.9' are out of date because some decisions were reversed | |
or because they were written when 1.8.6 was out, but then stuff got backported to 1.8.7 | |
enumerators, for example! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string GetEpochTime() | |
{ | |
var utcDate = DateTime.Now.ToUniversalTime(); | |
long baseTicks = 621355968000000000; | |
long tickResolution = 10000000; | |
long epoch = (utcDate.Ticks - baseTicks) / tickResolution; | |
long epochTicks = (epoch * tickResolution) + baseTicks; | |
var date = new DateTime(epochTicks, DateTimeKind.Utc); | |
return epoch.ToString(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
gem 'sinatra', '1.0' | |
gem 'oauth2' | |
gem 'json' | |
group :development do | |
gem 'shotgun' | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@import compass/css3 | |
$color-light: #fff | |
$color-grey: #ddd | |
$color-dark: #000 | |
//-------------------------------------------------------------------------------- | |
// I started out like this, getting all | |
// carried away with how awesome Sass |