Sat, 12. Jan. 2013
sudo 使ってるときは使わない Plugin とか
let s:nosudo = $SUDO_USER == ''
#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 |
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" |
test |
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'readline' | |
class Wheel | |
CR = "\r" | |
WHEEL = ["\\", "|", "/", "-"] | |
def initialize sec |
$ 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... |
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 |
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 |
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; |