Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am dukky on github.
  • I am dukky (https://keybase.io/dukky) on keybase.
  • I have a public key ASBPFIclWrW91AkBBOVwiK72ud7TbxV-AoOv6qOce7h6ZAo

To claim this, I am signing this object:

@dukky
dukky / main.go
Created April 15, 2017 13:09
placebot
package main
import (
"fmt"
"log"
"net/http"
"time"
)
//curl 'https://josephg.com/sp/edit?x=3&y=0&c=1' -X POST -H
[V, F] = read_obj('models/D_6.obj');
woodTexture = load('wood.mat');
jagTexture = load('jaguar.mat');
inds = [3,2,1];
V = V(inds, :);
V(1, :) = -V(1,:);
var http = require('http');
var express = require('express');
var twilio = require('twilio');
var app = express();
app.post('/sms', function(req, res) {
var twilio = require('twilio');
console.log("Req : " + req.body);
var twiml = new twilio.TwimlResponse();
package main
import (
"encoding/json"
"flag"
"fmt"
"log"
"net/url"
"os"
func main() {
api := getAPI()
defer api.Close()
v := url.Values{}
v.Set("track", "brexit")
stream := api.PublicStreamFilter(v)
for {
data := <-stream.C
tweet, ok := data.(anaconda.Tweet)
private static enum Direction {
UP(0,1),
UP_RIGHT(1,1),
RIGHT(1,0),
DOWN_RIGHT(1,-1),
DOWN(0,-1),
DOWN_LEFT(-1,-1),
LEFT(-1,0),
UP_LEFT(-1,1);
@dukky
dukky / hello.go
Created December 30, 2015 01:34
kek
package main
import "fmt"
func main() {
slice := []string{"Here", "Are", "Some", "Words"}
ch := make(chan string, 4)
chint := make(chan int)
package main
import "fmt"
func main() {
slice := []string{"Here", "Are", "Some", "Words"}
ch := make(chan string, 4)
chint := make(chan int)
package main
import "fmt"
import "math/big"
func main() {
fmt.Println("Hello, world!")
a := big.NewInt(2)
b := big.NewInt(500)
a.Exp(a, b, nil)