Integrate https://github.com/fukata/golang-stats-api-handler with https://github.com/errplane/errplane-go/blob/master/api.go#L343 Runtime Statistics
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 programs | |
import ( | |
"encoding/base64" | |
"html/template" | |
"net/http" | |
"time" | |
"appengine" | |
"appengine/log" |
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] Loading project definition from /home/fmilo/example-scala-build/project | |
[info] Set current project to amx-livescore (in build file:/home/fmilo/example-scala-build/) | |
[info] Updating {file:/home/fmilo/example-scala-build/}default-eb146d... | |
[info] Resolving org.eclipse.jetty#jetty-server;7.6.8.v20121106 ... | |
[error] Server access Error: Connection timed out url=https://repository.cloudera.com/artifactory/cloudera-repos/org/eclipse/jetty/jetty-server/7.6.8.v20121106/jetty-server-7.6.8.v20121106.pom | |
[info] Resolving org.eclipse.jetty#jetty-project;7.6.8.v20121106 ... | |
[error] Server access Error: Connection timed out url=https://repository.cloudera.com/artifactory/cloudera-repos/org/eclipse/jetty/jetty-project/7.6.8.v20121106/jetty-project-7.6.8.v20121106.pom | |
[info] Resolving org.eclipse.jetty#jetty-parent;20 ... | |
[error] Server access Error: Connection timed out url=https://repository.cloudera.com/artifactory/cloudera-repos/org/eclipse/jetty/jetty-parent/20/jetty-parent-20.pom | |
[error] Server access Error: Con |
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] Loading project definition from /home/fmilo/example-scala-build/project | |
[info] Set current project to amx-livescore (in build file:/home/fmilo/example-scala-build/) | |
[info] Updating {file:/home/fmilo/example-scala-build/}default-eb146d... | |
[info] Resolving org.eclipse.jetty#jetty-server;7.6.8.v20121106 ... | |
[error] Server access Error: Connection timed out url=https://repository.cloudera.com/artifactory/cloudera-repos/org/eclipse/jetty/jetty-server/7.6.8.v20121106/jetty-server-7.6.8.v20121106.pom | |
[info] Resolving org.eclipse.jetty#jetty-project;7.6.8.v20121106 ... | |
[error] Server access Error: Connection timed out url=https://repository.cloudera.com/artifactory/cloudera-repos/org/eclipse/jetty/jetty-project/7.6.8.v20121106/jetty-project-7.6.8.v20121106.pom | |
[info] Resolving org.eclipse.jetty#jetty-parent;20 ... | |
[error] Server access Error: Connection timed out url=https://repository.cloudera.com/artifactory/cloudera-repos/org/eclipse/jetty/jetty-parent/20/jetty-parent-20.pom | |
[error] Server access Error: Conn |
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 au.com.bytecode.opencsv.CSVReader | |
import java.io.FileReader | |
import scala.collection.JavaConversions._ | |
import java.util.UUID | |
import java.text.SimpleDateFormat | |
val format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss") | |
case class Stock(data: Array[String]) { |
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 | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Set the colours you can use | |
black='\033[0;30m' | |
white='\033[0;37m' | |
red='\033[0;31m' | |
green='\033[0;32m' |
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" | |
"math/rand" | |
"runtime" | |
"sync" | |
"time" | |
) |
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 ( | |
"log" | |
"net" | |
"strings" | |
) | |
func trace(fmt string, args ...interface{}) { | |
log.Printf(fmt, args...) |
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 | |
set -e | |
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) || : | |
source /home/ubuntu/.gvm/scripts/gvm | |
gvm install go1.2.2 --with-build-tools --binary | |
gvm use go1.2.2 |
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
require 'benchmark' | |
require 'set' | |
# an attempted to remove the .freeze everywhere | |
class String | |
alias :f :freeze | |
end | |
n = 20000000 |
OlderNewer