Skip to content

Instantly share code, notes, and snippets.

💻 🏃

Jackson Davis jcdavis

💻 🏃
View GitHub Profile
View gist:3c943a206416c383933a11a3c308e6de
production@ class A {
case class B(a: Int)
defined class A
production@ kryo.writeObject(output, (new A).B(42))
38:44 DEBUG: [kryo] Write: B(42)
38:44 TRACE: [kryo] Optimize ints: true
38:44 TRACE: [kryo] Field a: int
38:44 TRACE: [kryo.FieldSerializerConfig] setIgnoreSyntheticFields: false
38:44 TRACE: [kryo] Field a: int
View ThriftClassFinder.scala
import com.twitter.scalding.Job
import com.twitter.scalding.typed.{CoGroupable, Grouped, TypedPipe, UnsortedGrouped}
import scala.reflect.runtime.universe
object ThriftClassFinder {
private val structures: Set[Class[_]] = Set(
jcdavis / unicode-remover.c
Created Dec 17, 2011
Remove the unicodes
View unicode-remover.c
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char** argv) {
char buffer[4096];
FILE* inf = fopen(argv[1], "r");
FILE* outf = fopen(argv[2], "w");
while(fgets(buffer ,4096, inf)) {