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
/* | |
* The reason for this is just a thought exercise | |
* often people(myself super included) are so confused | |
* when trying something new, but breaking it down | |
* to it's simplest existence can be the best way to understand | |
*/ | |
function createStore(reducer, initState) { | |
let state = initState; | |
let subscribers = []; |
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 java.nio.ByteBuffer | |
import scala.util.Failure | |
import scala.util.Success | |
import scala.util.Try | |
import org.apache.commons.codec.binary.Hex | |
import org.jboss.netty.buffer.ChannelBuffers | |
import org.joda.time.DateTime | |
import org.joda.time.DateTimeZone |
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
""" | |
Installs your SSH key on other hosts. A fabfile for lazy people. | |
""" | |
from fabric.api import task, run, put, env, cd | |
# Use sh instead of bash. | |
env.shell = '/bin/sh -l -c' | |
@task |