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 | |
# Set up transparent bridge eth1->eth0 | |
# - eth0 (built-in): attach to TT DSL router | |
# - eth1 (UBS) : attach to internal switch | |
# | |
# This should be executed at system startup. | |
# On Raspberry PI debian add this line to: | |
# /etc/rc.local: | |
# bash /path_to_this_file |
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.tttv.util | |
import scala.collection.mutable | |
/** | |
* NoBullshitJsonParser is a fast-as-you-can no-OO-bloatware-nonsense JSON | |
* parser for strings with one while loop in less than 200 lines of codez. | |
* | |
* It's totally non-compliant with strict JSON and is a work in progress. | |
* |
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
Southpaw:~ philip$ export GOPATH="/Users/philip/scratch/gobook"; export PATH=${GOPATH}/bin:${PATH} | |
Southpaw:~ philip$ mkdir -p $GOPATH/src/hello | |
Southpaw:~ philip$ vi $GOPATH/src/hello/hello.go | |
// source: | |
package main | |
import ( | |
"fmt" |
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 org.apache.spark.SparkContext | |
import org.apache.spark.rdd.RDD | |
/** | |
* aggregate_by_key_example demonstrates how to use aggregateByKey to sum up | |
* values by key and also keep the values themselves. | |
* | |
* Given the input: | |
* | |
* Seq(("001", 1), ("001", 2), ("001", 3), ("002", 0), ("002", 7)) |
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" | |
"log" | |
"net/http" | |
"os" | |
"strings" | |
"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
Bad commit? 66cce477d016979cde3203d5f7125710cffdf4a4 | |
NOTE: formatted the numbers in the table to make more readable | |
-------------- | |
Target competition: Math_DoubleSqrtAvx | |
// ***** Competition: Start ***** | |
// Found benchmarks: | |
// Math_DoubleSqrtAvx_Sqrt13_Throughput_X64_RyuJit_NET-Current -w=5 -t=10 |
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 | |
# A hack to make HDInsight Emulator work with cygwin bash. | |
# Basically, we don't use bash things which come with the installation. | |
# Instead, we call out to the Windows cmd scripts to invoke hadoop stuff. | |
cmd /c "hadoop" $* |
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
// A hacky script to work around that piece of crap WWDC14 page | |
// which does not have links to individual videos, not allows | |
// to have more than one video marked as active at the same time. | |
// | |
// Basically I went through the list of videos, picked those | |
// I think are relevant, make then "active", and then zap all | |
// the others. | |
// | |
// Simply copy/paste this into dev tools console. | |
// |
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
using Foo.Bar | |
public class Blah | |
{ | |
} |
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
internal static class FooBar | |
{ | |
private static void DoStuff() | |
{ | |
} | |
private static class SelfTests | |
{ | |
[TestFixture] |