:find <filename>
:sp
:vsp
:tabnew
:tabe
-module(freyr_reading_queries). | |
-export([all/0, by_hour/1, by_device/1]). | |
-include_lib("stdlib/include/qlc.hrl"). | |
-include("freyr_reading.hrl"). | |
all() -> | |
#freyr_reading{_='_'}. |
class Future < Thread | |
def result | |
join | |
value | |
end | |
end |
Steps to install and run PostgreSQL 9.3 using Homebrew (Mac OS X) | |
(if you aren't using version 9.2.4, change to the correct version) | |
launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist | |
mv /usr/local/var/postgres /usr/local/var/postgres92 | |
brew upgrade postgresql | |
initdb /usr/local/var/postgres -E utf8 | |
pg_upgrade -b /usr/local/Cellar/postgresql/9.2.4/bin -B /usr/local/Cellar/postgresql/9.3.0/bin -d /usr/local/var/postgres92 -D /usr/local/var/postgres | |
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist |
set nocompatible | |
set nobackup | |
set nowritebackup | |
set notimeout | |
set ttimeout | |
set ttimeoutlen=10 | |
set noswapfile | |
set history=50 | |
set ruler | |
set showcmd |
let g:greyhound_path = '/path/to/greyhound' | |
let g:ctrlp_use_caching = 0 | |
let g:greyhound_exclude_paths = ".git,public/system,public/uploads,.svn,tmp/,vendor/cache,vendor/bundle,log/,.bundle,coverage/" | |
let g:ctrlp_user_command = g:greyhound_path." --exclude ".g:greyhound_exclude_paths | |
let g:ctrlp_match_func = { 'match': 'Greyhound' } | |
function! Greyhound(items, str, limit, mmode, ispath, crfile, regex) | |
let cmd = g:greyhound_path.' --exclude '.g:greyhound_exclude_paths |
let g:rails_projections = { | |
\ "config/projections.json": { | |
\ "command": "projections" | |
\ }} | |
let g:rails_gem_projections = { | |
\ "active_model_serializers": { | |
\ "app/serializers/*_serializer.rb": { | |
\ "command": "serializer", | |
\ "affinity": "model" |
/tmp/build_2tdvv2hv9kbdt/vendor/ruby-2.0.0/lib/ruby/2.0.0/fileutils.rb:1378: [BUG] Segmentation fault | |
ruby 2.0.0p0 (2013-02-24 revision 39474) [x86_64-linux] | |
-- Control frame information ----------------------------------------------- | |
c:0065 p:---- s:0253 e:000252 CFUNC :stat | |
c:0064 p:0037 s:0249 e:000248 METHOD /tmp/build_2tdvv2hv9kbdt/vendor/ruby-2.0.0/lib/ruby/2.0.0/fileutils.rb:1378 | |
c:0063 p:0007 s:0246 e:000245 METHOD /tmp/build_2tdvv2hv9kbdt/vendor/ruby-2.0.0/lib/ruby/2.0.0/fileutils.rb:1385 | |
c:0062 p:0007 s:0243 e:000242 METHOD /tmp/build_2tdvv2hv9kbdt/vendor/ruby-2.0.0/lib/ruby/2.0.0/fileutils.rb:1301 | |
c:0061 p:0028 s:0240 e:000239 BLOCK /tmp/build_2tdvv2hv9kbdt/vendor/ruby-2.0.0/lib/ruby/2.0.0/fileutils.rb:583 | |
c:0060 p:0055 s:0235 e:000234 BLOCK /tmp/build_2tdvv2hv9kbdt/vendor/ruby-2.0.0/lib/ruby/2.0.0/fileutils.rb:1620 | |
c:0059 p:0107 s:0231 e:000230 METHOD /tmp/build_2tdvv2hv9kbdt/vendor/ruby-2.0.0/lib/ruby/2.0.0/fileutils.rb:1635 |
# spec/support/deferred_garbage_collection.rb | |
class DeferredGarbageCollection | |
DEFERRED_GC_THRESHOLD = (ENV['DEFER_GC'] || 15.0).to_f | |
@@last_gc_run = Time.now | |
def self.start | |
GC.disable if DEFERRED_GC_THRESHOLD > 0 |
When using the Fish shell, you may need to run commands with local variables, like the following (Bash):
RAILS_ENV=staging rake db:migrate
This doesn't work in Fish, as setting a local variable follows another syntax, using the set
command.
You can achieve the same result with the following syntax:
set -lx RAILS_ENV staging; rake db:migrate