Skip to content

Instantly share code, notes, and snippets.

@maxy
maxy / env.rb
Created December 21, 2011 16:24 — forked from bmabey/env.rb
how to get spork working for cucumber in a rails app
require 'rubygems'
require 'spork'
Spork.prefork do
# Sets up the Rails environment for Cucumber
ENV["RAILS_ENV"] ||= "cucumber"
require File.expand_path(File.dirname(__FILE__) + '/../../config/environment')
require 'webrat'
@maxy
maxy / pastels-on-dark-theme.el
Created July 18, 2012 14:53 — forked from milkypostman/pastels-on-dark-theme.el
Pastels on Dark theme for Emacs 24
;;; pastels-on-dark-theme.el --- Pastels on Dark theme for Emacs 24
;; Author: Mats Persson
;; Maintainer: Shane Celis <shane (at) gnufoo (dot) org>
;; URL: http://gist.github.com/1906662
;; Version: 0.3
;; Keywords: theme, color
;;; Commentary:
@maxy
maxy / 0_reuse_code.js
Created March 20, 2014 07:59
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@maxy
maxy / golang_job_queue.md
Created February 22, 2018 14:37 — forked from harlow/golang_job_queue.md
Job queues in Golang
@maxy
maxy / gist:9edb5f84df47abc998a4c1ab404645f4
Created October 21, 2020 23:45 — forked from isseium/gist:5822504
rspec の include で hash 構造をチェックするテスト
describe "Rspec include test" do
it "include" do
hash = {:a => 'A', :b => 'B', :c => { :ca => 'CA' }}
expect(hash).to include(:c => {:ca => 'CA'}); #
expect(hash).to include(:a => 'A', :c => {:ca => 'CA'}); # ならべてもいいっぽい
expect(hash).to_not include(:ca => 'CA'); # ちゃんと構造みてくれる
expect(hash).to include(:a); # キーだけでもOK
expect(hash).to_not include(:d); # キーだけでもOK
end
end