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
#!/usr/bin/env ruby | |
if `git diff --cached spec` =~ /,\s?(:focus|focus:\s?true|:focus\s?=>\s?true)/ | |
puts "\e[31mPlease focus and remove your :focus tags before committing :)" | |
exit 1 | |
end |
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
core@ip-10-0-1-235 ~ $ cat /run/systemd/system/etcd.service.d/20-cloudinit.conf | |
[Service] | |
Environment="ETCD_ADDR=10.0.1.235:4001" | |
Environment="ETCD_CLUSTER_ACTIVE_SIZE=3" | |
Environment="ETCD_DISCOVERY=http://10.0.0.66:4001/v2/keys/_etcd/registry/cluster-dev-f9ekeksid832ik4k" | |
Environment="ETCD_NAME=10-0-1-235" | |
Environment="ETCD_PEER_ADDR=10.0.1.235:7001" | |
Environment="ETCD_TRACE=*" | |
Environment="ETCD_VERY_VERY_VERBOSE=true" |
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
def receive = { | |
case DoWork => | |
val data: Future[Data] = getHundredsOfMegabytesOfData() | |
data.flatMap(computationallyExpensiveOperations).pipeTo(sender()) | |
} |
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
'atom-text-editor.vim-mode:not(.insert-mode)': | |
':': 'go-to-line:toggle' |
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
Mar 20 17:22:22 ip-10-0-0-91.us-east-1.compute.internal systemd[1]: Starting docker container 0059525419ee59f85914c38825009fef6ad7e317d66ac984c9e71229e1fdb39a. | |
Mar 20 17:22:22 ip-10-0-0-91.us-east-1.compute.internal systemd[1]: Started docker container 0059525419ee59f85914c38825009fef6ad7e317d66ac984c9e71229e1fdb39a. | |
Mar 20 17:22:22 ip-10-0-0-91.us-east-1.compute.internal kernel: device veth08bf4ef entered promiscuous mode | |
Mar 20 17:22:22 ip-10-0-0-91.us-east-1.compute.internal kernel: IPv6: ADDRCONF(NETDEV_UP): veth08bf4ef: link is not ready | |
Mar 20 17:22:22 ip-10-0-0-91.us-east-1.compute.internal systemd-networkd[465]: veth08bf4ef : link configured | |
Mar 20 17:22:22 ip-10-0-0-91.us-east-1.compute.internal kernel: eth0: renamed from veth1b4dbf6 | |
Mar 20 17:22:22 ip-10-0-0-91.us-east-1.compute.internal systemd-networkd[465]: veth08bf4ef : gained carrier | |
Mar 20 17:22:22 ip-10-0-0-91.us-east-1.compute.internal kernel: IPv6: ADDRCONF(NETDEV_CHANGE): veth08bf4ef: link becomes ready | |
Mar 20 17:22:22 ip-10-0-0-91 |
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
/** | |
* To get started: | |
* git clone https://github.com/twitter/algebird | |
* cd algebird | |
* ./sbt algebird-core/console | |
*/ | |
/** | |
* Let's get some data. Here is Alice in Wonderland, line by line | |
*/ |
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
case object Hello | |
case object Howdy | |
case object GetCount | |
case class HelloCount(count: Int) | |
class HelloActor extends Actor { | |
var count = 0 | |
def receive = { |
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 org.ryantanner | |
import scala.annotation.implicitNotFound | |
import shapeless._ | |
import Nat._ | |
import ops.nat._ | |
import LTEq._ | |
import GTEq._ | |
import RankGTEq._ |
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
sealed trait Permission | |
case object Administrator extends Permission | |
case object NormalUser extends Permission |
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
object Account | |
object Clob { | |
def unapply(clob: Clob): Option[String] = Some(clob.getSubString(1, clob.length.toInt)) | |
} | |
implicit val rowToPermission: Column[Permission] = { | |
Column.nonNull[Permission] { (value, meta) => | |
value match { | |
case Clob("Administrator") => Right(Administrator) |
OlderNewer