This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
zoia-ctrl.py | |
============== | |
Command line script to manage ZOIA file patches in a directory | |
Usage | |
----- | |
For renaming all files sequentially: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::cmp; | |
use std::cmp::Reverse; | |
use std::collections::BinaryHeap; | |
use std::collections::HashMap; | |
use std::sync::mpsc; | |
use std::thread; | |
use std::vec::Vec; | |
use gdnative::prelude::*; | |
use gdnative::api::TileMap; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am lambdanaut on github. | |
* I am lambdanaut (https://keybase.io/lambdanaut) on keybase. | |
* I have a public key ASC_Aazu1TL5v-Ce2Sm4MCQ1wOuUg-ZIdnh9jdyDfr6YJgo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from Crypto.Random import random | |
from Crypto.PublicKey import RSA | |
from Crypto.Hash import SHA | |
import constants | |
from utils import rando | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
EXAMPLE | |
>> bloom = Bloom(1000000, 6) # Instantiate a Bloom filter of size 100,000 with 6 runs through the hash function | |
>> [bloom.insert(str(x)) for x in range(10000)] # Insert the integers from 0-9999 into the Bloom Filter | |
>> all([bloom.lookup(str(x)) for x in range(10000)]) # Ensure all values were entered correctly | |
True | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
class MM(object): | |
def __init__(self): | |
# Wordlist form = ['this','is','words'] | |
# Graph form = [((1,1)],[(2,1)],[]] | |
# [((count, index)],[(count, index)],[]] | |
self.wordlist = [] | |
self.graphlist = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Q | |
CSS: | |
Explain the difference between visibility:hidden; and display:none; | |
## A | |
Visibility:Hidden; - It is not visible but takes up it's original space. | |
Display:None; - It is hidden and takes up absolutely no space as if it was never there. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" Classifies a point as belonging to a cluster of points """ | |
from math import sqrt | |
from random import shuffle | |
WIDTH = 28 | |
HEIGHT = 28 | |
POINT_TO_CLASSIFY = (2,4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main where | |
config_input_cells = 1 :: Int | |
config_hidden_layer_cells = 10 :: Int | |
config_hidden_layers = 2 :: Int | |
config_output_cells = 1 :: Int | |
-- [ [ (Threshhold, [Connection Weights] ) ] ] | |
type Net = [ [ (Double, [Double] ) ] ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import random | |
target = "http://mtgox.com.bz/login.php" | |
wordlist_file = "wordlist" | |
wordlist = open(wordlist_file, "r").readlines() | |
wordlist_len = len(wordlist) | |
while True: |
NewerOlder