I hereby claim:
- I am myers on github.
- I am myers (https://keybase.io/myers) on keybase.
- I have a public key whose fingerprint is 632B 5A28 9024 993E CE78 8891 2380 E721 91FB 6F04
To claim this, I am signing this object:
diff --git a/sprout/lib/sprout/user.rb b/sprout/lib/sprout/user.rb | |
index 9a2e193..93d96de 100644 | |
--- a/sprout/lib/sprout/user.rb | |
+++ b/sprout/lib/sprout/user.rb | |
@@ -209,8 +209,8 @@ module Sprout | |
tool = clean_path(tool) | |
runner = get_process_runner("#{tool} #{options}") | |
- result = runner.read | |
error = runner.read_err |
=== modified file 'OpenSSL/ssl/context.c' | |
--- OpenSSL/ssl/context.c 2011-09-11 13:35:32 +0000 | |
+++ OpenSSL/ssl/context.c 2012-02-09 05:35:09 +0000 | |
@@ -238,6 +238,66 @@ | |
} | |
/* | |
+ * Globally defined next proto callback. This is called from OpenSSL internally. | |
+ * The GIL will not be held when this function is invoked. It must not be held | |
+ * when the function returns. |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'yaml' | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = '2' | |
Vagrant.require_plugin 'vagrant-berkshelf' | |
Vagrant.require_plugin 'vagrant-omnibus' |
-----BEGIN PGP PUBLIC KEY BLOCK----- | |
Version: SKS 1.1.4 | |
Comment: Hostname: keyserver.ubuntu.com | |
mI0ET0gy2QEEAMbpVvYeszQ6u6OMrXqyebsaDLQO3wsgI1vYgqVed/RcipzihDIXerYW74FV | |
np6xUG8ZyZyPqctXyYYel7QzHq5ea2liSrRU2UB406tDQaqFzs8MTx2xUu1rDN4W+UtS6K2y | |
OPIM3n1d9UEatuVFcyunHwG4ai0FXWXRD0CFfGT7ABEBAAG0GExhdW5jaHBhZCBQUEEgZm9y | |
IHJlZGRpdIi4BBMBAgAiBQJPSDLZAhsDBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRB+ | |
B71BZVBtJ3CNA/9nJyEpv5OI7O8nis7jrLnZN84pPZvawmOn7uZNXr2m1ppqSx9+87exbRRu | |
cVqeL6FPYumPLsq5cn+FvCyWnhDS5aFVTKW1OHEssKapkCXmfDEV5bFUsjdzSkud0ytlnqZg |
defmodule SessionHerderTest do | |
use ExUnit.Case | |
setup do | |
{:ok, sup_pid} = Chat.SessionSupervisor.start_link | |
{:ok, herder_pid} = Chat.SessionHerder.start_link | |
{:ok, pids: [sup_pid, herder_pid]} | |
end | |
teardown config do |
I hereby claim:
To claim this, I am signing this object:
## Side Kick | |
You helped a fellow Treehouse member in our forum. You're a helpful person, like a superhero's side kick! | |
SideKick.png | |
Number of learners with this badge: 19 | |
## Accessibility | |
Accessibility is the practice of making websites available to all people, regardless of their abilities or disabilities. | |
Accessibility_Alt.png | |
Number of learners with this badge: 687 |
# Why 'utf8_unicode_ci'? Read http://stackoverflow.com/questions/766809/whats-the-difference-between-utf8-general-ci-and-utf8-unicode-ci | |
THE_ONE_TRUE_COLLATION = 'utf8_unicode_ci' | |
task convert_db_to_utf8: :environment do | |
c = ActiveRecord::Base.connection | |
database_name = Rails.configuration.database_configuration[Rails.env]['database'] | |
puts "Setting default for new tables for #{database_name.inspect}..." | |
c.execute("ALTER DATABASE `#{database_name}` CHARACTER SET `utf8` COLLATE `#{THE_ONE_TRUE_COLLATION}`") |
model = MyModel | |
CSV.new(File.new(model.to_s.underscore + ".csv", "w")).tap do |csv| | |
column_names = model.column_names | |
csv << column_names | |
model.find_each do |ii| | |
csv << column_names.map do |cn| | |
ii.send(cn) | |
end | |
end |