Skip to content

Instantly share code, notes, and snippets.

View ducc's full-sized avatar

Joe Burnard ducc

  • UK
View GitHub Profile
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Dab {
private enum State {
DO_YOU_LIKE_TO_DAB, HOW_OFTEN_DO_YOU_DAB, END
}
public static void main(String[] args) {
try (BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))) {
@ducc
ducc / discrimfarmer.go
Last active January 9, 2018 05:19
Changes your discord username to get a sweet mf discrim cunt
package main
import (
"github.com/bwmarrin/discordgo"
"flag"
log "github.com/Sirupsen/logrus"
"fmt"
"time"
"errors"
)
i = 0
i.something = 51
i.doIt = {
// print hello world
}
i.doIt.myProperty = 913
@ducc
ducc / 1README.md
Last active March 15, 2019 15:49
ducclang with js syntax formatting

ducclang is a revolutionary lang!!!!!!

its based on arrays embedded in arrays

simple program

[
    "hello world"
]

this program is just a string that says hello world. it is now at location [0]

Keybase proof

I hereby claim:

  • I am sponges on github.
  • I am sponges (https://keybase.io/sponges) on keybase.
  • I have a public key whose fingerprint is 61CA 9260 0F91 EA95 A4B4 DA4E BBD7 7FAD ABE2 B9EA

To claim this, I am signing this object:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<!-- this section is details about your project -->
<groupId>me.monitor</groupId>
<artifactId>monitoringbotv04</artifactId>
<version>1.0</version> <!-- this is the version of your project, can be set to anything -->
package main
import (
"reflect"
)
type MyEnum struct {
SOME_VALUE string
SOME_OTHER_THING string
}
@ducc
ducc / CommandBus.java
Last active March 5, 2016 20:11
Consumer based command system
import java.util.*;
import java.util.concurrent.locks.ReadWriteLock;
import java.util.concurrent.locks.ReentrantReadWriteLock;
import java.util.function.Consumer;
public class CommandBus {
private final Map<String, List<Consumer<String[]>>> handlers = new HashMap<>();
private final ReadWriteLock lock = new ReentrantReadWriteLock();
public abstract class CommandExecutor {
private final String command, permission; // you can group variables of the same type together like this
private final boolean console, player;
private final int length;
/*
Instantiating the variables inside of the constructor instead of using a setter. If you do not want all of these
to be set (e.g. if some are optional) you can have multiple constructors.
*/