Skip to content

Instantly share code, notes, and snippets.

View 1337's full-sized avatar
🧠
🤯

Brіаn 1337

🧠
🤯
View GitHub Profile
@1337
1337 / pokemon151.csv
Last active September 25, 2019 21:28 — forked from armgilles/pokemon.csv
# Name Type 1 Type 2 Total HP Attack Defense Sp. Atk Sp. Def Speed Generation Legendary
1 Bulbasaur Grass Poison 318 45 49 49 65 65 45 1 False
2 Ivysaur Grass Poison 405 60 62 63 80 80 60 1 False
3 Venusaur Grass Poison 525 80 82 83 100 100 80 1 False
4 Charmander Fire 309 39 52 43 60 50 65 1 False
5 Charmeleon Fire 405 58 64 58 80 65 80 1 False
6 Charizard Fire Flying 534 78 84 78 109 85 100 1 False
7 Squirtle Water 314 44 48 65 50 64 43 1 False
8 Wartortle Water 405 59 63 80 65 80 58 1 False
9 Blastoise Water 530 79 83 100 85 105 78 1 False

Keybase proof

I hereby claim:

  • I am 1337 on github.
  • I am false (https://keybase.io/false) on keybase.
  • I have a public key whose fingerprint is 9E96 9B5E A584 E539 6B2F 0D42 E060 F2DD 3E53 0EFB

To claim this, I am signing this object:

@1337
1337 / timer.py
Last active August 29, 2015 14:18
Python function/block timer
from __future__ import print_function
from functools import wraps
from time import time
__all__ = ['timer']
def timer(msg=None):
def is_callable(thing):
return getattr(thing, '__call__', None)
@1337
1337 / css.js
Created February 5, 2015 03:36
/*
css.js: CSS Permacache 2.2
This script handles only tags of these types.
<style class="permacache" type="text/css" data-src="(e.g. js.css)"></style>
<link class="permacache" href="(e.g. js.css)" /> (place AFTER this script!)
== Requirements ==
JS
jQuery 1.4+
// 1. [ ] how is "foo = function foo" from "foo = function"?
// 2. [ ] what happens when you do "function foo(foo)"?
var func = function func(func) {
// 3. [ ] what happens when you do "var foo" in a "function(foo)"?
var func;
// 4. [ ] what is "typeof func" here?
console.log(typeof func);
};
#!/usr/bin/env python2
class Foo(object):
x = 3
# [ ] 1. what's wrong with this line? how would you improve it?
def func(self, list=[]):
# [ ] 2. what is "list" here? what will be appended to it?
list.append(list is [])
#!/usr/bin/env python2
"""sudo cp xkcd.py /usr/local/bin/xkcd"""
__author__ = '1337'
from os.path import basename, join
from subprocess import call
import re
import sys
This file has been truncated, but you can view the full file.
[
{
"name": "Kelly's",
"regular_price": 9.44,
"package": "1000 mL bottle",
"volume": 1000,
"alcohol_content": 20.0,
"id": 113332
},
{
A R N D C Q E G H I L K M F P S T W Y V
A 4 -1 -2 -2 0 -1 -1 0 -2 -1 -1 -1 -1 -2 -1 1 0 -3 -2 0
R -1 5 0 -2 -3 1 0 -2 0 -3 -2 2 -1 -3 -2 -1 -1 -3 -2 -3
N -2 0 6 1 -3 0 0 0 1 -3 -3 0 -2 -3 -2 1 0 -4 -2 -3
D -2 -2 1 6 -3 0 2 -1 -1 -3 -4 -1 -3 -3 -1 0 -1 -4 -3 -3
C 0 -3 -3 -3 9 -3 -4 -3 -3 -1 -1 -3 -1 -2 -3 -1 -1 -2 -2 -1
Q -1 1 0 0 -3 5 2 -2 0 -3 -2 1 0 -3 -1 0 -1 -2 -1 -2
E -1 0 0 2 -4 2 5 -2 0 -3 -3 1 -2 -3 -1 0 -1 -3 -2 -2
G 0 -2 0 -1 -3 -2 -2 6 -2 -4 -4 -2 -3 -3 -2 0 -2 -2 -3 -3
H -2 0 1 -1 -3 0 0 -2 8 -3 -3 -1 -2 -1 -2 -1 -2 -2 2 -3
/*
PubSub by github.com/1337
GPLv3 (if you don't ask) or MIT (if you ask first)
what this does depends on the func signature.
$.pubSub(name);
calls all funcs under this name with default params
$.pubSub(name, params);
calls all funcs under this name with params
$.pubSub(name, params, callback);