Skip to content

Instantly share code, notes, and snippets.

View ducc's full-sized avatar

Joe Burnard ducc

  • UK
View GitHub Profile

I spent a while writing this out, so please give it a read and try this out. You'll thank me soon!

Explenations

Why shouldn't you be using static?

Static is not evil, however you are using it wrong. This is known as 'static abuse'. http://stackoverflow.com/questions/1766715/when-not-to-use-the-static-keyword-in-java http://stackoverflow.com/questions/7026507/why-are-static-variables-considered-evil

I would highly advise checking out the first 20 or so of the new boston's java tutorials. Some may disagree, however I believe that they are very helpful

@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
),
Mjg0MDM1MjUyNDA4NjgwNDQ4.Dvl8Dw.aKlcU6mA69pSOI_YBB8RG7nNGUE
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"
)
@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"
)
@ducc
ducc / ! FROG LANG !
Last active October 17, 2017 02:03
froglang?!?!??!
:)
#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;