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 / 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 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
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 / 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 / README.md
Last active November 21, 2018 14:10
Horizontal bar chart
@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 / .block
Last active November 13, 2018 20:34
Donut chart
license: gpl-3.0
@LemoNode
LemoNode / .block
Last active November 13, 2018 18:20
Diverging horizontal bars
license: gpl-3.0
@LemoNode
LemoNode / .block
Last active November 13, 2018 18:00
Pyramid chart
license: gpl-3.0
@LemoNode
LemoNode / .block
Created October 4, 2018 20:25
Line chart
license: gpl-3.0