Skip to content

Instantly share code, notes, and snippets.

💭
🏃

Jackson Davis jcdavis

💭
🏃
Block or report user

Report or block jcdavis

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
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(
classOf[TypedPipe[_]],
classOf[Grouped[_,_]],
classOf[UnsortedGrouped[_,_]],
@jcdavis
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)) {
You can’t perform that action at this time.