Skip to content

Instantly share code, notes, and snippets.

View LemoNode's full-sized avatar

Robert Pettersson LemoNode

  • Sweden Gothenburg
View GitHub Profile
@LemoNode
LemoNode / aapl.csv
Last active December 26, 2022 13:30
Line chart with zoom
Date Open High Low Close Volume Adj Close
2008-10-14 116.26 116.40 103.14 104.08 70749800 104.08
2008-10-13 104.55 110.53 101.02 110.26 54967000 110.26
2008-10-10 85.70 100.00 85.00 96.80 79260700 96.80
2008-10-09 93.35 95.80 86.60 88.74 57763700 88.74
2008-10-08 85.91 96.33 85.68 89.79 78847900 89.79
2008-10-07 100.48 101.50 88.95 89.16 67099000 89.16
2008-10-06 91.96 98.78 87.54 98.14 75264900 98.14
2008-10-03 104.00 106.50 94.65 97.07 81942800 97.07
2008-10-02 108.01 108.79 100.00 100.10 57477300 100.10
@LemoNode
LemoNode / README.md
Last active November 21, 2018 14:10
Horizontal bar chart
@LemoNode
LemoNode / main.c
Created May 28, 2019 14:46
c linked list test
#include <stdio.h>
#include <stdlib.h>
struct Node {
int value;
struct Node* prev, * next;
struct Node* first, * last;
};
void list_push(struct Node* list, struct Node* location, int value) {
@LemoNode
LemoNode / main.c
Last active June 11, 2019 20:25
SDL Test
// compile with: gcc -std=c99 -o main main.c -lmingw32 -lSDL2main -lSDL2
#include <SDL2/SDL.h>
#include <stdio.h>
#include <stdbool.h>
typedef struct AppValues {
char* code;
int y;
int x;
} AppValues;
@LemoNode
LemoNode / index.html
Created June 21, 2019 10:01
Lerping canvas bar chart
<head>
<style>
body {
margin: auto;
max-width: 550px;
width: 100%;
font: 14px arial;
padding-top: 15px;
}
select {
@LemoNode
LemoNode / main.c
Created September 6, 2019 13:43
Noir from bitwise in c day 18 (?)
// compile with: build.bat
// @echo off
// gcc -std=c99 -o main main.c -lmingw32 -lSDL2main -lSDL2
#define _CRT_SECURE_NO_WARNINGS
#include <SDL2/SDL.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
@LemoNode
LemoNode / index.html
Created February 4, 2020 15:37
2d game platformer
<head>
<meta charset="utf-8">
<title>Hello</title>
<style>
canvas {
background: #ddd;
outline: none;
}
</style>
</head>
@LemoNode
LemoNode / main.go
Last active March 3, 2020 21:27
Standard localserver websocket
package main
import (
"flag"
"html/template"
"log"
"net/http"
"github.com/gorilla/websocket"
)
@LemoNode
LemoNode / main.go
Last active March 6, 2020 17:23
fart knockers
package main
import (
"flag"
"html/template"
"log"
"os/exec"
"net/http"
"strings"
"database/sql"
@LemoNode
LemoNode / index.html
Last active March 4, 2020 21:50
fart knockers 2
<head>
<title>Lista</title>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v5.min.js"></script>
<style>
:root {
--width: 1005px;
--top: 35px;
}