{{ message }}

Instantly share code, notes, and snippets.

• Ukraine, Lviv
Last active Dec 12, 2015

• Last active Dec 11, 2015
ZSH config
View .zshrc
 autoload -U colors && colors autoload -Uz compinit && compinit PROMPT="%{\$fg[blue]%}%~ ▶%{\$reset_color%} " export TERM="xterm-256color" export EDITOR='vim' export CLICOLOR=1 export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true" alias l='ls'
Created Aug 10, 2012
Problem 75, rev.2
View e75.cpp
 #include #include #include #include #include #include #include using namespace std; const long limit = 1500000;
Created Aug 10, 2012
Problem 75
View e75.cpp
 #include #include #include #include #include #include #include using namespace std; const long limit = 1500000;
Created Jul 21, 2012
Problem 63
View gist:3156936
 total = 0 next_order = 10 length = 1 while True: result_of_power = 0 base = 1 list_of_powers = [] while result_of_power < next_order: result_of_power = base**length list_of_powers.append(result_of_power)
Created Jan 5, 2012
View simplepastiefile.m
 #include #include #include using namespace std; int main() { vector text; string word; while (cin >> word) {
Created Jan 5, 2012
View simplepastiefile.m
 #include #include #include using namespace std; int main() { vector text; string word; while (cin >> word) {
Created Jul 8, 2015
View gist:21cb6e526d8e397c4da4
 module Scraper::BookingCom class RoomBot < BotBase include Scraper::ScrapingCommon HTTP_RESPONSE_VALIDATORS = [ :nil_response, :status_404, :status_200, :html, ->(url, resp) { raise(CustomExceptions::InvalidUrlError, url) if resp.uri.path.include?("searchresults") } ] def scrape
Last active Aug 29, 2015
View gist:bcd5fdacc740435f704c
 module Scraper::BookingCom class RoomBot < BotBase include Scraper::ScrapingCommon HTTP_RESPONSE_VALIDATORS = [ :nil_response, :status_404, :status_200, :html, ->(url, resp) { raise(CustomExceptions::InvalidUrlError, url) if resp.uri.path.include?("searchresults") } ] def scrape
Created Feb 27, 2015