I hereby claim:
- I am skorokithakis on github.
- I am stavros (https://keybase.io/stavros) on keybase.
- I have a public key ASD0HG50JQNyi4_Zzw5LEmEonXKKea0tf3oMA9CCEM3TlQo
To claim this, I am signing this object:
Verifying my Blockstack ID is secured with the address 1F9nnKh3GncLxANsF245mtcnp8UiQK8Ddr https://explorer.blockstack.org/address/1F9nnKh3GncLxANsF245mtcnp8UiQK8Ddr |
I hereby claim:
To claim this, I am signing this object:
import math | |
def string_to_int(string): | |
"""Convert a string to the equivalent integer.""" | |
# For each character, convert to an integer, convert that to hex, | |
# remove the first two chars ("0x") and left-pad with a zero. | |
hexchars = [hex(ord(x))[2:].rjust(2, "0") for x in string] | |
return int("".join(hexchars), 16) |
r = $("#_description").data("redactor");r.$toolbar.prepend($('<li>').append(r.buildButton("html", r.opts.toolbar["html"]))); |
set -g __fish_git_prompt_show_informative_status 1 | |
set -g __fish_git_prompt_hide_untrackedfiles 1 | |
set -g __fish_git_prompt_color_branch magenta bold | |
set -g __fish_git_prompt_showupstream "informative" | |
set -g __fish_git_prompt_char_upstream_ahead "↑" | |
set -g __fish_git_prompt_char_upstream_behind "↓" | |
set -g __fish_git_prompt_char_upstream_prefix "" | |
set -g __fish_git_prompt_char_stagedstate "●" |
### Keybase proof | |
I hereby claim: | |
* I am skorokithakis on github. | |
* I am stavros (https://keybase.io/stavros) on keybase. | |
* I have a public key whose fingerprint is F877 F376 9A96 3217 FBD6 D1CD 91DD F089 422C EFA2 | |
To claim this, I am signing this object: |
import zlib | |
infile = open("test.swf", "rb") | |
infile.seek(0, 0) | |
if infile.read(3) == "CWS": | |
data = "FWS" + infile.read(5) + zlib.decompress(infile.read()) | |
open("decompressed.swf", "wb").write(data) |
import hashlib | |
import urllib, urllib2 | |
class Badginator(object): | |
def __init__(self, game_key): | |
self.game_key = game_key | |
def _sign(self, user_key, achievement_id): | |
return hashlib.sha1(self.game_key + user_key + achievement_id).hexdigest() |
import sys, os | |
package_dir = "packages" | |
sys.path.insert(0, package_dir) | |
for filename in os.listdir(package_dir): | |
if filename.endswith((".zip", ".egg")): | |
sys.path.insert(0, "%s/%s" % (package_dir, filename)) |