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
),
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 / ! 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;

Keybase proof

I hereby claim:

  • I am ducc 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:

// we have a school which has 10 teachers
school
teachers = [10]
// each lesson requires a teacher
lesson
teacher
// when the lesson starts get an available teacher
on start
import (
"fmt
"net/http"
"bytes"
)
type statsForm struct {
ServerCount int `json:"server_count"`
}