Skip to content

Instantly share code, notes, and snippets.

@CBenni
CBenni / house.bf
Last active January 27, 2020 20:42
; loop memory layout:
; 0 0 | lf sp \ _ / n 2nmi 2nmi 0 4i 4i
[-]
; set up characters
++++++[->++++>+>+>+<<<<]>-
[->+++++>>+>++++>++++>++<<<<<<]>
+++>++++>+++>>+++>+
>
@CBenni
CBenni / index.html
Created April 11, 2019 22:16
KYqVZP
<div id="app">
<div id="header">
<img src="https://esamarathon.com/static/img/logos/logo-borderless.svg" id="logo"></img>
<h1>European<br>Speedrunner<br>Assembly</h1>
</div>
<div id="body">
<h3>Hey {{data.user.connections.twitch.displayName}}!</h3>
{{data.message}}
</div>
<div id="footer">
.chat-wrapper {
font-size: 10pt;
font-family: 'Sitka Text';
}
@CBenni
CBenni / blank-pen-external-js-css.markdown
Created February 20, 2017 13:04
Blank Pen (External JS/CSS)
var express = require("express");
var app = express();
var server = require('http').Server(app);
server.listen(9003);
app.get("*", function(req, res, next) {
var url = req.path.substr(1);
if(url.startsWith("https://cdn.frankerfacez.com/emoticon/") || url.startsWith("https://cdn.betterttv.net/emote/")) {
console.log("Getting url "+req.path);
require('request').get(url).pipe(res);
var express = require("express");
var app = express();
var server = require('http').Server(app);
server.listen(9003);
app.get("*", function(req, res, next) {
console.log("Getting url "+req.path);
require('request').get("https://cdn.betterttv.net/emote"+req.path).pipe(res);
});
var net = require('net');
var events = require('events');
var rx = /^(?:@([^ ]+) )?(?:[:](\S+) )?(\S+)(?: (?!:)(.+?))?(?: [:](.+))?$/;
var rx2 = /([^=;]+)=([^;]*)/g;
var rx3 = /\r\n|\r|\n/;
var STATE_V3 = 1
var STATE_PREFIX = 2
var STATE_COMMAND = 3
var STATE_PARAM = 4
STATE_V3 = 1
STATE_PREFIX = 2
STATE_COMMAND = 3
STATE_PARAM = 4
STATE_TRAILING = 5
def parseIRCMessage(message):
parts = message.split(" ")
state = 0
data = [message,"","","",[],""]