Skip to content

Instantly share code, notes, and snippets.

View sevenseacat's full-sized avatar
🏠
Working remotely

Rebecca Le sevenseacat

🏠
Working remotely
View GitHub Profile
RSpec::Matchers.define :assign_to do |variable|
chain :with do |value|
@value = value
end
match do |response|
if @value
assigns[variable] == @value
else
assigns.has_key?(variable)
Practical Object-Oriented Design in Ruby
Metaprogramming Ruby
Cucumber Recipes
Rapid Android Development
Hello, Android
Retinafy Me
Exceptional Ruby
Scalable and Modular Architecture for CSS
Growing Object-Oriented Software, Guided By Tests
Rails Recipes
@sevenseacat
sevenseacat / Dobdark.tmTheme
Last active October 10, 2015 01:07
The Dobdark textmate theme that I use across all of my Sublime Text 2s.
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Dobdark</string>
<key>settings</key>
<array>
<dict>
<key>settings</key>
lypanov: anyone experience with unicorn and preload app? i see tons of mysql errors.
sevenseacat: im not sure what mysql errors would have to do with unicorn
lypanov: sevenseacat: then you don't use it i'm guessing
sevenseacat: nope.
lypanov: anyone?
waseem_: lypanov: What errors?
lypanov: Mysql2::Error: Lost connection to MySQL server during query. and lots of other random AR errors. tables not existing etc.
lypanov: alas googling is getting me nowhere
lypanov: there is an item on the mysql2 gem, closed, but zero real closure on the issue.
waseem_: lypanov: Can you connect to MySQL with credentials in yoru database.yml?