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 my_pow(x: Float, n: Int): Float = { | |
if (n == 0) { | |
1 | |
} else { | |
/ ** | |
* If you ommit this if it won´'t finishe | |
*/ | |
if (n == 2) { | |
x * x |
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
#!/bin/sh | |
# | |
# Fix common typo in Righster (note, not 't') automatically | |
git ls-tree -r --name-only HEAD | xargs perl -p -i -e 's/ighster/ightster/g' | |
git ls-tree -r --name-only HEAD | xargs perl -p -i -e 's/IGHSTER/IGHTSTER/g' |
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
{ | |
"items" : [ | |
{ | |
"source" : { | |
"uri" : "s3://path/to/file.mp4", | |
"metadata" : {} | |
}, | |
"destination" : { | |
"uri" : "youtube://owner/channel-id", | |
"metadata" : { |
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 com.rightster | |
import akka.actor.{Props, Actor, ActorSystem} | |
/** | |
* The output of this code is | |
* | |
* Message 1 sent | |
* Message 2 sent | |
* Sender 1 sends you a message |
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 com.rightster.ingest.unit.route | |
import org.apache.camel.builder.RouteBuilder | |
import org.apache.camel.test.junit4.CamelTestSupport | |
import org.junit.Test | |
class MultipleThreadsTest extends CamelTestSupport { | |
val messages = 40 |