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
| +++ bind.c 2010-10-28 23:09:12.788260925 +0200 | |
| @@ -1508,6 +1508,9 @@ | |
| static int sv_histsize PARAMS((const char *)); | |
| static int sv_isrchterm PARAMS((const char *)); | |
| static int sv_keymap PARAMS((const char *)); | |
| +static int sv_vi_insert_prompt PARAMS((const char *)); | |
| +static int sv_vi_command_prompt PARAMS((const char *)); | |
| +static int sv_vi_mode_changed_bin PARAMS((const char *)); | |
| static const struct { |
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 Backbone.ValidatingModel extends Backbone.Model | |
| _performValidation: (attrs, options = {}) -> | |
| _options = _.clone(options) | |
| _options.error = (model, error, opts) -> | |
| throw new Error(error) | |
| super(attrs, _options) |
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
| compress_assets: off | |
| gzip_assets: off | |
| template_function: Haml | |
| template_extension: js.haml | |
| javascripts: | |
| common: | |
| - public/javascripts/haml.js | |
| - app/views/**/*.js.haml |
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
| describe 'A thing', -> | |
| it 'should make an other thing', -> | |
| this.utilityFunction("test") | |
| expect(this.otherThing).toEqual("test") |
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 rails | |
| system %{sh -c '[[ -f tmp/pids/development.pid ]] && kill $(cat tmp/pids/development.pid)'} | |
| system %{rails s -d} | |
| end | |
| guard 'shell' do | |
| watch(%r{config/(.*)}) { rails } | |
| watch(%r{lib/(.*)}) { rails } | |
| end |
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
| #!/bin/bash | |
| rspec spec | |
| if [ $? -ne 0 ]; then exit 1; fi |
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
| # all tests, run all at start | |
| ACCEPTANCE=true watchr test.watchr | |
| # all tests, don't run at start | |
| ACCEPTANCE=true watchr test.watchr -- -f | |
| # skip acceptance (the slow ones) | |
| watchr test.watchr |
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
| # language definition for scss style sheets | |
| include "c_comment.lang" | |
| string = '#[a-f0-9]{3,6}' | |
| keyword = '[\#\.]+(?=\{)' | |
| selector = '[#\.][[:word:]]+' | |
| keyword = '\$([^ :;]+)' |
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
| # Actually .autotest and lives at the root of your project, from where you execute autotest | |
| # this is all done in a hook, like this: | |
| Autotest.add_hook :initialize do |at| | |
| # i don't like the default exceptions, get rid of them! | |
| at.clear_exceptions | |
| # exclude stuff that changes between each test, like log | |
| at.add_exception('log/') |
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 'net/http' | |
| require 'mechanize' | |
| class RemoteSiteWatchr | |
| def initialize(host, urls, &block) | |
| @host = host | |
| @urls = urls | |
| @block = block | |
| @agent = Mechanize.new |