Skip to content

Instantly share code, notes, and snippets.

View mathcat4's full-sized avatar

mathcat mathcat4

View GitHub Profile
@vyznev
vyznev / codegolf_sorter.user.js
Created May 30, 2014 23:46
User script to add sort answers by code length on Code Golf Stack Exchange
// ==UserScript==
// @name Code Golf SE sorter
// @namespace http://vyznev.net/
// @version 0.6
// @description Add a tab to sort answers by code length
// @match *://codegolf.stackexchange.com/questions/*
// @copyright 2014, Ilmari Karonen
// @grant none
// ==/UserScript==
@ianstarz
ianstarz / logic-gates.js
Last active April 17, 2022 03:34 — forked from shawndumas/taggedTemplate.js
Build up all the logic gates from nand in js
const logicGates = {
nand (a, b) { return !(a && b); },
not (a) { return this.nand (a, a); },
and (a, b) { return this.not (this.nand (a, b)); },
or (a, b) { return this.nand (this.not (a), this.not(b)); },
nor (a, b) { return this.not (this.or (a, b)); },
xor (a, b) { return this.and (this.nand (a, b), this.or(a, b)); },
xnor (a, b) { return this.not (this.xor (a, b)); }
};
@placidrod
placidrod / sublime-text-3-open-in-command-line.txt
Created June 27, 2016 07:39
Sublime Text 3 - Open in Command Line (Windows)
You can open sublime text from command line with subl.exe and subl. The second one has a problem. If sublime text is not open already,
when you open sublime text with subl, the command prompt will wait until sublime text is closed. So, you cannot do anything else in
terminal, unless you open another terminal. This is useful in some cases. But sometimes its a pain.
Method 1: Open with subl.exe
1. Go to Control Panel > Advanced System Settings -> Advanced -> Environment Variables
2. Create a new system variable called SUBLIME that will point to the folder of your Sublime installation.
Variable Name: SUBLIME
Variable Value: C:\Program Files\Sublime Text 3
@pierrejoubert73
pierrejoubert73 / markdown-details-collapsible.md
Last active November 16, 2024 22:55
How to add a collapsible section in markdown.

How to add a collapsible section in markdown

1. Example

Click me

Heading

  1. Foo
  2. Bar
    • Baz
  • Qux

How to use GingerBot

TNB Conlang (katlani)

To queue a word to be added to the word list, send a message formatted like __WR: word (p):__ Definition where word is the Katlani word, p is the part of speech, and definition is the definition. Example: __WR: caminar (v):__ Walk

Part of speech Abbreviations
Prefixes and Suffixes pre, suf
@Seggan
Seggan / ops.txt
Last active January 28, 2023 02:23
Fig operators
char (arity) - desc
whitespace - nop
newline - Starts a new function
! (1) - (any) logical not
" - String literal
# - Misc digraph char
$ (1) - (any) reverse
% (2) - (num, num) b mod a, (str, any) replace % in a with b
& (2) - (num, num) bitwise AND