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
execute pathogen#infect() | |
set tabstop=2 | |
set shiftwidth=2 | |
set ruler | |
set laststatus=2 | |
set expandtab | |
set autoindent | |
set wildmode=list:longest | |
set visualbell t_vb= |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE keyboard PUBLIC "" "file://localhost/System/Library/DTDs/KeyboardLayout.dtd"> | |
<!-- Fri, 24 Feb 2006 Generated from KCHR: "Finnish" --> | |
<!--Last edited by Ukelele version 2.1.5 on 2011-08-09 at 06:46 (EEST)--> | |
<keyboard group="0" id="17" name="FINFast" maxout="1"> | |
<layouts> | |
<layout first="0" last="0" modifiers="commonModifiers" mapSet="ANSI"/> | |
<layout first="1" last="1" modifiers="commonModifiers" mapSet="mSet_1"/> | |
</layouts> | |
<modifierMap id="commonModifiers" defaultIndex="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
couch = (uri, opts = {body: null, params: {include_docs: true}}) => | |
fetch(uri.concat('?', Object.entries(opts.params).map(ary => | |
ary.map(encodeURIComponent).join('=')).join('&')), | |
Object.assign({ | |
...(opts.body && { body: JSON.stringify(opts.body) }) | |
, headers: { | |
'Accept': 'application/json' | |
, 'Content-Type': 'application/json' | |
} | |
, method: 'GET' |
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
\Umathcharnumdef\aleph="2135 \Umathcharnumdef\hbar="210F | |
\Umathcharnumdef\imath="1D6A4 \Umathcharnumdef\jmath="1D6A5 | |
\Umathcharnumdef\ell="2113 \Umathcharnumdef\wp="2118 \Umathcharnumdef\Re="211C | |
\Umathcharnumdef\Im="2111 \Umathcharnumdef\infty="221E | |
\Umathcharnumdef\prime="2032 \Umathcharnumdef\emptyset="2205 | |
\Umathcharnumdef\surd="221A \Umathcharnumdef\top="22A4 | |
\Umathcharnumdef\bot="22A5 \Umathcharnumdef\|="2016 | |
\Umathcharnumdef\angle="2220 \Umathcharnumdef\triangle="2206 | |
\Umathcharnumdef\backslash="005C \Umathcharnumdef\forall="2200 | |
\Umathcharnumdef\exists="2203 \Umathcharnumdef\neg="00AC |
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 'dm-core' | |
require 'dm-serializer' | |
require 'dm-migrations' | |
require 'sinatra' | |
require 'sinatra/reloader' | |
require 'slim' | |
require 'json' | |
DataMapper.setup(:default, "sqlite3://#{Dir.pwd}/sqlite.db") |
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
ary.sort_by {|i| i.split(/\D+/).map(&:to_i).reduce(:+) } |