Skip to content

Instantly share code, notes, and snippets.

View LandonPowell's full-sized avatar
🏴
Nestor Makhno's Ghost 2020

Landon J. Powell LandonPowell

🏴
Nestor Makhno's Ghost 2020
View GitHub Profile
@LandonPowell
LandonPowell / mostHorribleCode2.py
Last active July 20, 2016 06:21
Even in glorious Python, the most horrible code possible can be written. I'm not man enough to actually test this out. WARNING: HARMFUL.
for _ in range(int(42 == 420/10)):
while int(not _):
_+=int(not 1336 == 666)
with open(hex(_), "a+") as ride_my_eggplant:
ride_my_eggplant.write(str(_) * 6661337420)
@LandonPowell
LandonPowell / mostHorribleCode1.js
Created July 20, 2016 06:03
The most horrible code in the god damn world.
for(;;){alert(["\u0059\u004f\u0055" + (` r` || 'regexLibrary' && ".active_##"), (3735928559).toString(16).substr(0, 4), (3735928559).toString(16).substr(4)].join(" ").toUpperCase())}
@LandonPowell
LandonPowell / anime.py
Last active June 30, 2016 15:37 — forked from Getindor/anime.py
rei rate my desktop :3333333 xddd asuka miku rate my desktop rei miku waifu miku anime is technology rate my desktop :3 rate my desktop waifu s-senpai :3333333 rate my desktop rei s-senpai :3 rate my desktop rei miku s-senpai asuka miku anime is technology miku rei xddd rate my desktop anon-kun s-senpai rei rei anon-kun waifu :3333333 waifu anim…
import random
trash = ":3.xddd.rate my desktop.senpai.anon-kun.:3333333.s-senpai.anime is technology.waifu.no bully.asuka.rei.miku.desu".split('.')
i = int(input("h-how much anime do you want senpai: "))
print(" ".join( random.choice(trash) for _ in range(i) ))
@LandonPowell
LandonPowell / rot13.py
Created March 27, 2016 22:04
Code Golph'd implementation of rot13 in Python2.
a = "abcdefghijklmnopqrstuvwxyz"
q = " 1234567890.,'\";:"
z = {x:y for x,y in map(None,a+q,a[13:]+a[:13]+q)}
print ''.join([z[c] for c in raw_input('>').lower()])
count = 0
string = "z"
while True:
with open(hex(count), "a+") as file:
file.write(string)
string += string
count += 1
@LandonPowell
LandonPowell / DrNim.py
Last active March 17, 2016 02:18
Python Nim Implementation.
print(
"Welcome to Nim!:\n"+
"A simple game, where you're allowed to take "+
"one, two, or three marbles from a pile of 12.\n"+
"You compete against the computer to take the "+
"last marble.")
marbles = 12
def computerTake(amount):
@LandonPowell
LandonPowell / And55clone.js
Last active February 13, 2016 23:46
This is a clone of "Make America Great Again"'s code that he wrote for my website. It generates a nick in the style of his username, "get52". I'm using LJPowell indents because they're the master race.
function randomChar(string) {
return string.charAt(Math.floor(Math.random() * string.length)) ;}
function generateName() {
var vowels = "aeiou";
var consonants = "bcdfghjklmnpqrstvwxyz";
return randomChar(consonants) +
randomChar(vowels) +
randomChar(consonants) +
(Math.floor(Math.random()*89)+10) ;}
var colors = ["e66","ea6","ee6","6e6","6ee","66e","a6e"];
String.prototype.flair = function() {
flair = "$Ubuntu Mono|/^/^";
for (i = 0; i < this.length; i++) {
color = colors[i%colors.length]
flair += "##" + color + "#" + color + this[i];
}
return flair;
}
CLIENT.on('message', function() {
HAI 1.2
I HAS A VAR
VAR R 1
IM IN YR FIZZBUZZ UPPIN YR VAR WILE BOTH SAEM VAR AN SMALLR OF VAR AN 100
NOT MOD OF VAR AN 15
O RLY?
YA RLY, VISIBLE "FIZZBUZZ"
MEBBE NOT MOD OF VAR AN 3, VISIBLE "FIZZ"
MEBBE NOT MOD OF VAR AN 5, VISIBLE "BUZZ"
NO WAI, VISIBLE VAR
x = raw_input("> ")
print ' '.join(x)
for i in range(1, len(x)-1):print x[i] + (len(x) * 2 - 3) * ' ' + x[len(x)-i-1]
print ' '.join(x[::-1])