I hereby claim:
- I am tamalw on github.
- I am tamal (https://keybase.io/tamal) on keybase.
- I have a public key ASABtjqhyHUnK5brrJFCSJLVH-IiKhGar7HbIxb27-hHhwo
To claim this, I am signing this object:
<div id="blurb"> | |
<p><svg id="logo" width="200" height="173.2"> | |
<polygon points="50,0 | |
150,0 | |
50,173.2 | |
0,86.6 | |
200,86.6 | |
150,173.2" /> | |
</svg></p> |
require 'open-uri' | |
require 'json' | |
p = JSON.parse(URI.parse('http://files.olo.com/pizzas.json').read).map { |p| p['toppings'].sort.join(', ') }.flatten | |
puts p.uniq.map { |c| [c, p.count(c)]}.sort { |a,b| b[1] <=> a[1] }[0...20].map.with_index { |t,i| "#{i+1}. #{t[0]}: #{t[1]}" }.join("\n") |
from emu import * | |
from datetime import datetime, date, timedelta | |
emu_tty_filename = 'tty.usbmodem1411' | |
class EmuWrangler(object): | |
rates = { | |
'Summer' : { | |
'Peak' : (47334, 5), |
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
.monogram { | |
display: block; | |
width: 100px; | |
height: 100px; | |
line-height: 100px; | |
margin: 20px; |
I hereby claim:
To claim this, I am signing this object:
OUTDATED See http://www.apple.com/ios/carplay/available-models/ for an up-to-date list.
Year | Model | Links | Notes |
---|---|---|---|
2016 | Cruze | Source |
require 'benchmark' | |
Benchmark.bm do |b| | |
b.report "upcase " do | |
e = "Collaboratively administrate empowered markets via plug-and-play networks -- http://www.cipsum.com/" | |
1_000_000.times { e[0] == e[0].upcase } | |
end | |
b.report " /^[A-Z]/ " do | |
e = "Collaboratively administrate empowered markets via plug-and-play networks -- http://www.cipsum.com/" |
class Monster | |
def initialize(options) | |
@name = options[:name] | |
@lifepoints = options[:lifepoints] | |
@drop_mechanic = options[:drop_mechanic] | |
@hit_log = [] | |
@output_buffer = [] | |
end | |
def get_hit(player, hit) |
Tested with OS X 10.9 only, YMMV.
Install homebrew http://brew.sh if you don't have it by launching Terminal.app and entering
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Follow all the prompts.
class Article < ActiveRecord::Base | |
scope :published, -> { where("draft = false AND publish_at <= ?", Time.now) } | |
end | |
foo = Article.find(123) | |
foo.published? |