Skip to content

Instantly share code, notes, and snippets.

View jonas747's full-sized avatar

Jonas jonas747

View GitHub Profile
@jonas747
jonas747 / gist:9171483
Created February 23, 2014 13:27
Simple E2 chip that records when you die and keeps track of how long ago you died
@name NLRHelper
@persist CurrentMinute DeathTime DeathClk
@trigger
if(clk("update")){
timer("update", 1000)
if(!owner():isAlive() && !DeathClk){
DeathClk = 1
DeathTime = realtime()
}elseif(owner():isAlive() && DeathClk){
DeathClk = 0
package main
import (
"github.com/veandco/go-sdl2/sdl"
"io/ioutil"
"log"
"sync"
"time"
)
@jonas747
jonas747 / accountloader.txt
Created October 20, 2013 20:45
the account suite.
@name AccountLoader
@inputs
@outputs
@persist Accounts:gtable
@trigger
if(first() || duped()){
fileLoad("accounts.txt")
runOnFile(1)
}elseif(fileClk()){
Accounts = gTable("accounts")
@jonas747
jonas747 / Last.fm NowPlaying
Last active December 26, 2015 02:09
Last.fm srobbler in e2
@name Last.fm Nowplaying
@inputs Screen:wirelink
@outputs Song:string Artist:string
@persist Uri:string User:string
@trigger
if(first() || duped() || inputClk()){
#Your api key from last.fm
API_KEY = ""
#your last.fm username
User = "jonasr747"
@jonas747
jonas747 / accountloader.txt
Last active December 27, 2015 22:16
My autogunshop e2
@name AccountLoader
@inputs
@outputs
@persist Accounts:gtable
@trigger
if(first() || duped()){
fileLoad("accounts.txt")
runOnFile(1)
}elseif(fileClk()){
Accounts = gTable("accounts")
package main
import (
"io/ioutil"
"strings"
"time"
// "sync/atomic"
"log"
"net/http"
// Wew lad
package main
import (
"flag"
"fmt"
"github.com/bwmarrin/discordgo"
"math"
"strings"
"sync"
package main
import (
"encoding/json"
"flag"
"fmt"
"github.com/fatih/color"
"github.com/hpcloud/tail"
"io/ioutil"
"math"
package main
import (
"crypto/rand"
"fmt"
"math/big"
"strings"
"time"
)
package main
import (
"errors"
"flag"
"fmt"
"github.com/PuerkitoBio/goquery"
"github.com/jonas747/discordgo"
"io"
"io/ioutil"