I hereby claim:
- I am st0le on github.
- I am gauravkamath (https://keybase.io/gauravkamath) on keybase.
- I have a public key whose fingerprint is 6A30 6360 1097 9800 B9DF 154F 4DD9 FB9F 5039 0C57
To claim this, I am signing this object:
| import hashlib, os | |
| unique = dict() | |
| for filename in os.listdir('.'): | |
| if os.path.isfile(filename): | |
| filehash = hashlib.md5(open(filename, 'rb').read()).hexdigest() | |
| if filehash not in unique: | |
| unique[filehash] = filename | |
| else: | |
| print (filename + ' is a duplicate of ' + unique[filehash]) |
| from bs4 import BeautifulSoup | |
| from itertools import count | |
| import requests | |
| url = 'http://alpha.wallhaven.cc/search?categories=101&sorting=favorites&order=desc&page=' | |
| jpg = 'http://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-%s.jpg' | |
| png = 'http://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-%s.png' | |
| status = '\r[page {:0>3}] [image {:0>2}|24] [{:.<24}]'.format |
I hereby claim:
To claim this, I am signing this object:
| def find_anagrams(hay, needle): | |
| primes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101] | |
| f = lambda c : primes[ord(c.lower()) - ord('a')] | |
| needle_primes = map(f, needle) | |
| needle_primehash = reduce(mul, needle_primes) | |
| current_primehash = 1 | |
| l = len(needle) | |
| locations = [] | |
| for i,c in enumerate(hay): | |
| if i >= l: |
| from random import randint | |
| def random_array(n): | |
| f = lambda i : randint(10, 100) | |
| return map(f, range(n)) | |
| A = sorted(random_array(10)) | |
| B = sorted(random_array(10)) | |
| def intersection(A, B): |
| //----- | |
| //smokechickens.cfg | |
| //----- | |
| //Customise keybinds at the bottom of the config file | |
| //----- | |
| //Press [default: X] to spawn a chicken at your crosshair and make it glow so you can see it through walls. | |
| //Press [default: Z] to kill all chickens on the map. (you monster) | |
| //Press [default: C] to toggle the glow on the chickens. | |
| //----- | |
| //Known bugs: |
| javascript:(function(){var user=$("meta[name='user-login']").attr('content');function removeNonFollowers(following){$("div.member_add").each(function(i,item){var actor=$(this).find("a")[0].innerHTML;if(following.indexOf(actor)<0)$(this).remove();});};var following=[];$.ajax("https://api.github.com/users/"+user+"/following").done(function(data){$.each(data,function(i,item){following.push(item.login);});removeNonFollowers(following);});setInterval(function(){removeNonFollowers(following);},1000);})(); |
| import bs4 as bs | |
| from requests import get | |
| from time import sleep | |
| import sqlite3 | |
| class SpoilerDB: | |
| def __init__(self): | |
| self.conn = sqlite3.connect('movie_spoilers.db') | |
| self.db = self.conn.cursor() |
| r_drawothermodels 0 | |
| sv_cheats 1 | |
| sv_infinite_ammo 2 | |
| ammo_grenade_limit_total 5 | |
| mp_warmup_end | |
| mp_freezetime 0 | |
| mp_roundtime 3 | |
| mp_roundtime_defuse 3 | |
| mp_limitteams 0 | |
| mp_autoteambalance 0 |
| // Server config | |
| sv_cheats 1 | |
| mp_limitteams 0 | |
| mp_autoteambalance 0 | |
| mp_roundtime 60 | |
| mp_roundtime_defuse 60 | |
| mp_maxmoney 60000 | |
| mp_startmoney 60000 | |
| mp_freezetime 0 | |
| mp_buytime 9999 |