Skip to content

Instantly share code, notes, and snippets.

View jonas747's full-sized avatar

Jonas jonas747

View GitHub Profile
package main
import (
"bufio"
"flag"
"fmt"
"github.com/bwmarrin/discordgo"
"github.com/jonas747/dca"
"log"
"os"
package main
import (
"flag"
"fmt"
"github.com/bwmarrin/discordgo"
"github.com/hraban/opus"
"github.com/jonas747/opusutil"
llog "log"
"os"
package main
import (
"errors"
"flag"
"fmt"
"github.com/PuerkitoBio/goquery"
"github.com/jonas747/discordgo"
"io"
"io/ioutil"
package main
import (
"crypto/rand"
"fmt"
"math/big"
"strings"
"time"
)
package main
import (
"encoding/json"
"flag"
"fmt"
"github.com/fatih/color"
"github.com/hpcloud/tail"
"io/ioutil"
"math"
// Wew lad
package main
import (
"flag"
"fmt"
"github.com/bwmarrin/discordgo"
"math"
"strings"
"sync"
package main
import (
"io/ioutil"
"strings"
"time"
// "sync/atomic"
"log"
"net/http"
package main
import (
"github.com/veandco/go-sdl2/sdl"
"io/ioutil"
"log"
"sync"
"time"
)
@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
@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"