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
-- Et forsøk på å hente ut | |
select o.object_userid as "Unit", | |
userid(a.cb_id) as "CB" | |
,userid(c.cb_id) as "CB2" | |
from | |
objrep o | |
left join objecttobusbar a on (a.object_id = o.object_id) | |
left join objecttobusbar c on (c.object_id = o.object_id) |
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
!!! drop in Solarized colorscheme for Xresources/Xdefaults | |
!!SOLARIZED HEX 16/8 TERMCOL XTERM/HEX L*A*B RGB HSB | |
!!--------- ------- ---- ------- ----------- ---------- ----------- ----------- | |
!!base03 #002b36 8/4 brblack 234 #1c1c1c 15 -12 -12 0 43 54 193 100 21 | |
!!base02 #073642 0/4 black 235 #262626 20 -12 -12 7 54 66 192 90 26 | |
!!base01 #586e75 10/7 brgreen 240 #585858 45 -07 -07 88 110 117 194 25 46 | |
!!base00 #657b83 11/7 bryellow 241 #626262 50 -07 -07 101 123 131 195 23 51 | |
!!base0 #839496 12/6 brblue 244 #808080 60 -06 -03 131 148 150 186 13 59 | |
!!base1 #93a1a1 14/4 brcyan 245 #8a8a8a 65 -05 -02 147 161 161 180 9 63 |
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 'minitest/unit' | |
class TestPrayer < MiniTest::Unit::TestCase | |
def test_24_hour | |
pt = PrayerTime.new | |
assert_equal "00:30", pt.24_hour(11231.23123) | |
end | |
end |
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
#!/usr/bin/env ruby | |
require 'chronic' | |
saldo = STDIN.gets.to_i | |
today = Date.today | |
p saldo / (Chronic.parse("12th day of #{today.day < 12 ? 'this' : 'next'} month").to_date - today).to_i |
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
+ : 177 > export rvm_trace_flag=1 | |
+ : 177 > rvm_trace_flag=1 | |
+ : 182 > true 1 0 0 0 HOME=/home/oddmunds | |
+ : 186 > (( rvm_ignore_rvmrc == 0 )) | |
+ : 188 > for rvmrc in /etc/rvmrc '"$HOME/.rvmrc"' | |
+ : 190 > [[ -s /etc/rvmrc ]] | |
+ : 188 > for rvmrc in /etc/rvmrc '"$HOME/.rvmrc"' | |
+ : 190 > [[ -s /home/oddmunds/.rvmrc ]] | |
+ : 207 > [[ -z '' ]] | |
+ : 209 > (( UID == 0 )) |
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
1.9.3 --trace | |
rvm 1.13.0 (master) by Wayne E. Seguin <[email protected]>, Michal Papis <[email protected]> [https://rvm.io/] | |
+ /scripts/cli : __rvm_parse_args() 767 > [[ -n '' ]] | |
+ /scripts/cli : __rvm_parse_args() 768 > export 'PS4=+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ /scripts/cli : __rvm_parse_args() 768 > PS4='+ ${BASH_SOURCE##${rvm_path:-}} : ${FUNCNAME[0]:+${FUNCNAME[0]}()} ${LINENO} > ' | |
+ /scripts/cli : __rvm_parse_args() 799 > [[ -z install ]] | |
+ /scripts/cli : __rvm_parse_args() 801 > [[ 0 -eq 1 ]] | |
+ /scripts/cli : __rvm_parse_args() 801 > [[ -n '' ]] |
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
" VUNDLE VUNDLE VUNDLE :F | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'jpalardy/vim-slime' |
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
➜ ~ git clone git://github.com/sstephenson/rbenv.git .rbenv | |
Cloning into '.rbenv'... | |
remote: Counting objects: 1040, done. | |
remote: Compressing objects: 100% (418/418), done. | |
remote: Total 1040 (delta 649), reused 961 (delta 594) | |
Receiving objects: 100% (1040/1040), 138.42 KiB, done. | |
Resolving deltas: 100% (649/649), done. | |
➜ ~ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshenv | |
➜ ~ echo 'eval "$(rbenv init -)"' >> ~/.zshenv | |
➜ ~ echo 'eval "$(rbenv init -)"' >> ~/.zshenv |
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
module Accordion | |
TONES = ['C ', 'C#', 'D ', 'D#', 'E ', 'F ', 'F#', 'G ', 'G#', 'A ', 'A#', 'B '] | |
def get_tone t | |
TONES[t%12] | |
end | |
def rel tone, dist | |
get_tone((TONES.find_index(tone) + dist) % 12) | |
end |
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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
" Bundles: | |
Bundle 'gmarik/vundle' | |
Bundle 'Lokaltog/vim-powerline' | |
Bundle 'Lokaltog/vim-distinguished' |