I hereby claim:
- I am chiting on github.
- I am mochi_ (https://keybase.io/mochi_) on keybase.
- I have a public key ASA2i8xdzbdJQLUOYoZLC_G8iI4PN5RIH6bRB745cTFDJQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
require 'benchmark/ips' | |
def slow | |
Array.new | |
end | |
def fast | |
[] | |
end |
require "benchmark/ips" | |
C = "123456789012345678901" | |
A = "1234567890123456789012" | |
B = "12345678901234567890123" | |
D = "123456789012345678901234" | |
def slow | |
B + "x" | |
end |
#!/bin/sh | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' |
# It doesn't work anymore with the new version of https://www.bloc.io/ruby-warrior#/ | |
class Player | |
def play_turn(warrior) | |
lol = warrior.instance_variable_get(:@senses) | |
me = lol[:health].instance_variable_get(:@unit) | |
me.send(:define_singleton_method, :attack_power, lambda { 10000 }) | |
me.send(:define_singleton_method, :max_health, lambda { 10000000 }) | |
if warrior.respond_to? :feel | |
space = warrior.feel | |
case |
# Nginx+Unicorn best-practices congifuration guide. Now with SPDY! | |
# We use latest stable nginx with fresh **openssl**, **zlib** and **pcre** dependencies. | |
# Some extra handy modules to use: --with-http_stub_status_module --with-http_gzip_static_module | |
# | |
# Deployment structure | |
# | |
# SERVER: | |
# /etc/init.d/nginx (1. nginx) | |
# /home/app/public_html/app_production/current (Capistrano directory) | |
# |