Skip to content

Instantly share code, notes, and snippets.

Tomáš Látal kraklin

Block or report user

Report or block kraklin

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@kraklin
kraklin / gist:9de9ca74045ebbec7d5a
Last active Aug 29, 2015
First-28-talks-on-Barcamp-Brno oneliner highlighter
View gist:9de9ca74045ebbec7d5a
for(var i=0; i <28; i++){var nodes = document.querySelectorAll("table"); nodes[nodes.length -1].rows[i].style.backgroundColor="#eeffee";}
View longIf.elm
getCoordsForPosition position =
-- first quadrant
if List.member position [1..5] then
{ x = (9 * position - 4.5), y = 41 }
else if List.member position [6..9] then
{ x = 40.5, y = 41 - (position - 5) * 9 }
else if position == 10 then
{ x = 49.5, y = 5 }
-- second quadrant
else if List.member position [11..15] then
View .vimrc
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Plugins (Vundle)
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
View keybase.md

Keybase proof

I hereby claim:

  • I am kraklin on github.
  • I am tomaslatal (https://keybase.io/tomaslatal) on keybase.
  • I have a public key ASB-cXNF9E7oYhmo6CHIQVUbkv63tnSixsDN5c8ihPR8VQo

To claim this, I am signing this object:

@kraklin
kraklin / BenchmarkPattern.elm
Last active Apr 2, 2019
Benchmark of pattern matching vs. List.indexedMap
View BenchmarkPattern.elm
module BenchmarkPattern exposing (main)
import Benchmark exposing (..)
import Benchmark.Runner exposing (BenchmarkProgram, program)
main : BenchmarkProgram
main =
program suite
You can’t perform that action at this time.