This file contains hidden or 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 org.acz.hive.serde; | |
import org.apache.hadoop.hive.serde2.typeinfo.ListTypeInfo; | |
import org.apache.hadoop.hive.serde2.typeinfo.MapTypeInfo; | |
import org.apache.hadoop.hive.serde2.typeinfo.PrimitiveTypeInfo; | |
import org.apache.hadoop.hive.serde2.typeinfo.StructTypeInfo; | |
import org.apache.hadoop.hive.serde2.typeinfo.TypeInfo; | |
import org.apache.hadoop.hive.serde2.typeinfo.UnionTypeInfo; | |
import java.util.List; |
This file contains hidden or 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 jdbi.helpers; | |
import org.skife.jdbi.v2.Handle; | |
import org.skife.jdbi.v2.tweak.HandleCallback; | |
public abstract class VoidHandleCallback | |
implements HandleCallback<Void> | |
{ | |
@Override | |
public final Void withHandle(Handle handle) |
This file contains hidden or 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 | |
osascript -e 'tell application "Terminal" to activate' |
This file contains hidden or 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.proofpoint.dphillips.bootcamp; | |
import com.google.common.collect.ImmutableListMultimap; | |
import com.google.common.collect.ListMultimap; | |
import com.proofpoint.http.client.HttpClient; | |
import com.proofpoint.http.client.Request; | |
import com.proofpoint.http.client.RequestStats; | |
import com.proofpoint.http.client.Response; | |
import com.proofpoint.http.client.ResponseHandler; |
This file contains hidden or 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 javatest; | |
public class CovariantReturn | |
{ | |
private static class NumberNode | |
{ | |
public Number get() | |
{ | |
return 13; | |
} |
This file contains hidden or 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.proofpoint.anomalytics.mailfetcher; | |
import javax.ws.rs.WebApplicationException; | |
import javax.ws.rs.core.Response; | |
import static javax.ws.rs.core.Response.Status; | |
/** | |
* Abstract parameter class for Jersey parameters | |
* |
This file contains hidden or 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 javatest; | |
import com.amazonaws.auth.BasicAWSCredentials; | |
import com.amazonaws.services.identitymanagement.AmazonIdentityManagementClient; | |
import com.amazonaws.services.identitymanagement.model.AccessKey; | |
import com.amazonaws.services.identitymanagement.model.CreateAccessKeyRequest; | |
import com.amazonaws.services.identitymanagement.model.CreateUserRequest; | |
import com.amazonaws.services.identitymanagement.model.DeleteAccessKeyRequest; | |
import com.amazonaws.services.identitymanagement.model.DeleteUserPolicyRequest; | |
import com.amazonaws.services.identitymanagement.model.DeleteUserRequest; |
This file contains hidden or 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
all: ttysize | |
clean: | |
rm -f ttysize | |
ttysize: ttysize.c | |
gcc -Wall -Werror -o $@ $< |
This file contains hidden or 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.codehaus.jackson.map.BeanDescription; | |
import org.codehaus.jackson.map.BeanProperty; | |
import org.codehaus.jackson.map.DeserializationConfig; | |
import org.codehaus.jackson.map.DeserializationContext; | |
import org.codehaus.jackson.map.JsonMappingException; | |
import org.codehaus.jackson.map.KeyDeserializer; | |
import org.codehaus.jackson.map.KeyDeserializers; | |
import org.codehaus.jackson.type.JavaType; | |
import java.io.IOException; |
This file contains hidden or 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
private static String readEmlx(InputStream in) throws IOException | |
{ | |
BufferedReader reader = new BufferedReader(new InputStreamReader(in, Charsets.UTF_8)); | |
int size = Integer.valueOf(reader.readLine().trim()); | |
if (size <= 0) { | |
throw new IllegalStateException("bad size: " + size); | |
} | |
char[] buf = new char[size]; | |
int n = reader.read(buf, 0, size); | |
if (n < size) { |