This file contains hidden or 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
| (function(message){ | |
| alert(message); | |
| })('hello!'); | |
| // ------------------------- | |
| var Test = function() { | |
| var message = 'hello'; | |
| return { | |
| say: function() { |
This file contains hidden or 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
| class JobsController < ApplicationController | |
| before_filter :require_user, :except => [ :index, :show ] | |
| def index | |
| @listings = Job.find_by_complex_search(current_user, params).paginate({ :page => params[:page], :per_page => CONFIG['per_page'] }) | |
| flash.now[:notice] = "Sorry, there were no records found." if @listings.blank? | |
| respond_to do |format| | |
| format.html # index.html.erb |
This file contains hidden or 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
| mysql: &mysql | |
| adapter: mysql | |
| username: root | |
| password: <%= get_mysql_password %> | |
| host: localhost | |
| socket: <%= [ | |
| '/var/lib/mysql/mysql.sock', | |
| '/var/run/mysqld/mysqld.sock', | |
| '/tmp/mysqld.sock', | |
| '/tmp/mysql.sock', |
This file contains hidden or 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
| # install ruby-mysql for snow leopard | |
| sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config |
This file contains hidden or 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
| Exception | |
| NoMemoryError | |
| ScriptError | |
| LoadError | |
| NotImplementedError | |
| SyntaxError | |
| SignalException | |
| Interrupt | |
| StandardError | |
| ArgumentError |
This file contains hidden or 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
| def IRB.run_config | |
| if @CONF[:RC] | |
| begin | |
| load rc_file | |
| rescue LoadError, Errno::ENOENT | |
| rescue | |
| print "load error: #{rc_file}\n" | |
| print $!.class, ": ", $!, "\n" | |
| for err in $@[0, $@.size - 2] | |
| print "\t", err, "\n" |
This file contains hidden or 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 'nokogiri' | |
| require 'open-uri' | |
| require 'stringex' | |
| require 'git' | |
| username = ARGV[0] | |
| repo = ARGV[1] | |
| base_url = "http://wiki.github.com/#{username}/#{repo}" |
This file contains hidden or 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
| # Scenario Outline: Viewing <user_count> users | |
| # Given I am a logged in admin | |
| # And there are <user_count> users | |
| # When I go to the admin users page | |
| # Then I should see the users | |
| # And I should not see "No users registered" | |
| # | |
| # Examples: | |
| # | user_count | | |
| # | 1 | |
This file contains hidden or 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
| Aydindril | |
| attack 286,27 any t:550,b:550 | |
| attack 287,26 any t:550,b:550 | |
| attack 288,27 any t:550,b:550 | |
| attack 289,28 any t:550,b:550 | |
| attack 290,28 any t:550,b:550 | |
| attack 287,24 any t:550,b:550 | |
| attack 290,24 any t:550,b:550 | |
| attack 291,24 any t:550,b:550 |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Colors</key> | |
| <dict> | |
| <key>Background</key> | |
| <string>0.082 0.087 0.109</string> | |
| <key>InsertionPoint</key> | |
| <string>1.000 1.000 1.000</string> |