Skip to content

Instantly share code, notes, and snippets.

View DylanMeeus's full-sized avatar
🐧
Working from home

Dylan Meeus DylanMeeus

🐧
Working from home
View GitHub Profile
@DylanMeeus
DylanMeeus / main.go
Created May 4, 2021 19:54
Snake for gopherjs
package main
import (
"fmt"
"math/rand"
"time"
"github.com/gopherjs/gopherjs/js"
)
package main
import (
"fmt"
synth "github.com/DylanMeeus/GoAudio/synthesizer"
"github.com/DylanMeeus/GoAudio/wave"
)
const (
sr = 44100.
This file has been truncated, but you can view the full file.
diff --git a/.editorconfig b/.editorconfig
index bf9d722a..b9faf287 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,2 +1,3 @@
[*.{kt, kts}]
-disabled_rules = import-ordering
\ No newline at end of file
+disabled_rules = import-ordering
+insert_final_newline = true
@DylanMeeus
DylanMeeus / main.go
Created September 13, 2020 14:27
frere jacques
package main
import (
"fmt"
synth "github.com/DylanMeeus/GoAudio/synthesizer"
"github.com/DylanMeeus/GoAudio/wave"
"math"
"strconv"
)
package main
import (
"fmt"
synth "github.com/DylanMeeus/GoAudio/synthesizer"
"github.com/DylanMeeus/GoAudio/wave"
"math"
)
const (
@DylanMeeus
DylanMeeus / main.go
Created September 5, 2020 20:26
Create a tune with GoAudio
package main
import (
"fmt"
synth "github.com/DylanMeeus/GoAudio/synthesizer"
wave "github.com/DylanMeeus/GoAudio/wave"
)
func main() {
fmt.Println("generating sound")
" Plugins
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
// template for altering sounfiles
#include <stdio.h>
#include <stdlib.h>
#include <portsf.h>
#include <math.h>
#define NFRAMES 1
enum {ARG_PROGNAME, ARG_INFILE, ARG_OUTFILE, ARG_DESIREDPAN, ARG_NARGS};
conky.config = {
background = true,
update_interval = 1.5,
cpu_avg_samples = 2,
net_avg_samples = 2,
out_to_console = false,
override_utf8_locale = true,
double_buffer = true,
no_buffers = true,
text_buffer_size = 32768,
package utilities
import (
"database/sql"
"encoding/json"
log "github.com/sirupsen/logrus"
"net/http"
"reflect"
"time"
)