start new:
tmux
start new with session name:
tmux new -s myname
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll | |
*.exe | |
*.o | |
*.so | |
# Packages # |
/** | |
normalize co-ordinates that lie outside of the normal ranges. | |
longitude wrapping simply requires adding +- 360 to the value until it comes | |
in to range. | |
for the latitude values we need to flip the longitude whenever the latitude | |
crosses a pole. | |
**/ |
{ | |
"Version": "2012-10-17", | |
"Id": "arn:aws:sqs:YOUR-AWS-REGION:YOUR-AWS-ACCOUNT-ID:YOUR-QUEUE-NAME/SQSDefaultPolicy", | |
"Statement": [ | |
{ | |
"Sid": "example-statement-ID", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, |
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
#require 'rubygems' | |
require 'pp' | |
#require 'ap' # Awesome Print | |
class Object | |
# expects [ [ symbol, *args ], ... ] | |
def recursive_send(*args) | |
args.inject(self) { |obj, m| obj.send(m.shift, *m) } | |
end | |
end |
// Source for the Accidental Tech Podcast (ATP) T-Shirt: | |
// http://www.marco.org/2014/04/29/atp-shirts | |
// | |
// By Marco Arment, April 28, 2014. MIT license. | |
@implementation ATPLogoView | |
- (void)drawRect:(CGRect)rectIgnored | |
{ | |
NSString *fontName = @"MyriadPro-Semibold"; |
module PumaCapacityToCloudwatch | |
require 'puma_capacity_to_cloudwatch/utilization' | |
require 'puma_capacity_to_cloudwatch/publish' | |
class Error < StandardError; end | |
def self.run | |
sleep 10 # wait for puma to boot up | |
return unless defined?(Puma) |
// Contains support for: SASS/SCSS, concatenation, and minification for JS and CSS | |
var gulp = require('gulp'); | |
var sass = require('gulp-ruby-sass'); | |
var concat = require('gulp-concat'); | |
var compress = require('gulp-yuicompressor'); | |
function blurb --description Post\ to\ 10C.\\nblurb\ post\ MESSAGE\\nblurb\ POST_ID\ REPLY --argument reply_id message | |
set -l token $TEN_CENTURIES_API_TOKEN | |
set -l endpoint https://api.10centuries.org/content/write | |
set -l usage 'blurb: post or reply to a message on 10C | |
Usage: | |
blurb post MESSAGE | |
Post a new blurb |