As configured in my dotfiles.
start new:
tmux
start new with session name:
import akka.amqp.AMQP._ | |
import akka.amqp._ | |
import akka.actor._ | |
import java.util.concurrent.{TimeUnit, CountDownLatch} | |
import util.Random | |
object LoadBalancingDemo { | |
def main(args: Array[String]) { |
val retryBlock = new Retry[String](6) | |
import retryBlock.retry | |
retry { | |
doSomething(somePar) | |
} giveup { | |
case e: Exception => handleException(e) | |
} |
package main | |
import ( | |
"bytes" | |
"encoding/hex" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" |
ruby_block "sync_build_from_s3" do | |
action :nothing | |
block do | |
# latest_file contains path to the latest.txt, which lists files to sync | |
file = File.new(latest_file, "r"); | |
run_context = Chef::RunContext.new(node, {}) | |
# | |
# Create the directory to hold the new build files | |
# |
As configured in my dotfiles.
start new:
tmux
start new with session name:
object Hoho { | |
trait Foo[A] { | |
def phooey(): Unit | |
} | |
implicit def intFoo(i: Int): Foo[Int] = new Foo[Int] { | |
def phooey(): Unit = println("int " + i.toString) | |
} |
window.stoppingPropagation = (callback) -> (e) -> | |
e.stopPropagation() | |
callback(e) | |
angular.module('myApp',[]).directive 'ngTap', -> | |
(scope, element, attrs) -> | |
tapping = false | |
element.bind 'touchstart', stoppingPropagation (e) -> tapping = true | |
element.bind 'touchmove', stoppingPropagation (e) -> tapping = false | |
element.bind 'touchend', stoppingPropagation (e) -> scope.$apply(attrs['ngTap']) if tapping |
import math._ | |
1L // Long型の 1 | |
1:Long // Long型の 1 | |
127:Byte // Byte型の 127 | |
32767:Short // Short型の 32767 | |
(1+2).toLong // Long型への変換 | |
(2+3) toLong // Long型への変換 |
If you want to run it on phantomjs (a headless browser) you can add this profile to your behat.yml and you need phantomjs >= 1.8.0
phantomjs:
extensions:
Behat\MinkExtension\Extension:
base_url: http://dev.local
goutte: ~
selenium2:
wd_host: "http://localhost:8643/wd/hub"