I hereby claim:
- I am bjallen on github.
- I am bjallen (https://keybase.io/bjallen) on keybase.
- I have a public key ASCh8zaqGtc73sQM9HcrIqOL_h025_8X-nRpaQLV2CwKGgo
To claim this, I am signing this object:
body { | |
background: #222; | |
color: #e6e6e6; | |
} | |
a { | |
color: #949494; | |
} | |
a:link, a:visited { |
/** | |
* The preload script needs to stay in regular ole JavaScript, because it is | |
* the point of entry for electron-compile. | |
*/ | |
const allowedChildWindowEventMethod = [ | |
'windowWithTokenBeganLoading', | |
'windowWithTokenFinishedLoading', | |
'windowWithTokenCrashed', | |
'windowWithTokenDidChangeGeometry', |
I hereby claim:
To claim this, I am signing this object:
--- | |
- name: Add Percona apt signing key | |
sudo: yes | |
apt_key: keyserver=keys.gnupg.net id=1C4CBDCDCD2EFD2A state=present | |
- name: Add Percona repository | |
sudo: yes | |
apt_repository: repo='deb http://repo.percona.com/apt trusty main' state=present | |
- name: Add Percona source repository |
import Foundation | |
let response = "[{\"name\": \"value\", \"age\": 30}, {\"name\": \"value2\", \"age\": 50}]" | |
let data: NSData! = response.dataUsingEncoding(NSUTF8StringEncoding) | |
var options = NSJSONReadingOptions.AllowFragments | |
var serializationError: NSError? | |
let json: AnyObject! = NSJSONSerialization.JSONObjectWithData( | |
data, | |
options: nil, |
var gpio = require('gpio'); | |
var green = gpio.export(4, { | |
direction: 'out', | |
interval: 200, | |
ready: function() { | |
console.log('green is ready'); | |
} | |
}); |
AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; | |
NSDictionary *parameters = @{ | |
@"grant_type": @"password", | |
@"client_id": @"0364d040df9582e47552857f4880031a91df6b416e64bf3507d7987b5c5e79cd", | |
@"client_secret": @"9aa6f73ba79bc2bfcf621fc5e7979e1f03123cd4c79853db6d419591aa668d35", | |
@"username": @"email", | |
@"password": @"password" | |
}; | |
https://github.com/sstephenson/ruby-build/wiki | |
I had rbenv installed in my global home dir, but got this error when trying to install a gem: | |
-bash-4.1$ gem install httparty | |
ERROR: Loading command: install (LoadError) | |
cannot load such file -- zlib | |
ERROR: While executing gem ... (NameError) | |
uninitialized constant Gem::Commands::InstallCommand | |
# Installed zlib-devel |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
config.vm.define :app do |app_config| | |
app_config.vm.customize ["modifyvm", :id, "--name", "app1", "--memory", "512"] | |
app_config.vm.box = "precise64_with_ruby_193" | |
app_config.vm.host_name = "app1" | |
app_config.vm.forward_port 22, 2222, :auto => true | |
app_config.vm.forward_port 80, 4567 |
# Don't forget to run this vagrant command first | |
# vagrant ssh-config >> ~/.ssh/config | |
set :user, 'vagrant' | |
set :run_method, :sudo | |
role :app, '33.33.33.10' | |
ssh_options[:keys] = `vagrant ssh_config | grep IdentityFile`.split.last |