Skip to content

Instantly share code, notes, and snippets.

View edanuff's full-sized avatar

Ed Anuff edanuff

  • Datastax
  • San Francisco, CA
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" href="http://twitter.github.com/bootstrap/assets/css/bootstrap.css" />-->
<link rel="stylesheet" href="http://current.bootstrapcdn.com/bootstrap-v204/css/bootstrap-combined.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
<script src="../js/appSDK.js" type="text/javascript"></script>
<script type="text/javascript">
@edanuff
edanuff / gist:745898
Created December 17, 2010 23:27
Replacement UUIDType for Cassandra
import java.nio.ByteBuffer;
import java.util.UUID;
import org.apache.cassandra.db.marshal.AbstractType;
import org.apache.cassandra.db.marshal.MarshalException;
import org.apache.cassandra.utils.ByteBufferUtil;
/**
* @author edanuff
*
@edanuff
edanuff / gist:745889
Created December 17, 2010 23:17
UUIDUtils
import java.nio.ByteBuffer;
import java.util.UUID;
public class UUIDUtils {
public static UUID uuid(byte[] uuid) {
return uuid(uuid, 0);
}
public static UUID uuid(byte[] uuid, int offset) {