Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / decorator.rb
Created April 16, 2012 13:29
decorator - keeping it simple
class ThingDecorator < SimpleDelegator
def initialize(klass)
@model = klass
super(klass)
end
def class
@model.class
end
@jlebrech
jlebrech / run.sh
Created March 30, 2012 11:58
NGINX+RVM+UNICORN stack commands
echo precompile assets for production
rvmsudo RAILS_ENV=production bundle exec rake assets:precompile
echo restart unicorn
sudo kill `cat unicorn.pid`
echo start unicorn as production
rvmsudo unicorn_rails -c config/unicorn.rb -D --env production
@implementation CalendarView: CPView
{
}
-(id)init {
self = [super initWithFrame:CGRectMake(0, 0, 200, 200)];
if (self) {
[self loadData];
}
@atrull
atrull / elite dangerous rare run notes
Last active August 29, 2015 14:12
elite dangerous rare run notes
rare run: from rares clustered to rares clustered in two runs each way - with a cobra mk3 and about 24-28 cargo slots.
based on clusters seen in this : https://www.elitedangeroustrader.co.uk/rares-systems-3d-map/
and a mid-point route from : https://cmdr.club/routes/
we need a cluster of rares to fill the ship
we need 150K or so LY between the clusters of rares.