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
1/5 |
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
trait IgnoreIfBusyCmd | |
abstract class IgnoreIfBusyTyped[C <: IgnoreIfBusyCmd](implicit m: Manifest[C]) extends Actor with ActorLogging{ | |
import context.{become, unbecome} | |
import context.system | |
class Completed { | |
override def toString = "Completed" | |
} |
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
abstract class IgnoreIfBusyTyped[C](implicit m: Manifest[C]) | |
extends Actor with ActorLogging { | |
import context.{become, unbecome} | |
import context.system | |
class Completed { | |
override def toString = "Completed" | |
} |
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 example | |
import collection.mutable.ArrayBuffer | |
import collection.mutable | |
import annotation.tailrec | |
/** | |
* @author Alex Siman <[email protected]> | |
* Date: 2013-09-12 | |
*/ |
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 models | |
import scala.slick.driver.PostgresDriver.simple._ | |
import Database.threadLocalSession | |
import scala.slick.jdbc.{GetResult, StaticQuery => Q} | |
trait AbstractDao[Id, E] { | |
def countAll: Int |
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
sudo apt-get remove scala-library scala | |
sudo wget www.scala-lang.org/files/archive/scala-2.11.7.deb | |
sudo dpkg -i scala-2.11.7.deb | |
sudo apt-get update | |
sudo apt-get install scala | |
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list | |
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823 | |
sudo apt-get update | |
sudo apt-get install sbt |
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
{ | |
"brand": "Twitch", | |
"site": "https://www.twitch.tv/", | |
"logo": "https://www-cdn.jtvnw.net/images/twitch_logo3.jpg", | |
"market": "Gaming", | |
"tactic": "Build a UGC community" | |
}, | |
{ | |
"brand": "Airbnb", | |
"site": "https://www.airbnb.com/", |
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
var script = document.createElement("script"); | |
script.setAttribute("src", "//code.jquery.com/jquery-latest.min.js"); | |
script.addEventListener('load', function() { | |
var script = document.createElement("script"); | |
document.body.appendChild(script); | |
}, false); | |
document.body.appendChild(script); |
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
pragma solidity ^0.4.8; | |
// ---------------------------------------------------------------------------------------------- | |
// A collaboration between Incent and Bok :) | |
// Enjoy. (c) Incent Loyalty Pty Ltd, and Bok Consulting Pty Ltd 2017. The MIT Licence. | |
// ---------------------------------------------------------------------------------------------- | |
//config contract | |
contract TokenConfig { |
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
// Run from console (requires Litecoin full node with "txindex=1" in litecoin.conf): | |
// $ litecoin/bin/litecoin-cli getrawtransaction 82e7738a7e315f4cdd674d830119bebab4016d1497cf5cc47971bdb75d3d3906 1 | |
// | |
// Where we call method "getrawtransaction" with 2 arguments: | |
// txid: 82e7738a7e315f4cdd674d830119bebab4016d1497cf5cc47971bdb75d3d3906 | |
// 1 - to decode raw tx | |
var txJson = | |
{ | |
"hex": "0100000001679daba376c12e3f6ed7cd72e19d4af98b00d0ad29d66965ea4e39a2a7e0d66e010000006c493046022100b9211248e7741851e583eeb74deba169689f02fa0282c85493b4a018edb34800022100939501466fbb41f7afa0e80c06a0e01443372d5d5f38da0a5faa482aeb1f2e2b0121023d50a25ce5ab515c2b0920ce29bf0facd17ed7d914f7ef6859b0bd91b6c5580effffffff0207d42bb9090000001976a914ac79e1772f994c04dc4bb8dabab1db69625ce64188ac0ba61c0c000000001976a91494139449bb5a7227f238dfa9d777260cf3a7bd8c88ac00000000", |
OlderNewer