Skip to content

Instantly share code, notes, and snippets.

@Lerc
Lerc / index.html
Last active April 26, 2024 06:06 — forked from kahole/index.html
*scratch*.js
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>*scratch*</title>
<style>
body {
font-family: Hack, Menlo, Monaco, 'Droid Sans Mono', 'Courier New', monospace;
white-space: pre;
{
"last_node_id": 55,
"last_link_id": 110,
"nodes": [
{
"id": 38,
"type": "ControlNetApplyAdvanced",
"pos": [
226,
-442
@Lerc
Lerc / freq.txt
Created June 21, 2022 22:06
Frequency of Instructions in Gigatron ROM v5a
LD Imm,AC 00xx 59908
LD [0:Imm],AC 01xx 334
LD AC,AC 02xx 246
LD IN,AC 03xx 1
LD Imm,AC 04xx 0
LD [0:X],AC 05xx 38
LD AC,AC 06xx 0
LD IN,AC 07xx 0
LD Imm,AC 08xx 0
LD [Y:Imm],AC 09xx 7
@Lerc
Lerc / Main.kasm
Last active November 19, 2020 22:58
Input Example
.include "defs"
.include "kwak8"
.include "utility"
.org 0
jmp init
.org $10
@Lerc
Lerc / Main.kasm
Last active December 3, 2019 22:50
Kwak-8 base program
.include "defs"
.include "kwak8"
.include "utility"
.include "scratch"
.use Mode0Code
.org 0
jmp init
Operands are variant unless specified.
OPERATOR op,a,b,dst
EXTENDS_TEST a,b,dst
IS_BUILTIN value,_,dst
SET dst,index,value
GET src,index,value
SET_NAMED dst, indexName:int, value
GET_NAMED src, indexName:int, dst
OPERATOR op,a,b,dst
EXTENDS_TEST a,b,dst
IS_BUILTIN value,_,dst
SET dst,index,value
GET src,index,value
SET_NAMED dst, indexName:int, value
GET_NAMED src, indexName:int, dst
SET_MEMBER indexName:int, src
GET_MEMBER indexName:int, dst
ASSIGN dst,src
#include <unistd.h>
#include <stdlib.h>
#include <signal.h>
#include <stdio.h>
void sig_handler(int sig) {exit(0);};
int main () {
signal(SIGTERM,sig_handler);
pid_t pid_v;
@Lerc
Lerc / clutter_style_properties.md
Last active November 11, 2015 21:22
Clutter Style Properties

on st-theme-node

  • box-shadow
  • -st-background-image-shadow (does not support inset)
  • text-shadow (does not support inset)
  • color
  • warning-color
  • error-color
  • success-color
@Lerc
Lerc / jmpabuse.c
Created March 24, 2012 20:19
A simple string unscrabler using a turing machine inside a single expression.
#include <stdio.h>
#include <setjmp.h>
int J(jmp_buf x, int y) {
longjmp(x,y);
return 0;
}
int main(int argc, char **argv)
{