This file contains 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
#!/bin/bash | |
g++ ./hello.cc -shared -o libppapi_hello.so -I/home/robo/github/nacl_sdk/pepper_43/include -L/home/robo/github/nacl_sdk/pepper_43/lib/linux_host/Release -lppapi_cpp -lppapi -lpthread -Wall -fPIC |
This file contains 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
// clang++ -std=c++11 lol.cc -o lol | |
#include <iostream> | |
using namespace std; | |
int main() { | |
int lol = 10; | |
int lol = 10; | |
int lol = 10; | |
int lol = lol + lol + lol; |
This file contains 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 <stdio.h> | |
#include <string.h> | |
static const char * LOL = | |
"you should have expected this to get out of hand, Sindre. 💃😈\n" | |
"this is almost entirely your fault!! 🙈💩 WY<.< h[+}Q" | |
"<.< <.< X-*%)1P<.< _QX<.< <.< H18\xC3P0 lol 😐🖖 ball's in your" | |
"court now. <.<"; | |
int main(void) { |
This file contains 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> | |
using namespace std; | |
int main() { | |
int lol🦄unicorn = 10; | |
cout << lol🦄unicorn << endl; | |
return 0; | |
} |
This file contains 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
const RNG = require('./lib/rng'); | |
// Returns a number of metrics about a run. | |
// - `seed` should be any number | |
// - `runs` should be in the millions or above for best results | |
// - `slotCount` is the number of buckets (I tend to stick with 100) | |
// The returned metrics include a "variance" member, which is | |
// the average deviance from perfect distribution. | |
// For reference, perfect distribution is (1/slotCount). |
This file contains 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
// it's a thousand degrees and I can't sleep, it's thursday, | |
// i'm feeling saucy and so I decided to make a song out of math. | |
// | |
// super, super high def audio (176,400 Hz = HDCD) | |
// | |
// to run: | |
// - install ffmpeg (`brew install ffmpeg` or `apt install ffmpeg`) | |
// - run (without backticks) `node bouncy-egyptian-song.js | ffplay -f f64le -ar 176400 -` | |
// ^ | |
// this hyphen is required! > > ^ |
This file contains 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
const chalk = require('chalk'); | |
const ignoreChars = /[^!-~]/; | |
function rainbow(str, offset) { | |
if (!str || str.length === 0) { | |
return str; | |
} | |
const hueStep = 360 / str.replace(ignoreChars, '').length; |
This file contains 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
// Credit to coruus and lingz from Github. | |
// Ported to JS by qix-. I didn't try to reformat - sorry! o-o | |
// Original work by Evan Kirshenbaum | |
// http://www.kirshenbaum.net/IPA/ | |
var kirshenbaum = (function () { | |
var PHONEMIC_RE = /[^\/]+/; | |
function _sort(it) { | |
// Sort by reverse-length, then alphabetically |
This file contains 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
// just call `play()` when the game has started. | |
function getCurrentCoords() { | |
const tiles = document.querySelectorAll('.grid > div'); | |
for (var y = 0; y < 5; y++) { | |
for (var x = 0; x < 5; x++) { | |
const i = y * 5 + x; | |
if (tiles[i].classList.contains('coin')) { | |
return [x, y]; |
This file contains 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 | |
# Released into the Public Domain. | |
# | |
# Original implementation in C by Brad Conte (brad@bradconte.com) <https://github.com/B-Con/crypto-algorithms> | |
# Ported to Bash (lol) by Josh Junon (josh@junon.me) <https://github.com/qix-> | |
# | |
# Yes, it's absolutely as slow as it looks. | |
# | |
# The only external dependency it has is on a utility called `od`, |