Skip to content

Instantly share code, notes, and snippets.

Karl-Oskar Rikås funrep

Block or report user

Report or block funrep

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@funrep
funrep / Layer.java
Created Jun 20, 2017
Neural net - not working
View Layer.java
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));
}
View lab1.clj
(ns edaa40.lab1)
(use 'clojure.set)
;;
;; testing
;;
(defn test?
[msg v1 v2]
@funrep
funrep / ECS.cs
Created Dec 14, 2015
Barebones Entity Component System in C#
View ECS.cs
using System.Collections.Generic;
using System.Linq;
namespace ProjectCC
{
class World
{
private List<Entity> Entities;
private List<System> Systems;
View linuxmusisstuff.md
  • 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

View index.html
<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 Aug 29, 2015
Datateknik skolprojekt, arduino spelkontroll
View driver.py
# 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
View esports.md

Esport stats

Tournaments

  • FFA Saturday Contest

    Game: Warxon (Alpha release)

    Qualification: Sign up with approval

    Mode: Free-for-all

@funrep
funrep / 20-thinkpad.conf
Created Sep 27, 2014
Emulate scroll wheel with trackpoint
View 20-thinkpad.conf
Section "InputClass"
Identifier "Trackpoint Wheel Emulation"
MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device|Composite TouchPad / TrackPoint"
MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection
@funrep
funrep / .xinitrc
Created Sep 27, 2014
My dwm statusbar
View .xinitrc
# statusbar
while true; do
xsetroot -name "$( statusbar )"
sleep 1m # Update time every minute
done &
# settings
xset -b
xrdb -merge ~/.XResources
xsetroot -solid "#002b36"
@funrep
funrep / .emacs.el
Created Jun 19, 2014
My emacs config, nothing fancy...
View .emacs.el
;; Visual stuff
(menu-bar-mode 0)
(tool-bar-mode 0)
(scroll-bar-mode 0)
(setq inhibit-startup-message t)
(global-linum-mode t)
(setq linum-format " %d ")
(set-window-fringes nil 0 0)
(set-fringe-mode 0)
You can’t perform that action at this time.