Skip to content

Instantly share code, notes, and snippets.

View 1lann's full-sized avatar

Jason Chu 1lann

View GitHub Profile
package main
import (
"fmt"
"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/platforms/i2c"
"github.com/hybridgroup/gobot/platforms/raspi"
"time"
)
package main
import (
"database/sql"
"encoding/json"
"fmt"
"os"
_ "github.com/mattn/go-sqlite3"
)
package main
import (
"fmt"
"unsafe"
)
type plank struct {
size int
cuts []int
[{
"period": "2016 4",
"statistics": [{
"tier": "BRONZE",
"values": {
"assists": 1290718,
"deaths": 881788,
"double_kills": 90478,
"kills": 893516,
"losses": 65738,

Keybase proof

I hereby claim:

  • I am 1lann on github.
  • I am 1lann (https://keybase.io/1lann) on keybase.
  • I have a public key whose fingerprint is 5503 BCF2 EC0C DB3C A0A2 8ADA 4B3F 51DB 88EC 5DBD

To claim this, I am signing this object:

-- Goroutines for ComputerCraft!
-- Made by 1lann (Jason Chu)
-- Last updated: 31st July 2015
--[[
Licensed under the MIT License:
The MIT License (MIT)
Copyright (c) 2015 1lann (Jason Chu)
@1lann
1lann / bot.go
Last active February 4, 2017 03:26
A bot that posts notifications about new comments and posts on the Riot API Developer Forums.
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"net/url"
"strconv"
"strings"
package main
import (
"fmt"
"sync"
"github.com/dgraph-io/badger/badger"
)
func main() {
local vertexStart = {"RRLR", "RR", "", "L", "LRL", "LRLRL"}
local vertexRows = {6, 8, 11, 10, 8, 6}
local allVerticies = {}
for start = 1, #vertexStart do
local startTurn = "L"
if start == 3 then
startTurn = "S"
elseif start > 2 then
-- Goroutines for ComputerCraft!
-- Made by 1lann (Jason Chu)
-- Last updated: 31st July 2015
--[[
Licensed under the MIT License:
The MIT License (MIT)
Copyright (c) 2015 1lann (Jason Chu)