This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// test it at www.webgraphviz.com/ | |
digraph languages { | |
// esolangs | |
node [ | |
color = darkorchid1 | |
style = filled | |
]; Pyth Jelly Japt Jolf GolfScript CJam Actually Seriously "Arcyóu" V Brainfuck Braingolf Simplex Element GS2 MATL Befunge "><\>" Minkolang "O" "05AB1E" Ohm | |
node [ | |
color = black | |
style = outline |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" | |
double: <<> | |
parity swap: ::^~<~^ | |
" | |
class Transformation | |
def initialize(sym, inv) | |
@sym = sym | |
@inv = inv | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
cat > "$1.c" << EOF | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <time.h> | |
int main(){ | |
srand(time(NULL)); | |
uint8_t t[65536] = {0}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a, *c = $* | |
str = "" | |
i = `#{a} #{c*?\s}` | |
loop { | |
p i | |
File.write "o.txt", i | |
i = `#{a} o.txt` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// node no.js [args] | |
// displays a help message without args | |
(_=>_(_)) | |
(function(__){ | |
// Code from Conor O'Brien | |
ಠಠ="The railroad constructor's name was ಠ_ಠ O'slice. On his annual eval" + ` | |
uation, he was sad. His boss hated him. So, he made THIS FACE: | |
ಠ_ಠ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// only works in browser JS, since node has weird scoping thing | |
(e=x=>{try{return[,(i=eval)(x)][+[]]}catch(e){return{};}})``;a= | |
v=>q=>i(v+"="+q+"("+v+")");P=(O=Object).defineProperty;for([w]= | |
[t,q]=("And they joined it to a very large, circular window"+"" | |
.strip+"Hello, hello!").split([]+[][+[]]);e(t);t=t[T="slice"](+ | |
!t[+q||T](++[[]][+[]]/+[])));a`t``i`;"".split``.__proto__[w[T]( | |
9,O=52>>1+!+"")]=function(o=""){[...this].map(e=>c+=e+o,c="");c | |
+=1;return c.slice(0,~o.length);};d=([x],...y)=>y.map(_=>x[_])+ | |
[];D=f=>(_,...[n,...m])=>i(f+"`"+n+m.map(e=>`\${${e}}`)+"`");I= | |
D`d`;P(t,(!+{}+[])[+[]],{value:q});console.log([][w[T](9,O?O:O) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <stdlib.h> | |
#define CLEAR std::cout<<"\033[2J\033[1;1H"; | |
#define FOR for(int | |
#define IN = | |
#define TO ; i < | |
#define EACH ; i += | |
#define DO ){ | |
#define END ;} | |
#define CHARACTER char |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// modified from https://gist.github.com/espadrine/172658142820a356e1e0 | |
var fs = require('fs'); | |
// Returns a buffer of the exact size of the input. | |
// When endByte is read, stop reading from stdin. | |
function getStdin(endByte) { | |
var BUFSIZE = 256; | |
var buf = new Buffer(BUFSIZE); | |
var totalBuf = new Buffer(BUFSIZE); | |
var totalBytesRead = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import time | |
import sys | |
# by Conor O'Brien | |
def small_sleep(): | |
time.sleep(0) | |
# simulate `a in b` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# for http://codegolf.stackexchange.com/q/112827/31957 | |
def repeated_chars(r, can_repeat = false) | |
-> (s) { | |
found = {} | |
repeated = "" | |
s.chars.each { |c| | |
found[c] = true if can_repeat | |
if r === c | |
if found.has_key? c | |
repeated += c |