Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am bobbydeveaux on github.
  • I am bobbydeveaux (https://keybase.io/bobbydeveaux) on keybase.
  • I have a public key whose fingerprint is 610E 4234 1FEE A99F C7E2 6973 D094 E59E DA11 F8F6

To claim this, I am signing this object:

@bobbydeveaux
bobbydeveaux / main.go
Created October 3, 2017 08:38
try-cb-golang example
package main
import (
"encoding/json"
"errors"
"fmt"
"github.com/couchbase/gocb"
"github.com/couchbase/gocb/cbft"
"github.com/dgrijalva/jwt-go"
"github.com/gorilla/mux"

Keybase proof

I hereby claim:

  • I am bobbydeveaux on github.
  • I am bobbydeveaux (https://keybase.io/bobbydeveaux) on keybase.
  • I have a public key ASAtWL4fa6wn2it-eIgOpEbDf5Dp_xFN8DcWNoUPk_vw8wo

To claim this, I am signing this object:

package main
import (
"fmt"
)
type IDoor interface {
OpenDoor() string
CloseDoor() string
}
@bobbydeveaux
bobbydeveaux / process.php
Created February 3, 2017 23:00
Process Word Docs
<?php
function parseWord($wordDoc)
{
$fileHandle = fopen($wordDoc, "r");
$line = @fread($fileHandle, filesize($wordDoc));
$lines = explode(chr(0x0D),$line);
$outtext = '';
foreach($lines as $line) {
@bobbydeveaux
bobbydeveaux / website.html
Created March 24, 2014 13:02
A simple website
<html>
<head>
<title>This is my title</title>
<style type="text/css">
ul {
background-color: #ff6600;
}
ul li{
list-style-type: none;
display: inline-block;
@bobbydeveaux
bobbydeveaux / robots.txt
Created March 21, 2014 21:22
Robots.txt
# This rule means it applies to all user-agents
User-agent: *
# Disallow go.php as this is a redirection
Disallow: /go.php$
@bobbydeveaux
bobbydeveaux / go.php
Last active November 23, 2022 17:18
Redirector
<?php
/**
* File to handle redirection and cloak links.
*
* @version 0.0.1
* @author Bobby DeVeaux (me@bobbyjason.co.uk)
**/
class Redirector
{
@bobbydeveaux
bobbydeveaux / Bubble.java
Created March 14, 2014 11:43
Java Bubble Sort
public class Bubble
{
public static void main(String[] args)
{
for (int c = 0; c < 1000000; c++) {
bubbleSort();
}
}
public static void bubbleSort()
@bobbydeveaux
bobbydeveaux / bubble.go
Created March 13, 2014 21:33
Go Bubble Sort
package main
// import "fmt"
func main() {
for c := 0; c < 1000000; c++ {
bubble();
}
}