Skip to content

Instantly share code, notes, and snippets.

View briandowns's full-sized avatar

Brian Downs briandowns

  • Phoenix, AZ
View GitHub Profile
// https://github.com/briandowns/libspinner
// cc -o whatever -I/Users/bdowns/go/src/github.com/briandowns/libspinner
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <unistd.h>

Ulfius Installation for MacOS

Dependencies

brew install libmicrohttpd jansson gnutls 

cmake

Make sure cmake is installed if if it's not, install it.

brew install cmake
#include <dirent.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/param.h>
#include <sys/jail.h>
#include <sys/uio.h>
#include <sys/types.h>
package main
import (
"fmt"
"log"
"os"
"os/exec"
"syscall"
)
package main
import (
"flag"
"fmt"
"log"
"net/http"
"os"
"os/signal"

Keybase proof

I hereby claim:

  • I am briandowns on github.
  • I am briandowns (https://keybase.io/briandowns) on keybase.
  • I have a public key ASBk9oZ1ksnZVABtbwfUxfmUc6ip-2HiC5z9t12UkYmUfwo

To claim this, I am signing this object:

@briandowns
briandowns / word_count.go
Last active August 29, 2015 14:08
Word Count
package main
import (
"fmt"
"strings"
)
func main() {
str := "olly olly in come free"
data := make(map[string]int)
@briandowns
briandowns / leap_year.go
Created October 27, 2014 16:21
Leap Year
package main
import (
"log"
)
func isLeapYear(year int) bool {
switch {
case year % 4 != 0: return false
case year % 100 != 0: return true
@briandowns
briandowns / rna_transcription
Created October 24, 2014 18:03
RNA_Transcription
package main
import (
"log"
"bytes"
"errors"
)
var compliment = map[string]string{"G": "C", "C": "G", "T": "A", "A": "U"}
@briandowns
briandowns / go_hamming_distance
Created October 22, 2014 02:07
Go Hamming Distance
package main
import (
"errors"
"log"
)
func getDistance(s1, s2 string) (int, error) {
if len(s1) != len(s2) {
return 0, errors.New("ERROR: Strings are of different lengths")