Skip to content

Instantly share code, notes, and snippets.

🤡
Doing terrible and wonderful things.

Nicholas Fleck TheBerkin

🤡
Doing terrible and wonderful things.
Block or report user

Report or block TheBerkin

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
@TheBerkin
TheBerkin / cah_absurd.json
Created Feb 3, 2019
LAN Against Humanity - CAH Absurd Box
View cah_absurd.json
{
"id": "cah_absurd",
"name": "CAH: Absurd Box",
"accent": "headache",
"author": "Cards Against Humanity",
"license": "Creative Commons BY-NC-SA 2.0",
"license_url": "https://creativecommons.org/licenses/by-nc-sa/2.0/",
"cards": [
{
"id": "b_barbandbob50",
@TheBerkin
TheBerkin / cah_base_deck.json
Created Jan 21, 2019
LAN Against Humanity - CAH Base Deck
View cah_base_deck.json
{
"id": "cah_base_deck",
"name": "CAH: Base Deck",
"author": "Cards Against Humanity",
"license": "Creative Commons BY-NC-SA 2.0",
"license_url": "https://creativecommons.org/licenses/by-nc-sa/2.0/",
"cards": [
{
"id": "b_nosleep",
"content": {
@TheBerkin
TheBerkin / speedparse-int.cs
Last active Mar 30, 2017
Integer Speedparser
View speedparse-int.cs
public static int Parse(string str)
{
unchecked
{
int n = 0;
int l = str.Length - 1;
for (int i = l, x = 1; i >= 0; i--, x *= 10)
{
switch (str[i])
{
@TheBerkin
TheBerkin / youtube-annoyances.txt
Last active Feb 1, 2017
uBlock Origin filters for purging Trending, YouTube Red, and Suggested Channels from your YouTube feed.
View youtube-annoyances.txt
www.youtube.com###yt-banner-promo-renderer-background
www.youtube.com###unlimited-guide-item [href="/red"]
www.youtube.com##.yt-shelf-grid-item:has(.standalone-collection-red-badge-renderer-icon)
www.youtube.com###trending-guide-item
www.youtube.com##.yt-section-hover-container:has(.shelf-subscription-button)
www.youtube.com##.yt-section-hover-container:has(b>.g-hovercard)
www.youtube.com##.yt-section-hover-container:has(a[href="/feed/trending"])
www.youtube.com##.yt-section-hover-container:has(a[href="/feed/trending"])
www.youtube.com##.appbar-nav-menu li:has(a[href="/feed/trending"])
@TheBerkin
TheBerkin / rant-3-queries.ebnf
Last active Sep 27, 2016
EBNF Grammar for Rant 3 Queries
View rant-3-queries.ebnf
letter = ? Any Unicode character in categories Lu, Ll, Lt, Lm, Lo ?;
digit = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '0';
pos_int = {digit};
int = ['-'], pos_int;
id = {letter | digit | '_'};
View RNG.cs
using System;
using System.Collections.Generic;
using System.Runtime.InteropServices;
namespace Berkin
{
/// <summary>
/// Represents a non-linear random number generator.
/// </summary>
public class RNG
@TheBerkin
TheBerkin / cyoa.rant
Created Apr 23, 2015
Choose Your Own Adventure Generator
View cyoa.rant
You are in \a <adj> <place-indoor>.
\2,N
[rs:[n:1;4];\N]
[before:[case:first]]
{
{
A [case:upper]{(0.2)<adj>\s|}<noun>[case:none] is|
{[numfmt:verbal-en][num:2;20][numfmt:normal]|several}
\s[case:upper]{(0.2)<adj>\s|}<noun.plural>[case:none] are
View semirhyme.rant
[rhyme:semirhyme]
[rs:100;<::&a>\N]
{
The <adj(1)::&a> <noun(1)::&a> <verb.ed(1)::&a> the <adj(1)::&a> <noun(1)::&a>.
}
@TheBerkin
TheBerkin / diffmark-specification.md
Last active Aug 29, 2015
Diffmark specification
View diffmark-specification.md

#Diffmark

Diffmark is a DSL for applying transformations to strings. Behold its beauty. Shield your eyes. Here's the damn specs.

##Syntax A string with no symbols is just added to the end of the base string.

Hello \sworld

Hello world

@TheBerkin
TheBerkin / berkin-regex.md
Last active Aug 29, 2015
My WIP custom regex flavor spec
View berkin-regex.md

##Groups

( ... )			Capturing group
(: ... )		Non-capturing group
(`n` ... )		Named capturing group
(:`n` ... )		Named non-capturing group
(> ... )		Positive peekahead
(< ... )		Positive peekbehind
(<< ... )		Positive lookbehind
(>> ... )		Positive lookahead
You can’t perform that action at this time.