Skip to content

Instantly share code, notes, and snippets.

View LetterGenerator.java
package com.danielvaughan.wordgame;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
* Created by danielvaughan on 11/09/2014.
*/
public class LetterGenerator {
View RomanTest.java
package com.example.roman;
import com.example.roman.Roman;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Created by danielvaughan on 09/10/2014.
View Roman.java
package com.example.roman;
/**
* Created by danielvaughan on 09/10/2014.
*/
public class Roman {
public String fromArabic(int i) {
if(i == 0)
throw new IllegalArgumentException("Zero not allowed");
View src_main_java_camdug_MQExtensions.java
package camdug;
import com.google.gson.Gson;
import org.zeromq.ZMQ;
public class MQExtensions {
public static void sendT(ZMQ.Socket socket, Object src) {
Gson gson = new Gson();
String json = gson.toJson(src);
View strings_HasAllUniqueCharacters.java
package com.danielvaughan.ctci.strings;
/**
* Created with IntelliJ IDEA.
* User: dvaughan
* Date: 13/07/2013
* Time: 13:48
* To change this template use File | Settings | File Templates.
*/
public class HasAllUniqueCharacters {
@danielvaughan
danielvaughan / main.go
Created Apr 18, 2017
Our go message forwarder
View main.go
package main
import (
"net/http"
"fmt"
"strings"
"time"
"io"
)
View gist:311a22079bfd74bb8dc25d75cff15780
//INFRASTRUCTURE
CREATE (ingest_core:INFRASTRUCTURE {name:"Ingest Core"})
CREATE (ingest_broker_api:INFRASTRUCTURE {name:"Ingest Broker API"})
CREATE (ingest_broker:INFRASTRUCTURE {name:"Ingest Broker"})
CREATE (ingest_exporter:INFRASTRUCTURE {name:"Ingest Exporter"})
CREATE (ingest_archiver:INFRASTRUCTURE {name:"Ingest Archiver"})
CREATE (ingest_accessioner:INFRASTRUCTURE {name:"Ingest Accessioner"})
CREATE (ingest_validator:INFRASTRUCTURE {name:"Ingest Validator"})
CREATE (ingest_ui:INFRASTRUCTURE {name:"Ingest UI"})
CREATE (ingest_ccc:INFRASTRUCTURE {name:"Cross-cutting Concerns"})
View keybase.md

Keybase proof

I hereby claim:

  • I am danielvaughan on github.
  • I am danielvaughan (https://keybase.io/danielvaughan) on keybase.
  • I have a public key ASAYN3G83ZMkoOM21CsFSh2CsIDJVyIdIyAY2IivFLJLbAo

To claim this, I am signing this object:

View main.go
package main
import (
"compress/gzip"
"encoding/json"
"fmt"
"log"
"os"
)
View install-minishift.sh
#!/usr/bin/env bash
brew cask install minishift
brew install hyperkit
brew install docker-machine-driver-hyperkit
sudo chown root:wheel /usr/local/bin/docker-machine-driver-hyperkit && sudo chmod u+s /usr/local/bin/docker-machine-driver-hyperkit