Skip to content

Instantly share code, notes, and snippets.

@miyoyo
miyoyo / dedupe.go
Last active July 8, 2020 18:03
Flutter doc explorer bot (CC-By) v3
package main
import (
"fmt"
"github.com/bwmarrin/discordgo"
)
var messageCache = map[string][]*discordgo.Message{}
var metaChannel = "421444762956988418"
class MyWidget extends StatefulWidget {
@override
LoginState createState() {
return MyState();
}
}
class MyState extends State<Login> {
int value = 0;
class Number {
int number;
Number(this.number);
}
void foo(Number n){
n = Number(2); // Here you erase your reference and refer to a new Number
}
void bar(Number n){
@miyoyo
miyoyo / main.go
Last active March 1, 2020 16:56
Flutter doc explorer bot (CC-By) (Updated 2019/05/27: Updated domains)
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
"os/signal"
"regexp"
@miyoyo
miyoyo / main.go
Created June 29, 2018 20:33
Flutter doc explorer bot
package main
import (
"bytes"
"encoding/json"
"fmt"
"net/http"
"os"
"os/signal"
"regexp"