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
import sbt._ | |
class HelloworldProject(info: ProjectInfo) extends AppengineProject(info) | |
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
// gradle-build that uses meikel brandmeyers clojure-plugin for gradle (clojuresque) | |
// see http://bitbucket.org/kotarak/clojuresque | |
// use a standard maven directory-layout -> /src/main/clojure, /src/main/webapp | |
apply plugin: 'clojure' | |
apply plugin: 'war' | |
apply plugin: 'project-report' | |
warnOnReflection = false | |
aotCompile = true // needed for gen-class in servlet.clj |
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
{-# OPTIONS -Wall #-} | |
module Main where | |
import Control.Concurrent (threadDelay) | |
import System.Environment (getArgs) | |
import System.INotify | |
main :: IO () | |
main = do |
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 sample | |
import java.util.{TimerTask, Timer} | |
/** | |
* Shows Java way of creating an anonymous inner class to supply the code for a TimerTask. | |
*/ | |
object TimerDemo extends Application { | |
new Timer().schedule(new TimerTask { | |
def run() { |
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
%% @author Bryan Fink | |
%% @doc formjson_resource takes x-www-form-urlencoded data and | |
%% re-encodes it as JSON. The data is expected as query | |
%% parameters for a GET, and request body for a POST. | |
%% | |
%% ``` | |
%% In: one=two&me=pope | |
%% Out: {"one":"two","me":"pope"} | |
%% ''' | |
-module(formjson_resource). |
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
(require | |
'[pallet.crate.git :refer [git clone]] | |
'[pallet.crate.java :refer [java]] | |
'[pallet.crate.lein :refer [lein leiningen]]) | |
(def repo "git://github.com/jcrossley3/random-apps-of-kindness.git") | |
(def demo-directory "random-apps-of-kindness/demo") | |
(defplan setup-machine |
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
func worker(die chan bool) { | |
for { | |
select { | |
// ... do stuff cases | |
case <- die: | |
return | |
} | |
} | |
} |
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
## Day 1 - Track 1 ## | |
00:10:00 Pat Helland: Keystone - Between a ROC and a SOFT place | |
01:12:18 Lindsey Kuper: LVars: Lattice-based Data Structures for Deterministic Parallelism | |
02:11:54 Eric Redmond: Yokozuna! | |
04:10:50 Justin Shoffstall & Charlie Voiselle: The Seven-Layer Burrito; Troubleshooting a Distributed Database in Production | |
05:11:00 Peter Bailis: Bad as I wanna be - Coordination and Consistency in Distributed Databases | |
06:13:24 Joseph Blomstedt: Bringing Consistency to Riak (Part 2) | |
07:16:22 Lightning talks (_nb_: you **must** see @tsantero!) |
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
; Released under the Apache License, Version 2.0 | |
; http://www.apache.org/licenses/LICENSE-2.0.html | |
(defmacro try-let | |
"A combination of try and let such that exceptions thrown in the binding or | |
body can be handled by catch clauses in the body, and all bindings are | |
available to the catch and finally clauses. If an exception is thrown while | |
evaluating a binding value, it and all subsequent binding values will be nil. | |
Example: |
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
module-template: ! 'module MODULE_NAME where | |
' | |
extensions: {} | |
environment: default | |
cabal-file: project.cabal | |
version: 1 | |
ghc-args: [] | |
excluded-modules: [] |
OlderNewer