Skip to content

Instantly share code, notes, and snippets.

View czlang's full-sized avatar

Peter Láng czlang

View GitHub Profile
(ns fotbal.fotbal
(:require [hiccup.page :as hiccup]
[clojure.string :as str]
[compojure.core :refer :all]
[ring.util.response :as response])
(:import (org.jsoup Jsoup Connection Connection$Method)))
(defn hiccup-response
[body]
(-> (hiccup/html5 {:lang "cs"}
(ns foo.bar.datepicker
(:require-macros [re-com.core :refer [handler-fn]])
(:require
[reagent.core :as reagent]
[cljs-time.core :refer [now minus plus hours months days year month day day-of-week first-day-of-the-month before? after?]]
[re-com.validate :refer [goog-date? css-style? html-attr?] :refer-macros [validate-args-macro]]
[cljs-time.predicates :refer [sunday?]]
[cljs-time.format :refer [parse unparse formatters formatter]]
[re-com.box :refer [border h-box flex-child-style]]
[re-com.util :refer [deref-or-value now->utc]]
@czlang
czlang / gist:3892400
Last active October 11, 2015 17:17
git commands
export logu do souboru za posledni 3 mesice
git log --since='3 months ago' --pretty=format:'%ci,%an,%ar,%s' > log.csv
export seznamu zmenenych souboru
git diff -–name-only commit1 commit2 > /path/to/my/file
<!doctype html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; UTF-8"/>
<link rel="stylesheet" href="css/ui-lightness/jquery-ui-1.8.23.custom.css" />
<link rel="stylesheet" href="js/slick_grid/slick.grid.css" type="text/css"/>
<script type="text/javascript" src="js/jquery-1.8.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.23.custom.min.js"></script>
@czlang
czlang / gist:1186077
Created September 1, 2011 12:33
Sublime text editor my config
{
"color_scheme": "Packages/Color Scheme - Default/Solarized (Light).tmTheme",
"find_selected_text": false,
"font_face": "consolas",
"font_size": 11,
"indent_subsequent_lines": false,
"word_wrap": false,
"draw_indent_guides": false
}