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
| (deftype Element [data start end] :as this | |
| clojure.lang.Associative | |
| (assoc [key value] | |
| (apply (fn [data start end] | |
| (Element. data start end)) | |
| (vals (assoc {:data (:data this) | |
| :start (:start this) | |
| :end (:end this)} | |
| key value))))) |
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
| (progress | |
| [timestamp] | |
| (let [[out in] (split-with #(< (first %) timestamp) end-timestamp-sorted-map) | |
| new-sorted-map (into (sorted-map) in) | |
| new-hashed-map (reduce | |
| dissoc key-hashed-map | |
| (map first | |
| (filter #(empty? (second %)) | |
| (reduce | |
| (fn [m x] |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <title>Hello World</title> | |
| <script src="lib/touch/sencha-touch.js" type="text/javascript"></script> | |
| <script type="text/javascript" src="out/goog/base.js"></script> | |
| <script src="test.js" type="text/javascript"></script> | |
| <script>goog.require('test');</script> |
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 xdg-open | |
| [Desktop Entry] | |
| Version=1.0 | |
| Name=Google+ | |
| Exec=chromium --app=https://plus.google.com/ | |
| Terminal=false | |
| Icon=chrome-https___plus.google.com_ | |
| Type=Application | |
| Categories=GTK;Network;WebBrowser; | |
| StartupWMClass=plus.google.com |
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 XMonad | |
| import XMonad.Actions.UpdatePointer | |
| import XMonad.Config.Desktop | |
| import XMonad.Hooks.DynamicLog | |
| import XMonad.Hooks.ManageDocks | |
| import XMonad.Hooks.ManageHelpers | |
| import XMonad.Hooks.EwmhDesktops | |
| import XMonad.Hooks.SetWMName | |
| import XMonad.Layout.PerWorkspace | |
| import XMonad.Layout.Reflect |
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 XMonad | |
| import XMonad.Actions.UpdatePointer | |
| import XMonad.Config.Desktop | |
| import XMonad.Hooks.DynamicLog | |
| import XMonad.Hooks.ManageDocks | |
| import XMonad.Hooks.ManageHelpers | |
| import XMonad.Hooks.EwmhDesktops | |
| import XMonad.Hooks.SetWMName | |
| import XMonad.Layout.PerWorkspace | |
| import XMonad.Layout.Reflect |
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
| user=> (do (defn foo [bar] (inc bar)) | |
| (prn (foo 1)) | |
| (time (defn foo [bar] (dec bar))) | |
| (foo 1)) | |
| 2 | |
| "Elapsed time: 0.189684 msecs" | |
| 0 |
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
| #Colorful prompt, shows current git branch | |
| PS1='\[\033[01;32m\]\u\[\033[00m\]@\[\033[01;32m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\[\033[0;36m\]`git branch 2>/dev/null|cut -f2 -d\* -s`\[\033[00m\]\$ ' |
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
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE GADTs #-} | |
| {-# LANGUAGE MonadComprehensions #-} | |
| {-# LANGUAGE MultiParamTypeClasses #-} | |
| {-# LANGUAGE OverloadedStrings #-} | |
| {-# LANGUAGE RebindableSyntax #-} | |
| {-# LANGUAGE TemplateHaskell #-} | |
| {-# LANGUAGE TypeFamilies #-} | |
| {-# LANGUAGE UndecidableInstances #-} | |
| {-# LANGUAGE ViewPatterns #-} |
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
| {-# LANGUAGE FlexibleInstances #-} | |
| {-# LANGUAGE GADTs #-} | |
| {-# LANGUAGE MonadComprehensions #-} | |
| {-# LANGUAGE MultiParamTypeClasses #-} | |
| {-# LANGUAGE OverloadedStrings #-} | |
| {-# LANGUAGE RebindableSyntax #-} | |
| {-# LANGUAGE TemplateHaskell #-} | |
| {-# LANGUAGE TypeFamilies #-} | |
| {-# LANGUAGE UndecidableInstances #-} | |
| {-# LANGUAGE ViewPatterns #-} |
OlderNewer