Skip to content

Instantly share code, notes, and snippets.

@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
),
package main
import (
"bytes"
"fmt"
"regexp"
"sort"
"strconv"
"strings"
)
package main
import (
"fmt"
"regexp"
"strconv"
"strings"
)
func main() {
package main
import (
"flag"
"fmt"
"github.com/bwmarrin/discordgo"
"github.com/sirupsen/logrus"
"strconv"
"strings"
)
#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;
import (
"fmt
"net/http"
"bytes"
)
type statsForm struct {
ServerCount int `json:"server_count"`
}
@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"
)
@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 -->