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
// console.log("test"); | |
var names = ["matt", "adam"]; | |
// 1: use for/in, w/var | |
console.log("Starting 1 (for/in)...") | |
var idx = -9; | |
console.log("idx: before1", idx) | |
for (var idx in names) { | |
console.log("idx: in1", idx); | |
} |
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
# -*- encoding: utf-8 -*- | |
require File.expand_path('../lib/rake/hooks/version', __FILE__) | |
Gem::Specification.new do |gem| | |
gem.authors = ["Matt Scilipoti"] | |
gem.email = ["matt@scilipoti.name"] | |
gem.description = %q{Is this valid?} | |
gem.summary = %q{I hope it is valid} | |
gem.homepage = "" |
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
<% | |
# vars for default formats. These are overridden by command line args.default_format_multi = "--format #{ENV['CUCUMBER_FORMAT'] || 'progress'}" | |
default_format_single = "--format #{ENV['CUCUMBER_FORMAT'] || 'pretty'}" | |
html_report_options = " --format html --out='public/reports/features.html'" | |
# Use tmp dir for rerun.txt (vs. root) | |
rerun_file = File.join('tmp', 'rerun.txt') | |
rerun = File.file?(rerun_file) ? IO.read(rerun_file) : "" | |
rerun_format = "--format rerun --out #{ rerun_file }" |
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
alias gst='git status ' | |
alias gc='git commit ' | |
alias gca='git commit -a ' | |
alias ga='git add ' | |
alias gco='git checkout ' | |
alias gb='git branch ' | |
alias gd='git diff ' | |
alias gm='git merge ' | |
alias gmm='git merge master' | |
alias gcom='git checkout master' |
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
# | |
# This patch makes structure dump a first class citizen | |
# | |
puts "WARN: We are patching rake tasks to support postgres. You have upgraded Rails and may not need this patch any more (lib/tasks/postgres.rake)." if Rails.version > "3.0.9" | |
Rake.application.remove_task('db:schema:dump') | |
Rake.application.remove_task('db:schema:load') | |
namespace :db do | |
namespace :schema do |
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
$ sudo -i eybackup --download 44:cx_production | |
WARNING: Nokogiri was built against LibXML version 2.7.2, but has dynamically loaded 2.7.3 | |
Downloading gs_production.cx_production/cx_production.2011-07-12T07-18-21.sql.gz.part1 to /mnt/tmp | |
/usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/excon-0.6.3/lib/excon/response.rb:72:in `<<': failed to allocate memory (NoMemoryError) | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/excon-0.6.3/lib/excon/response.rb:72:in `parse' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/excon-0.6.3/lib/excon/connection.rb:163:in `request' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/fog-0.7.2/lib/fog/core/connection.rb:20:in `request' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/fog-0.7.2/lib/fog/storage/aws.rb:323:in `request' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/fog-0.7.2/lib/fog/storage/requests/aws/get_object.rb:53:in `get_object' | |
from /usr/local/ey_resin/ruby/lib/ruby/gems/1.8/gems/fog-0.7.2/lib/fog/storage/models/aws/files.rb:44:in |
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
# I'm in features/support/selectors.rb | |
module HtmlSelectorsHelper | |
def selector_for(scope) | |
case scope | |
when /the body/ | |
"html > body" | |
else | |
begin | |
scope =~ /the (.*)/ |
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
19:03 <#cucumber> cheezyworking with a team close to my home | |
19:05 <#cucumber> cheezywe are wrapping cukes around a telephone queueing and routing system | |
19:05 <#cucumber> cheezywicked stuff | |
19:05 <#cucumber> aslakhellesoy_wow cool! | |
19:05 <#cucumber> aslakhellesoy_ui or headless cukes? | |
19:06 <#cucumber> cheezyit's all headless | |
19:06 <#cucumber> aslakhellesoy_i like headless - much faster | |
19:06 <#cucumber> cheezyi wrote a c layer that simulates the hardware and a ruby lib with ffi | |
19:06 <#cucumber> cheezyand a dsl over the lib | |
19:07 <#cucumber> cheezythe app doesn't really have a head - just c++ |
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
require 'spec_helper' | |
describe Factory do | |
# convention: "base" factories return valid models. | |
# without these tests, factories with invalid associations are difficult to identify and debug | |
# Note: performs build, not create. | |
describe 'all factories,' do | |
factories_to_skip = {} | |
factories_to_skip[:user_session] = "You must activate the Authlogic::Session::Base.controller with a controller object before creating objects" |
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
require 'formula' | |
class Dialog <Formula | |
url 'ftp://invisible-island.net/dialog/dialog.tar.gz' | |
homepage 'http://en.wikipedia.org/wiki/Dialog_(software)' | |
# wikipedia page is more complete than (and contains link to) | |
# homepage 'http://invisible-island.net/dialog/' | |
md5 '519c0a0cbac28ddb992111ec2c3f82aa' | |
version '1.1.20070704' |