Skip to content

Instantly share code, notes, and snippets.

View Nalisarc's full-sized avatar
🐐

Delta Alexander Sharp (D) Nalisarc

🐐
View GitHub Profile
@Nalisarc
Nalisarc / fun.py
Created October 17, 2012 05:02
Import Function\Input Output tests
import inputfun
import outputfun
outputfun.writeot()
inputfun.readin()
@Nalisarc
Nalisarc / Virus.py
Created December 19, 2012 06:01
A silly file I made. Good for pranks, nothing else
Q = raw_input('Format Harddrive: Y/N ')
if Q == 'Y':
Q2 = raw_input('Are you sure: Y/N ')
if Q2 == 'Y':
print 'Nah to much work'
else:
print "I wasn't going to anyway"
exit()
else:
print "awww your lame"
def insultgen():
from random import randrange
list1 = ['lazy','stupid','insecure','idiotic','slimy','slutty',
'smelly','pompous','communist','dicknose','pie-eating',
'racist','elitist','white trash','drug-loving','butterface',
'tone deaf','ugly','creepy']
list2 = ['douche','ass','turd','rectum','butt','cock','shit',
'crotch','bitch','turd','prick','slut','taint','fuck',
'dick','boner','shart','nut','sphincter']
list3 = ['pilot','canoe','captain','pirate','hammer','knob','box','jockey',
@Nalisarc
Nalisarc / cost.js
Created December 7, 2015 03:45
Parkingcall
function timecal(entryTime, exitTime){
var enh = entryTime.slice(0,2);
var enm = entryTime.slice(3);
var exh = exitTime.slice(0,2);
var exm = exitTime.slice(3);
var en = new Date(2000, 0, 1,enh,enm);
var ex = new Date(2000, 0, 1,exh,exm);
if (ex < en){
@Nalisarc
Nalisarc / Aem.py
Last active January 19, 2016 00:06
A little Script that automatically opens files in emacs
"""AutoEmacs Document"""
#expiremental version
# imports
import sys
import os
import psutil
import subprocess
from argparse import ArgumentParser
@Nalisarc
Nalisarc / if-modified-since-test.py
Created January 19, 2016 00:26
a test for checking if a site updates.
import requests
import time
timestamp = time.time()
timeformat = (time.strftime('%a, %d %b %Y %H:%M:%S GMT', time.gmtime(timestamp)))
url = 'http://stackoverflow.com/'
for x in range(100):
header = {'If-Modified-Since': timeformat}
r = requests.head(url, headers=header)
print r
from random import randint
import sys
number_range = [1,100]
def number_gen(number_range):
""" Generates the number to guess"""
return randint(number_range[0],number_range[1])
def main():
"""the main module!"""
@Nalisarc
Nalisarc / openpgp.txt
Created July 20, 2016 05:38
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:dfddaa6279e143a7c58bb122741657ae9190723c]
#!/usr/bin/env python3
import sys
import time
import random
import simpleaudio as sa
parser = argparse.ArgumentParser(description="Converts html tables into csv tables")
parser.add_argument("-v","--verbose", help="Enables verbose mode, useful for debugging.", action="store_true")
args = parser.parse_args()
@Nalisarc
Nalisarc / openpgp.txt
Created April 3, 2017 18:34
OpenKeychain Linked Identity
This Gist confirms the Linked Identity in my OpenPGP key, and links it to this GitHub account.
Token for proof:
[Verifying my OpenPGP key: openpgp4fpr:dfddaa6279e143a7c58bb122741657ae9190723c]