Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// Twitch Chat Filter that hides messags unless they are from mods or in the list of allowed users. | |
// Originally written, and still configured, for LRR's PPR streams, where I wanted to be able to read the rules text LLRBot put into chat. | |
(function() | |
{ | |
const allowed_users = ['LoadingReadyRun', 'LRRbot', 'LRRMTG_Judge']; | |
const allow_mods = true; | |
const log = document.querySelector('div[role="log"]'); | |
window.setInterval(() => |
This piece of code came out of a challenge to write a euclid solving tool in C in as few source code bytes as possible.
It has been tested as compiling on gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
EU4's management all falls into three categories:
- Administration
- Diplomacy
- Miltary
Each of these has it's own stock of mana/monarch points/power points. All of these categories has technologies and options for 'national ideas' (to help sculpt your playthrough).
Provinces
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 <stdint.h> | |
#include <stdlib.h> | |
int main( void ) | |
{ | |
FILE* ifh = fopen( "/dev/urandom", "rb" ); | |
/* Number of samples to buffer */ | |
const size_t buffer_size = 256; |
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
// Sample answer for a quiz :) | |
swap (int &a, int &b) | |
{ | |
a = a ^ b; // a' = a ^ b | |
b = a ^ b; // b' = a' ^ b = a ^ b ^ b = a | |
a = a ^ b; // a'' = a' ^ b' = a ^ b ^ a = b | |
} |
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
\documentclass[a4paper,12pt,twoside]{report} | |
% Input encoding and page size | |
\usepackage[utf8]{inputenc} | |
\usepackage[a4paper,twoside,bindingoffset=12mm,top=22mm,left=20mm,right=20mm,bottom=26mm]{geometry} | |
\usepackage[compact]{titlesec} | |
\usepackage{ifdraft} | |
\ifdraft | |
{ |
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
\documentclass[a4paper,landscape]{article} | |
\usepackage[margin=1pt]{geometry} | |
\usepackage{graphicx} | |
\usepackage[utf8]{inputenc} | |
\begin{document} | |
Kitty | |
\vfill |
NewerOlder