I hereby claim:
- I am penman on github.
- I am penman (https://keybase.io/penman) on keybase.
- I have a public key whose fingerprint is 9B36 DC74 20E5 0DC0 278D C839 05CC 00A7 63F8 2E0B
To claim this, I am signing this object:
import Darwin | |
let isLittleEndian = Int(OSHostByteOrder()) == OSLittleEndian | |
let htons = isLittleEndian ? _OSSwapInt16 : { $0 } | |
let htonl = isLittleEndian ? _OSSwapInt32 : { $0 } | |
let htonll = isLittleEndian ? _OSSwapInt64 : { $0 } | |
let ntohs = isLittleEndian ? _OSSwapInt16 : { $0 } | |
let ntohl = isLittleEndian ? _OSSwapInt32 : { $0 } | |
let ntohll = isLittleEndian ? _OSSwapInt64 : { $0 } |
import Foundation | |
typealias Forest = Tree[] | |
protocol Tree { | |
func parent() -> Tree? | |
func nodes() -> Forest | |
} | |
func nodes(tree: Tree) -> Forest { |
[ | |
{ | |
"constituency": "Hackney North and Stoke Newington", | |
"email": "[email protected]", | |
"id": 172, | |
"name": "Ms Diane Abbott MP", | |
"party": "Labour", | |
"tel": "020 7219 4426", | |
"twitter": "@hackneyabbott", | |
"website": "http://www.dianeabbott.org.uk" |
I hereby claim:
To claim this, I am signing this object:
require 'java' | |
require 'sinatra' | |
def keycode(key) | |
name = "VK_#{key.upcase}" | |
java.awt.event.KeyEvent.const_get(name) | |
end | |
robot = java.awt.Robot.new |
export ZSH=$HOME/.oh-my-zsh | |
ZSH_THEME="robbyrussell" | |
COMPLETION_WAITING_DOTS="true" | |
HIST_STAMPS="yyyy-mm-dd" | |
plugins=(git) | |
export PATH=$HOME/.rbenv/bin:$HOME/.pyenv/bin:$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin | |
export LANG=en_GB.UTF-8 | |
export TERM="xterm-256color" | |
source $ZSH/oh-my-zsh.sh | |
eval "$(rbenv init -)" |
# This is an example spec that uses the ControllerConcernHelper module | |
require "rails_helper" | |
describe Authentication, type: :controller_concern do | |
controller do | |
include AbstractController::Callbacks | |
before_action :authenticate | |
def test_action |
I hereby claim:
To claim this, I am signing this object:
require 'shellwords' | |
def require_external_gem(name) | |
return require name unless defined? Bundler | |
dir = Bundler.with_clean_env do | |
`echo #{name.shellescape} | ruby -e \ | |
'puts Gem::Specification.find_by_name(STDIN.read.chomp).gem_dir'`.chomp | |
end |
#!/bin/sh | |
<<SH_COMMENT | |
#!/usr/bin/env ruby | |
begin | |
load File.expand_path("../spring", __FILE__) | |
rescue LoadError | |
end | |
require 'bundler/setup' | |
load Gem.bin_path('rspec-core', 'rspec') |