This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> pants = true | |
=> true | |
>> shirt = false | |
=> false | |
>> dressed = pants and shirt | |
=> false | |
>> dressed | |
=> true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# strategy_test.rb | |
# reframeit-testing | |
# | |
# Created by Ben Taitelbaum on 2/25/08. | |
# Copyright (c) 2008 __MyCompanyName__. All rights reserved. | |
# | |
require 'rubygems' | |
require 'test/unit' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# strategies.rb | |
# reframeit-testing | |
# | |
# Created by Ben Taitelbaum on 2/25/08. | |
# Copyright (c) 2008 __MyCompanyName__. All rights reserved. | |
# | |
module ActiveThrift | |
class CompoundStrategy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>jQuery Test Suite</title> | |
<link rel="stylesheet" href="qunit/qunit.css" media="screen"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
btaitelb@grew (master)% ab -n 1 -c 1 "http://127.0.0.1:5000/comments" | |
This is ApacheBench, Version 2.3 <$Revision: 655654 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking 127.0.0.1 (be patient).....done | |
Server Software: thin | |
Server Hostname: 127.0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sed -e 's/search for/replace/g' -i .orig $(git grep --name-only 'search for' | xargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
if [[ -n "$PS1" ]] ; then | |
# don't put duplicate lines in the history. See bash(1) for more options | |
# ... or force ignoredups and ignorespace | |
HISTCONTROL=ignoredups:ignorespace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Rake | |
class TaskArguments | |
def initialize(names, values, parent=nil) | |
@names = names | |
@parent = parent | |
@hash = {} | |
values.each_with_index { |val, i| | |
name = (names[i] || "param#{i}").to_sym | |
@hash[name] = val | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bundler could not find compatible versions for gem "bundler": | |
In Gemfile: | |
bundler (= 1.0.9) | |
Current Bundler version: | |
bundler (1.0.10) | |
Your version of Bundler is older than the one requested by the Gemfile. | |
Perhaps you need to update Bundler by running `gem install bundler`. |
NewerOlder