Skip to content

Instantly share code, notes, and snippets.

---
- name: Michael Applebaum
profile_id: 79325815
locations:
- "C\xC3\xB4te-des-Neiges"
- "Notre-Dame-de-Gr\xC3\xA2ce"
positions:
- Maire d'arrondissement
- Conseiller de la Ville
- "Vice-pr\xC3\xA9sident du comit\xC3\xA9 ex\xC3\xA9cutif"
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
index f005700..cdb409a 100644
--- a/plugins/bundler/bundler.plugin.zsh
+++ b/plugins/bundler/bundler.plugin.zsh
@@ -16,8 +16,9 @@ _bundler-installed() {
_within-bundled-project() {
local check_dir=$PWD
+ [ -f "$check_dir/Gemfile" ] && return true
while [ "$(dirname $check_dir)" != "/" ]; do
middle_name = case full_name
when /^.*\s(.*)\s.*$/
$1
else
"Peatrice"
end
require 'benchmark'
require 'net/http'
require 'uri'
def network_read(uri)
Net::HTTP.get_response uri
end
n = 100
uri = URI('http://google.com/')
@tjwallace
tjwallace / Vagrantfile
Created February 10, 2012 06:17
setup chef server
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant::Config.run do |config|
# All Vagrant configuration is done here. The most common configuration
# options are documented and commented below. For a complete reference,
# please see the online documentation at vagrantup.com.
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "lucid64"
@tjwallace
tjwallace / 0_README.md
Last active December 13, 2015 19:39 — forked from nilcolor/0_README.md

ruby-1.9.3-p385 cumulative performance patch for rbenv

This installs a patched ruby 1.9.3-p385 with the railsexpress patchsets: https://github.com/skaes/rvm-patchsets

Requirements

You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.

diff --git a/db/schema.rb b/db/schema.rb
index 7bb0e1f..a5c9b4c 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -309,13 +309,11 @@ ActiveRecord::Schema.define(:version => 20131204133419) do
t.integer "position"
t.string "type", :default => "WidescreenDealPhoto", :null => false
t.integer "prefix"
- t.integer "variant_id"
end
From 2c6ea1df2198a25279f9d09832c901d42a41127c Mon Sep 17 00:00:00 2001
From: Jeff Wallace <jeff@zozi.com>
Date: Fri, 17 Jan 2014 14:12:18 -0800
Subject: [PATCH] Patch Time#== and Date#== to only check up to microsecond
equality
---
spec/lib/time_patch_spec.rb | 49 +++++++++++++++++++++++++++++++++++++++++++++
spec/support/time_patch.rb | 23 +++++++++++++++++++++
2 files changed, 72 insertions(+)

Keybase proof

I hereby claim:

  • I am tjwallace on github.
  • I am tjwallace (https://keybase.io/tjwallace) on keybase.
  • I have a public key whose fingerprint is 240B CDEB 6AC4 083B E11C DF4A 9485 A298 8BEF 9040

To claim this, I am signing this object:

@tjwallace
tjwallace / astronomy_software.md
Last active August 29, 2015 14:13
Astronomy Software

AstroPlanner

  • Website
  • OS: Windows, OSX
  • Cost: $45 USD

Facilitates astronomical observation planning, visualisation and logging, as well as control of telescopes with computerised go-to mounts.

TheSkyX Professional