This file contains hidden or 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
\version "2.16.0" | |
global = { | |
% \key c \major | |
\cadenzaOn % no timing, no automatic bars | |
% no stem | |
\override Stem #'transparent = ##t | |
\override Stem #'Y-extent = ##f | |
This file contains hidden or 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 unittest | |
import time | |
import os | |
_COLOR = {'green': "\x1b[32;01m", | |
'red': "\x1b[31;01m", | |
'reset': "\x1b[0m" | |
} | |
def red_str(text): |
This file contains hidden or 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/env ruby | |
# 2015-05-09 | |
# | |
# prints information from the Koupaliste Petynka's website | |
require 'mechanize' # interaction with websites | |
page = Mechanize.new.get('http://www.koupalistepetynka.cz/') |
This file contains hidden or 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/python | |
# jsongetter.py | |
# | |
# reads json file/s, | |
# gets a part specified in a Python dict/list notation, | |
# prints formatted contents | |
# | |
# $ jsongetter.py <keys> [file1 file2 ...] | |
# |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
# coding: utf-8 | |
# petynka.cr | |
# | |
# Extracts temperature and count of visitors from the website | |
# of Koupaliste Petynka, Prague | |
require "http/client" | |
require "http/headers" | |
require "option_parser" |
This file contains hidden or 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
# encoding: utf-8 | |
from __future__ import unicode_literals | |
import sys, re | |
from bs4 import BeautifulSoup | |
import requests | |
from termcolor import colored | |
MENU_URL = 'http://www.pizzeria-manna.cz/index.asp?id=dennimenu' |
This file contains hidden or 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
\header | |
title: Supplementum Antiphonarii pro eclesiis Montis Sion, Siloensi et Neorisensi | |
% Die 4. Martii | |
% Translatio S. Wenceslai Martyris | |
\score | |
office-part: antiphona ad Magnificat | |
mode: 1 | |
annotation: Ad Magnif. |
This file contains hidden or 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 'countries' | |
require 'json' | |
require 'active_support' | |
require 'sort_alphabetical' | |
lang = ARGV[0] || 'cs' | |
data = ISO3166::Country | |
.all | |
.collect {|c| {name: c.translations[lang], code: c.alpha2} } |
This file contains hidden or 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
# script analyzing incoming traffic from seznam.cz search | |
# in Apache access log | |
# Seznam search is "kind enough" to preserve the query in referer | |
# typical usage: | |
# grep search.seznam.cz access.log | seznam_searches.rb | |
# | |
# grepping the log isn't really necessary, it just spares the script | |
# parsing each line and makes it work only with the interesting |
OlderNewer