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
USE `d73213_ethics`; | |
DROP TABLE IF EXISTS `prispel`; | |
CREATE TABLE `prispel` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`prispel` int(11) NOT NULL, | |
`last_updated` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_czech_ci; |
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
let g:rbpt_colorpairs = [ | |
\ ['brown', 'RoyalBlue3'], | |
\ ['darkgreen', 'firebrick3'], | |
\ ['Darkblue', 'SeaGreen3'], | |
\ ['darkcyan', 'RoyalBlue3'], | |
\ ['darkred', 'SeaGreen3'], | |
\ ['darkmagenta', 'DarkOrchid3'], | |
\ ['brown', 'firebrick3'], | |
\ ['darkmagenta', 'DarkOrchid3'], | |
\ ['Darkblue', 'firebrick3'], |
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
sudo vi /etc/default/grub | |
... | |
sudo update-grub | |
sudo add-apt-repository ppa:danielrichter2007/grub-customizer | |
sudo apt-get update | |
sudo apt-get install grub-customizer |
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
@_1 = -> | |
# sum of multiples of 3 or 5 (not both) under 1K | |
answer = 0 | |
for n in [1...1000] | |
if n % 3 == 0 or n % 5 == 0 | |
answer += n |
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
# ======================================================================= | |
# ======================================================================= | |
# ======================================================================= | |
# =============================================================== Info == | |
# This is also known as Bin Packing Problem | |
# http://en.wikipedia.org/wiki/Bin_packing_problem | |
# inspiration: http://www.developerfusion.com/article/5540/bin-packing/ | |
# or maybe Knapsack Problem? |
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
#======================================================================# | |
# Biologicke algoritmy (2) - Evoluční algoritmy # | |
# http://www.root.cz/clanky/biologicke-algoritmy-2-evolucni-algoritmy/ # | |
#======================================================================# | |
# | |
# hledame kruznice, ktere nejvic sedi na danou mnozinu bodu | |
# | |
# ---------------------------------------------------------- | |
# | |
# jedinec = trojice kruznic |
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
run: | |
erlc binary_search.erl | |
erl -noshell -s binary_search test -s init stop | |
tests: | |
python write_tests.py >binary_search_tests.erl | |
erlc binary_search_tests.erl | |
all: tests run |
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/env python | |
# dependencies: py-gdata | |
# example usage: | |
# ./yt.py "words that have to be in title" | |
import sys | |
import gdata | |
import gdata.youtube |
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 gulp = require('gulp'); | |
var elm = require('gulp-elm'); | |
var concat = require('gulp-concat'); | |
var plumber = require('gulp-plumber'); | |
var livereload = require('gulp-livereload'); | |
var path = ['src/**/*.elm','tests/**/*.elm']; | |
gulp.task('elm-init', elm.init); |
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
-module(go). | |
-export([prime/3, | |
server/0, | |
server/4, | |
start/0]). | |
prime(OldTick, N, Server) -> | |
receive | |
false -> ok | |
end, |