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 xmlrpclib | |
from pprint import pprint | |
""" | |
A simple workout for the SoftLayer API as exposed via XML-RPC | |
""" | |
# TODO: Make this object-based instead of dictionary-based | |
# TODO: Read authentication information from a secure location | |
# TODO: Demonstrate how to call a method that requires a parameter | |
# Get this information from https://manage.softlayer.com/Administrative/apiKeychain |
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
type sample = { | |
x : float; | |
y : float | |
} | |
type model = { | |
theta : float; | |
beta : float | |
} |
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/bash | |
pid=$1 | |
nsamples=$2 | |
sleeptime=$3 | |
for x in $(seq 1 $nsamples) | |
do | |
jstack $pid | |
sleep $sleeptime | |
done | \ |
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 com.twitter.bijection.avro.{GenericAvroCodec, GenericAvroCodecs} | |
import com.twitter.bijection.Injection | |
import com.twitter.chill._ | |
import org.apache.avro.generic.{GenericRecord, GenericRecordBuilder} | |
import org.apache.avro.SchemaBuilder | |
import scala.util.{Failure, Success} | |
object HelloKryo { | |
def main(args: Array[String]) { | |
// Build a schema |
NewerOlder