Skip to content

Instantly share code, notes, and snippets.

data FizzBuzz = FizzBuzz
| JustInt Int
| Fizz
| Buzz
instance Show FizzBuzz where
show FizzBuzz = "FizzBuzz"
show Fizz = "Fizz"
show Buzz = "Buzz"
show (JustInt x) = show x

Note that this means that non-existent times, such as "missing hours" during daylight savings conversion, will never match, caus- ing jobs scheduled during the "missing times" not to be run. Similarly, times that occur more than once (again, during daylight savings conversion) will cause matching jobs to be run twice.

from x import *
import x
x.y == y # True
def y(): return Bollox
x.y == y # True
x.y() == Bollox # True
Genderova Expertni Komora ČR financovaná z Norských Grantů ...
Zaujali mě ty Norské Granty, tak jsem trochu hledal a sice pořád
nevím
co to je vlastně zač ale vypadá to že jde o jakousi entitu zkrze kterou
Brusel doluje peníze z Norska.
Norské a EEA granty beží paralelně od roku 2004 a měli by běžet do 2015
s možným přesahem do roku 2017 (dokončení zasponzorovaných programů).
Sedím v kupé s žoviálním starcem, ještě žoviálnějším mladíkem a starou ženou.
Mladík mě občas oslovuje "kolego", což jen těžko odolávám oplácet podobně
žoviálním "zmrde".
@jan-matejka
jan-matejka / out.txt
Last active September 18, 2015 01:26
running "almost" python from python
https://github.com/yaccz/code-samples-python-code-grammar
curl localhost:8080 -d @json
@jan-matejka
jan-matejka / gist:2534c4c50b39f4e76036
Created August 26, 2015 16:17
git diverged master workflow
yac@rainbowdash % g ci -a
[master ac6f783] Add g-auto-update repo
1 file changed, 6 insertions(+)
--------------------------------------------------------------------------------
~/data/hd/gitolite/private.git/conf git:master
yac@rainbowdash % g psh
To example.com:gitolite-admin.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'example.com:gitolite-admin.git'
hint: Updates were rejected because the remote contains work that you do
@jan-matejka
jan-matejka / a.py
Created July 16, 2015 18:47
fail works as expected but success hangs
# -*- coding: utf-8 -*-
import asyncio, functools
from nose.tools import raises
class ExitFailure(RuntimeError):
def __init__(self, exit_code):
self.exit_code = exit_code
class ExitSuccess:
{-# LANGUAGE OverloadedStrings #-}
module YGit.Forking
( headCommit
, Repo (..)
) where
import Git
import qualified Git.Libgit2 as Lg
import Control.Monad.Reader
import Control.Monad.Logger