Skip to content

Instantly share code, notes, and snippets.

@RikerW
RikerW / logic-operators.py
Last active July 6, 2016 17:23
logical functions
{'AND': ('∧', (lambda a,b:bool(operator.and_(a,b)))),
'OR': ('∨', (lambda a,b:bool(operator.or_(a,b)))),
'NOT': ('¬', (lambda a,b:bool(operator.not_(a)))),
'NOR': ('↓', (lambda a,b:bool(operator.not_(operator.or_(a,b))))),
'XOR': ('↮', (lambda a,b:bool(operator.xor(a,b)))),
'XNOR': ('↔', (lambda a,b:bool(operator.not_(operator.xor(a,b))))),
'NAND': ('↑', (lambda a,b:bool(operator.not_(operator.and_(a,b)))))}
'use strict';
// ==UserScript==
// @name TF2 Wiki Englishifier
// @namespace Riker Wachtler
// @version 1.2
// @description Redirects a non-English TF2 Wiki page to the English one.
// @author You
// @match https://wiki.teamfortress.com/wiki/*
// @grant none
@RikerW
RikerW / mothers.py
Created May 8, 2016 04:19
Mother's Day
import termcolor, pyfiglet
print termcolor.colored(pyfiglet.figlet_format("Happy Mother's Day Mom!!!", "bubble"),"yellow")
@RikerW
RikerW / epicness_abounds.html
Created May 1, 2016 23:59
Epicness Abounds
<audio controls autoplay hidden> <source src="http://rikerw.github.io/Rick%20Astley%20-%20Never%20Gonna%20Give%20You%20Up.mp3" type="audio/mp3"> </audio>
var xkcd;
var xkcdLoaded = false;
function chat(msg) {
document.getElementById('input').value = msg.replace(/<\/?i>/g, "*");
document.getElementById("sayit-button").click();
}
function getMessage(number) {
var messages = document.getElementsByClassName("content");
@RikerW
RikerW / bitsbox
Created February 9, 2016 20:36
Hello!
#Bitsbox code
These are all the commands/code I discovered.
##Rickroll:
window.open("http://bit.ly/IqT6zt","_parent")
**alt:**
window.open("http://bit.ly/defcon","_parent")