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.io.*; | |
import java.net.*; | |
import java.util.concurrent.Semaphore; | |
/** | |
* Unit test for detecting connection drops while transmitting | |
* packets. | |
* | |
* In this test, the server closes a connection while the client | |
* is transmitting data. The expected behavior is for the client |
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 code | |
import org.specs._ | |
import net.liftweb.common._ | |
import net.liftweb.record._ | |
// Please note that program compiles without me providing a save method! | |
class User extends MegaProtoUser[User] with Record[User] { | |
def meta = User |
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
[info] == lift-webkit / copy-resources == | |
java.util.EmptyStackException | |
at java.util.Stack.peek(Stack.java:85) | |
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.getCurrentScope(JavaScriptCompressor.java:559) | |
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.printSymbolTree(JavaScriptCompressor.java:1097) | |
at com.yahoo.platform.yui.compressor.JavaScriptCompressor.compress(JavaScriptCompressor.java:553) | |
at net.liftweb.sbt.YuiCompressor$$anonfun$net$liftweb$sbt$YuiCompressor$$compressJs$2.apply(YuiCompressor.scala:130) | |
at net.liftweb.sbt.YuiCompressor$$anonfun$net$liftweb$sbt$YuiCompressor$$compressJs$2.apply(YuiCompressor.scala:129) | |
at sbt.Control$.trapUnit(Control.scala:19) | |
at net.liftweb.sbt.YuiCompressor$class.net$liftweb$sbt$YuiCompressor$$compressJs(YuiCompressor.scala:129) |
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
root@cc8ad15fa0f9:/tmp/jobs# cat ./test.nomad | |
job "test" | |
{ | |
datacenters = ["dc1"] | |
type = "batch" | |
task "diamondbcapacitycollector" | |
{ | |
driver = "exec" |
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 main | |
import ( | |
"fmt" | |
"io" | |
"io/ioutil" | |
"os" | |
"os/exec" | |
"sync" | |
"testing" |
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 bash | |
curl -sSL https://aceraschool21.wpengine.com/summer-camps-2021/ \ | |
| grep 'var localObj =' \ | |
| sed 's|.*var localObj = ||g' \ | |
| sed "s|'|\"|g" \ | |
| sed 's|";|"|g' \ | |
| sed 's| - Week | Week |g' \ | |
| sed 's| Weeks 2 & 3| Week 2.3 |g' \ | |
| jq -r . \ |