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
package cljinject; | |
import javax.servlet.ServletContext; | |
import javax.servlet.ServletContextEvent; | |
import javax.servlet.ServletContextListener; | |
import clojure.lang.Compiler; | |
import java.io.StringReader; | |
public class SwankServletContextListener implements ServletContextListener{ |
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
{:tag :net.cgrand.parsley/root, | |
:content | |
["(" | |
"(" | |
{:tag :prefix-op, :content ["-"]} | |
{:tag :key-value, | |
:content | |
[{:tag :symbol, :content ["w"]} ":" {:tag :symbol, :content ["b"]}]} | |
{:tag :ws, :content [" "]} | |
{:tag :right-hand, |
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
ls hello | |
mkdir bouge | |
ln -s meme | |
echo 'ehlo' |
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
(filter #(= code (-> % getAttribute getCode)) | |
attributeValues) |
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
(map "Tu t'inscris, tu cliques sur 'gist', tu choisis le language, tu copies/colles dans la textera, tu fais 'enregistrer'" | |
(range)) |
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
denis@dla-hp:~/work/doc-cache/lily$ vagrant box add package-lily-ok package-lily-ok.box | |
[vagrant] Downloading with Vagrant::Downloaders::File... | |
[vagrant] Copying box to temporary location... | |
[vagrant] Extracting box... | |
[vagrant] Cleaning up downloaded box... | |
Failed to untar the box file. This is usually because you're | |
attempting to add a box that isn't a valid box file. Please | |
double check that the box file is properly packaged. |
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
aspect WhereDoesTheTimeGo { | |
} |
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
;; you are starting here | |
(fn [x & xs] | |
(fn [& args] | |
((fn step [[f & fs] a] | |
(if fs | |
(f (step fs a)) | |
(apply f a))) | |
(cons x xs) args))) |
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
denis@zeus:~/tmp$ lein new foo | |
Generating a project called foo based on the 'default' template. | |
To see other templates (app, lein plugin, etc), try `lein help new`. | |
denis@zeus:~/tmp$ cat foo/project.clj | |
(defproject foo "0.1.0-SNAPSHOT" | |
:description "FIXME: write description" | |
:url "http://example.com/FIXME" | |
:license {:name "Eclipse Public License" | |
:url "http://www.eclipse.org/legal/epl-v10.html"} | |
:dependencies [[org.clojure/clojure "1.4.0"]]) |
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
select * | |
from ACT_HI_TASKINST HTI | |
WHERE HTI.PROC_INST_ID_ = '178401' | |
order by HTI.START_TIME_ asc; |