A variation of Elisenlebkuchen, which contain no flour. Makes ca 45-60 Lebkuchen, 7cm.
Vegan, gluten-free (with the right kind of oblaten), certainly not low-fat or low-sugar.
- 900g nuts or similar. Preferred mixture:
last updated: 4/5/2011
note that this stuff is always a moving target, much of this has been cribbed and combined from various blog posts. Much of the information was out of date from those, and if it is more than a couple months after the last updated date above, consider some of this likely to now be out of date.
object twitter { | |
import play.api.libs.ws._ | |
import play.api.libs.iteratee._ | |
import play.api.libs.oauth._ | |
import scala.concurrent.ExecutionContext.Implicits.global | |
val key = ConsumerKey("XXXX", "XXXX") | |
val twitter = OAuth(ServiceInfo( | |
"https://api.twitter.com/oauth/request_token", |
(ns my-test-ns | |
(:require [clojure.test :refer :all]) | |
(:import [java.util.concurrent CountDownLatch TimeUnit]) | |
(defmacro with-latch | |
[countdown-from & body] | |
`(let [latch# (CountDownLatch. ~countdown-from) | |
~'latch latch#] | |
~@body | |
(.await latch# 5 TimeUnit/SECONDS) |
import dispatch._ | |
import xml._ | |
import concurrent.Future | |
import concurrent.ExecutionContext.Implicits.global | |
/** | |
* Video information of certain video service providers. | |
* Supports Youtube, Vimeo. | |
* Can only get video duration, but easily extensible. |
// Define the following traits and companion object | |
// It's in Rapture Core (https://github.com/propensive/rapture-core) if you don't want to | |
trait LowPriorityDefaultsTo { implicit def fallback[T, S]: DefaultsTo[T, S] = null } | |
object DefaultsTo extends LowPriorityDefaultsTo { implicit def defaultDefaultsTo[T]: DefaultsTo[T, T] = null } | |
trait DefaultsTo[T, S] | |
// Then, assuming we want to specify a default for a type class like `Namer`, | |
case class Namer[T](name: String) |
import shapeless._ | |
/** | |
* Functional update of common fields of an *open* family of case classes | |
* via a case-class-like copy through the common super type ... | |
* | |
* This is a follow up to my earlier post showin how to do functional | |
* update for a sealed family of case classes, | |
* | |
* https://gist.github.com/milessabin/a212d946aef33811fee1 |
The point of this is to use cheap machines with small/slow storage to coordinate client requests while dedicating the machines with the big and fast storage to doing what they do best. I found that request coordination was contributing to about half the CPU usage on our Cassandra nodes, on average. Solid state storage is quite expensive, nearly doubling the cost of typical hardware. It also means that if people have control over hardware placement within the network, they can place proxy nodes closer to the client without impacting their storage footprint or fault tolerance characteristics.
This is accomplished in Cassandra by passing the -Dcassandra.join_ring=false option when the process is started. These nodes will connect to the seeds, cache the gossip data, load the schema, and begin listening for client requests. Messages like "/x.x.x.x is now UP!" will appear on the other nodes.
There are also some more practical benefits to this. Handling client requests caused us to push the NewSize of the heap up
#/usr/bin/env perl -wl | |
use strict; | |
use List::Util qw(sum); | |
my %graph; | |
<>; | |
while (<>) { | |
my ($a, $b) = split; | |
push @{$graph{$a}}, $b; |
antigensAir:algebird antigen$ git pull upstream master | |
From https://github.com/twitter/algebird | |
* branch master -> FETCH_HEAD | |
* [new branch] master -> upstream/master | |
Already up-to-date. | |
antigensAir:algebird antigen$ sbt | |
^CantigensAir:algebird antigensbt "project algebird-core" console | |
[info] Loading project definition from /Users/antigen/dev/algebird/project | |
[info] Updating {file:/Users/antigen/dev/algebird/project/}algebird-build... | |
[info] Resolving org.fusesource.jansi#jansi;1.4 ... |