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
| If you get the message below use this page: http://wiki.github.com/ngauthier/hydra/why-isnt-it-working | |
| e.g. RAILS_ENV=test rake hydra | |
| Hydra does not include the environment. | |
| undefined method `Factory' for #<ActiveSupport::TestCase::Subclass_15::Subclass_1::Subclass_4::Subclass_1:0x76277b0> | |
| /home/foobar/.bundle/ruby/1.8/gems/actionpack-2.3.4/lib/action_controller/test_process.rb:511:in `method_missing' | |
| /home/foobar/.bundle/ruby/1.8/gems/hydra-0.17.0/lib/hydra/runner.rb:131:in `run_rspec_file' | |
| /home/foobar/.bundle/ruby/1.8/gems/hydra-0.17.0/lib/hydra/runner.rb:39:in `run_file' | |
| /home/foobar/.bundle/ruby/1.8/gems/hydra-0.17.0/lib/hydra/message/worker_messages.rb:19:in `handle' | |
| /home/foobar/.bundle/ruby/1.8/gems/hydra-0.17.0/lib/hydra/runner.rb:69:in `process_messages' |
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
| set nocompatible " We're running Vim, not Vi! | |
| set ic " Disable case sensitivity | |
| nmap <F7> :NERDTreeToggle<CR> | |
| if has("gui_running") | |
| set guioptions-=T | |
| set background=dark | |
| colorscheme koehler | |
| endif | |
| " http://weblog.jamisbuck.org/2008/11/17/vim-follow-up |
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
| module Curl | |
| class Easy | |
| def self.performe | |
| puts "TEST method" | |
| end | |
| puts "easy" | |
| attr_accessor :body_str, :header_str, :response_code | |
| end | |
| 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
| ## Rails App Template | |
| ## Updated for Rails 3.0.3 | |
| ## Forked on 14-01-11 | |
| ## Updated on 14-01-11 | |
| ## Run using $ rails new [appname] -JT -m tpl-railsapp.rb | |
| ## Gems | |
| # Devise for security |
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
| Abiola | U | |
|---|---|---|
| Acelya | U | |
| Ada | U | |
| Adama | U | |
| Addis | U | |
| Addison | U | |
| Adi | U | |
| Adian | U | |
| Aezha | U | |
| Agne | U |
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
| select ?country ?currency ?isocode where { | |
| ?country a <http://dbpedia.org/ontology/Country> . | |
| ?currency a dbpedia-owl:Currency . | |
| ?country ?p ?currency . | |
| ?currency dbpprop:isoCode ?isocode | |
| FILTER NOT EXISTS { ?country dbpedia-owl:dissolutionYear ?disyear } | |
| } LIMIT 1000 |
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
| @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | |
| @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
| @prefix owl: <http://www.w3.org/2002/07/owl#> . | |
| @prefix dc: <http://purl.org/dc/elements/1.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
| #!/bin/bash | |
| echo 'Monitor-Auto-Setup script is starting...' | |
| ## this should be launched from e.g. ~/.i3/config file. | |
| ## this is a setup with one laptop LVDS1 and 2 monitors, one HDMI and one VGA. | |
| displays="$(xrandr -q)" | |
| if [[ $displays =~ VGA[0-9][[:space:]]connected && $displays =~ HDMI[0-9][[:space:]]connected ]]; then | |
| echo '=== LAPTOP IS PROBABLY DOCKED w/ TWO DISPLAYS ===' | |
| xrandr --verbose --output LVDS1 --off; |
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
| var col = 11; // this is the column before it will be inserted | |
| $('#intervals-table table thead').find('th').eq(col).after('<td>SPM</td>'); | |
| $('#intervals-table table tbody').find('tr').each(function(){ | |
| var strokes = parseInt($(this).find('td').eq(12).text().trim()); | |
| //console.log(strokes); | |
| var timeString = $(this).find('td').eq(5).text().trim(); | |
| //console.log(timeString); | |
| var regex = /(\d{1,2}):(\d{2})/g; | |
| var result = regex.exec(timeString); | |
| var minutes = parseInt(result[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
| FROM ruby:2.2.3 | |
| RUN apt-get update -qq && apt-get install -y build-essential libpq-dev | |
| ENV APP_HOME /myapp | |
| RUN mkdir $APP_HOME | |
| WORKDIR $APP_HOME | |
| ENV BUNDLE_PATH /box | |
| ADD . $APP_HOME |
OlderNewer