All videos can be seen at http://www.youtube.com/playlist?list=PLBAAC8C0430D64F4D
People head down a trajectory and they expect one outcome that may turn out not to actually happen (e.g. rockstar).
- Money
| var util = require('util'), | |
| http = require('http'), | |
| router = require('./router'); | |
| console.log('creating server'); | |
| var app = http.createServer(); | |
| console.log('registering app'); | |
| router.registerApp(app); |
| require 'rubygems' | |
| require 'bundler/setup' | |
| require 'my_private_gem/deploy' | |
| # Configure loudmouth | |
| MyPrivateGem::Deploy.configure(:application1) |
| $ cap sand hostname /code/src/application1 | |
| /Users/bj/.rvm/gems/ruby-1.9.2-p0@application1/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:18:in `instance': Please require this file from within a Capistrano recipe (LoadError) | |
| from /Users/bj/.rvm/gems/ruby-1.9.2-p0@application1/gems/my_private_gem-0.1.2/lib/my_private_gem/deploy.rb:15:in `configure' | |
| from ./config/deploy.rb:6:in `load' | |
| from /Users/bj/.rvm/gems/ruby-1.9.2-p0@application1/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:93:in `instance_eval' | |
| from /Users/bj/.rvm/gems/ruby-1.9.2-p0@application1/gems/capistrano-2.5.19/lib/capistrano/configuration/loading.rb:93:in `load' | |
| from /Users/bj/.rvm/gems/ruby-1.9.2-p0@a |
| package Assets.Applications.Includes | |
| { | |
| import com.adobe.utils.DateUtil; | |
| public class RelativeDateUtil extends DateUtil | |
| { | |
| public static var SECONDS_IN_MINUTE:Number = 60; | |
| public static var MINUTES_IN_HOUR:Number = 60; | |
| public static var HOURS_IN_DAY:Number = 24; |
| ragnar | |
| ------ | |
| Days Working -> | |
| total: 800 | |
| average: 160 | |
| Days Alive -> | |
| total: 56799 | |
| average: 11359 |
| Determining how many ip elements can sit on a line with a max length of 1000 | |
| lower | mid/test | upper | len | over/under | |
| -------------------------------------------------------------- | |
| 1 | 50 | 100 | 840 | under | |
| 50 | 75 | 100 | 1240 | over | |
| 50 | 62 | 75 | 1032 | over | |
| 50 | 56 | 62 | 936 | under | |
| 56 | 59 | 62 | 984 | under | |
| 59 | 60 | 62 | 1000 | under |
| projects = ['f','p','p','f','p','p','f','p','p','f'] | |
| bytes = [] | |
| projects.each_slice(4) do |chunk| | |
| byte = 0 | |
| chunk.each{ |v| byte = (byte << 2) | (v == 'p' ? 1 : 2) } | |
| byte = byte << ((4 - chunk.size) * 2) if chunk.size < 4 | |
| bytes << byte | |
| puts '%s %s %s' % [chunk, byte.chr, byte.chr.unpack("B*")] | |
| end | |
| byte_str = bytes.map{|b| b.chr }.join |
All videos can be seen at http://www.youtube.com/playlist?list=PLBAAC8C0430D64F4D
People head down a trajectory and they expect one outcome that may turn out not to actually happen (e.g. rockstar).
| [core] | |
| editor = vi | |
| [color] | |
| status = auto | |
| interactive = auto | |
| grep = auto | |
| branch = auto | |
| diff = auto | |
| [alias] | |
| st = status |
| # Just a sample, obviously very rudimentary but you get the idea | |
| require 'sinatra' | |
| require 'json' | |
| require 'lib/container/base' | |
| class User < Container::Base | |
| attr_accessor :guid | |
| attr_accessor :name | |
| attr_accessor :email |