Skip to content

Instantly share code, notes, and snippets.

View grauwoelfchen's full-sized avatar
🐺
Typing with carved wooden keyboard ᕕ( ᐛ )ᕗ

Yasha grauwoelfchen

🐺
Typing with carved wooden keyboard ᕕ( ᐛ )ᕗ
View GitHub Profile
#main
.btn-toolbar
.btn-group
%a{href:"#id"}.test link
"" syntax check
compiler ruby
setlocal makeprg=ruby\ -c\ %
augroup syntax_check
autocmd!
autocmd BufWritePost <buffer> silent make! -c % | redraw!
augroup END
@grauwoelfchen
grauwoelfchen / .zshrc
Created January 16, 2013 17:42
zsh "spring" prompt
function git_prompt {
local branch branch_color head head_color
branch=`git symbolic-ref HEAD 2>/dev/null | cut -d'/' -f3`
if [[ -z $branch ]]; then
return
fi
if [[ -n `git status | grep "^nothing to"` ]]; then
branch_color="085"
else
branch_color="126"
@grauwoelfchen
grauwoelfchen / gist:4545477
Created January 16, 2013 08:19
reading vimrc 28

vimrc reading 28

Sat, 12. Jan. 2013

sudo 使ってるときは使わない Plugin とか

let s:nosudo = $SUDO_USER == ''
test
#!/usr/bin/env ruby
# encoding: utf-8
require 'readline'
class Wheel
CR = "\r"
WHEEL = ["\\", "|", "/", "-"]
def initialize sec
@grauwoelfchen
grauwoelfchen / gist:4111968
Created November 19, 2012 17:09
glpk glpsol command output
$ glpsol -m tdl_pass.mod -d tdl_pass.dat -o tdl_pass.sol
GLPSOL: GLPK LP/MIP Solver, v4.47
Parameter(s) specified in the command line:
-m tdl_pass.mod -d tdl_pass.dat -o tdl_pass.sol
Reading model section from tdl_pass.mod...
45 lines were read
Reading data section from tdl_pass.dat...
83 lines were read
Generating wife_s_pleasure...
Generating in_one_day...
@grauwoelfchen
grauwoelfchen / tdl_pass.sol
Created November 19, 2012 16:54
glpk tdl_pass.sol
Problem: tdl_pass
Rows: 11
Columns: 48 (48 integer, 48 binary)
Non-zeros: 120
Status: INTEGER OPTIMAL
Objective: wife_s_pleasure = 55 (MAXimum)
No. Row name Activity Lower bound Upper bound
------ ------------ ------------- ------------- -------------
1 wife_s_pleasure
@grauwoelfchen
grauwoelfchen / tdl_pass.dat
Created November 19, 2012 16:54
glpk tdl_pass.dat
data;
set attractions :=
0 1 2 3 4 5 6 7 8
10 11 12 13 14 15 16 17
20 21 22 23 24 25 28 29
30 32 34 35 36 37 39
9a 9b
18a 18b
19a 19b
@grauwoelfchen
grauwoelfchen / tdl_pass.mod
Created November 19, 2012 16:53
glpk tdl_pass.mod
set attractions;
set fast_passes;
set attraction_9;
set attraction_18;
set attraction_19;
set attraction_26;
set attraction_27;
set attraction_31;
set attraction_33;