Skip to content

Instantly share code, notes, and snippets.

@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]

@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"
)
import (
"fmt
"net/http"
"bytes"
)
type statsForm struct {
ServerCount int `json:"server_count"`
}
#include <stdio.h>
#include <stdlib.h>
typedef struct node {
int value;
struct node * next;
} node_t;
node_t * node_new(void) {
node_t * new_node = NULL;
package main
import (
"flag"
"fmt"
"github.com/bwmarrin/discordgo"
"github.com/sirupsen/logrus"
"strconv"
"strings"
)
package main
import (
"fmt"
"regexp"
"strconv"
"strings"
)
func main() {
package main
import (
"bytes"
"fmt"
"regexp"
"sort"
"strconv"
"strings"
)
@ducc
ducc / mars-rover.jq
Last active July 31, 2022 01:03
mars rover written in jq
def parse_direction_name: {
name: .,
ordinal: (
if . == "N" then 0
elif . == "E" then 1
elif . == "S" then 2
elif . == "W" then 3
else error("invalid rover direction: " + .)
end
),