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
// ==UserScript== | |
// @name Uploadius Hover Zoom | |
// @namespace uploadiushoverzoom | |
// @include http://swololol.com/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
window.onload = function() { | |
var title = document.getElementsByTagName("h1"); |
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
<html> | |
<head> | |
<title>Raytrace</title> | |
<script type="text/javascript" src="vector.js"></script> | |
<script type="text/javascript" src="raytracer.js"></script> | |
</head> | |
<body> | |
<canvas id="raytraceCanvas" width="100" height="100"> | |
get off of internet explorer | |
</canvas> |
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
var Vector = {}; | |
Vector.Rect = function(x, y, z) { | |
this.magnitude = Math.sqrt(x^2, y^2, z^2); | |
this.toRect = function() { return this; } | |
this.toPolar = function() { return Vector.Polar(magnitude, Math.arccos(z/magnitude), Math.arcsin(y/magnitude)) } | |
this.x = x; | |
this.y = y; | |
this.z = z; | |
} | |
Vector.Polar = function(magnitude, rx, rz) { |
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 ruby | |
if ARGV.length != 1 | |
puts "Please call this as \"ruby corrupt.rb <input file>\"" | |
exit | |
end | |
def get_char | |
state = `stty -g` | |
`stty raw -echo -icanon isig` |
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
miceFile = File.open("/dev/input/mice", "r") | |
mouseClickActions = { 0 => "- None\n\n", | |
1 => "- Left Mouse Button\n\n", | |
2 => "- Right Mouse Button\n\n" , | |
3 => "- Left Mouse Button\n- Right Mouse Button\n\n", | |
4 => "- Middle Mouse Button\n\n", | |
5 => "- Left Mouse Button\n- Middle Mouse Button\n\n", | |
6 => "- Right Mouse Button\n- Middle Mouse Button\n\n", | |
7 => "- Left Mouse Button\n- Right Mouse Button\n- Middle Mouse Button\n\n" } |
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 <string> | |
#include <iostream> | |
#include <fstream> | |
#include <cmath> | |
#include <complex> | |
#include <algorithm> | |
int main(int argc, std::string argv[]) { | |
if (argc != 8) { |
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
@chemicalDictionary = { UUU: :phenylalanine, UUC: :phenylalanine, UUA: :leucine, UUG: :leucine, | |
CUU: :leucine, CUC: :leucine. CUA: :leucine, CUG: :leucine, | |
AUU: :isoleucine, AUC: :isoleucine, AUA: :isoleucine, AUG: :methionine, | |
GUU: :valine, GUC: :valine, GUA: :valine, GUG: :valine, | |
UCU: :serine, UCC: :serine, UCA: :serine, UCG: :serine, | |
CCU: :proline, CCC: :proline, CCA: :proline, CCG: :proline, | |
ACU: :threonine, ACC: :threonine, ACA: :threonine, ACG: :threonine, | |
GCU: :alanine, GCC: :alanine, GCA: :alanine, GCG: :alanine, | |
UAU: :tyrosine, UAC: :tyrosine, UAA: :stop, UAG: :stop, | |
CAU: :histidine, CAC: :histidine, CAA: :glutamine, CAG: :glutamine, |
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
def genBF(seed, length) | |
prng = Random.new(seed) | |
program = "" | |
loopDepth = 0 | |
length.times do | |
ins = [?+, ?-, ?<, ?>, ?,, ?., ?+, ?-, ?<, ?>, ?,, ?., ?[, ?]].sample(random: prng) | |
ins = ?[ if loopDepth <= 0 and ins == ?] | |
loopDepth += 1 if ins == ?[ | |
loopDepth -= 1 if ins == ?] | |
program += ins |
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
# Language specification | |
# A @bueue program is a simple number | |
# The @bueue interpreter generates the collatz sequence | |
# of that number and interprets each number in it as | |
# a small subprogramm. | |
# | |
# There is a queue available which can store bits. | |
# Opcodes mod 10: | |
# 0 - enque 0 | |
# 1 - enque 1 |
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
if ARGV.length != 1 | |
puts "Must take input file as single argument." | |
exit | |
end | |
program = ARGF.read.split(?\n)#.map{|line| line.split() } | |
pointer = [0, 0] | |
direction = :right #left up down | |
stack = [] | |
ins = "" |