Skip to content

Instantly share code, notes, and snippets.

View funrep's full-sized avatar

Karl-Oskar Rikås funrep

View GitHub Profile
// mål att parsa basic datalog:
// fact(A, B).
// rule(x, y) :- fact(A, y).
// en feedback på readme:en är att flytta installation lite längre upp för
// att det känns som ganska standard istället för längst ner i de flesta paket.
import { Helpers } from '@honungsburk/kombo';
// import { Done, Loop, spaces, Trailing, Unit } from '@honungsburk/kombo/dist/cjs/Advanced';
// import { loop, oneOf, oneOfMany, Parser, run, sequence, Step, succeed, symbol, variable } from '@honungsburk/kombo/dist/cjs/Simple';
module QueryTriple where
import Control.Monad
import Data.Maybe
import Data.List
import Data.Char
-- based on https://fkettelhoit.github.io/bottom-up-datalog-js/docs/dl.html
type Ent = String
-- Does anyone understand what this code does?
-- What is a and b?
-- We add two amounts
-- We know that an "amount" is an Int
type TransferId1 = Int
type Amount1 = Int
add1 :: Amount1 -> Amount1 -> Amount1
@funrep
funrep / gmail.py
Last active September 9, 2020 08:53
from __future__ import print_function
import pickle
import os.path
from googleapiclient.discovery import build
from google_auth_oauthlib.flow import InstalledAppFlow
from google.auth.transport.requests import Request
from email.mime.text import MIMEText
import base64
# Script is altered version of the one provided in the official documentation.
@funrep
funrep / Layer.java
Created June 20, 2017 17:38
Neural net - not working
import java.util.ArrayList;
public class Layer {
private ArrayList<Neuron> nodes;
public Layer(int nodeCount, int inputCount) {
nodes = new ArrayList<>();
for (int i = 0; i < nodeCount; i++) {
nodes.add(new Neuron(inputCount));
}
@funrep
funrep / ECS.cs
Created December 14, 2015 15:02
Barebones Entity Component System in C#
using System.Collections.Generic;
using System.Linq;
namespace ProjectCC
{
class World
{
private List<Entity> Entities;
private List<System> Systems;
  • good repo: kxstudio

  • good DAWs: Ardour, renoise, bitwig, energyXT, LMMS

  • fun DAWs: LMMS, milkytracker, sunvox

  • zynaddsubfx, has little bit of everything, very versatile

  • helm, nice subtractive 2-oscillator synth with really slick interface

  • oxefm, 8-operator fm synth

  • calf plugins, great plugin set, especially the reverb

<meta charset="UTF-8">
<html>
<head>
<title>vitracker</title>
<script type="text/javascript" charset="utf-8" src="xm.js"></script>
</head>
<body>
<p>Hello, world</p>
</body>
</html>
@funrep
funrep / driver.py
Last active August 29, 2015 14:16
Datateknik skolprojekt, arduino spelkontroll
# funkar bara på linux för tillfället
# måste byta ut xdotool till
# https://github.com/SavinaRoja/PyUserInput
import serial
import os
from multiprocessing import Process
# måste bytas ut mot rätt device
# använd skriv så här i kommando prompten

Esport stats

Tournaments

  • FFA Saturday Contest

    Game: Warxon (Alpha release)

    Qualification: Sign up with approval

Mode: Free-for-all