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
source 'http://rubygems.org' | |
gem "thin" | |
gem "sinatra" | |
gem "sinatra-jsonp" | |
gem "pony" |
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
" Strip trailing whitespace | |
function! <SID>StripTrailingWhitespaces() | |
" Preparation: save last search, and cursor position. | |
let _s=@/ | |
let l = line(".") | |
let c = col(".") | |
" Do the business: | |
%s/\s\+$//e | |
" Clean up: restore previous search history, and cursor position | |
let @/=_s |
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 expandtab | |
"set guifont=-*-luxi\ mono-medium-r-normal-*-12-*-*-*-*-*-ISO-8859-2 | |
set guifont=Luxi\ Mono\ 12 | |
set helplang=cs | |
set history=50 | |
set hlsearch | |
set incsearch | |
set mouse=a | |
set ruler | |
set showcmd |
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
var http = require('http'); | |
module['exports'] = function pingWebsite (hook) { | |
var sites = [ | |
'http://trikoko.herokuapp.com', | |
'http://www.fitcor.cz', | |
'http://www.vystavuj.cz' | |
]; | |
for(url in sites) { | |
http.get(url, function(res){ |
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
AuthForm = new Ractive({ | |
el: '#AuthForm' | |
template: '#AuthFormT' | |
data: { | |
sitename: 'Register/Login' | |
user: { | |
name: null | |
password: null | |
} | |
domain: 'ifanda.cz' |
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
server { | |
listen 80; | |
server_name auth.localdomain; | |
root /home/fanda/devel/static/auth/; | |
index auth.html; | |
error_page 403 /account.html; |
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/ruby | |
require 'rubygems' | |
require 'gtk2' | |
require 'librmpd' | |
require 'find' | |
require 'pp' | |
$mpd = MPD.new 'localhost', 6600 | |
$mpd.connect |
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
import std.stdio; // : writeln, writefln, File; | |
import std.functional; | |
import std.string; | |
import std.array : split; | |
import vibe.d; | |
import vibe.db.redis.redis; | |
import std.process; | |
import yaml; | |
shared static this() |