Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mino98
mino98 / twimlai_durations.ipynb
Last active May 24, 2019 16:38
Twiml episode duration
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mino98
mino98 / dwave-networkx-helloworld.ipynb
Last active April 20, 2019 14:11
Helloworld quantum annnealing on networkx :)
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mino98
mino98 / PCA-stability.ipynb
Last active March 1, 2018 15:21
SKLearn's PCA sign ambiguity?
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mino98
mino98 / checkpass.sh
Last active March 14, 2018 23:07
Check password against pwnedpasswords repo.
#!/bin/bash
# Original:
# https://blog.cloudflare.com/validating-leaked-passwords-with-k-anonymity
echo -n Password:
read -s password
echo
hash="$(echo -n $password | openssl dgst -sha1 -binary | xxd -p)"
upperCase="$(echo $hash | tr '[a-z]' '[A-Z]')"
@mino98
mino98 / test.py
Created January 24, 2018 15:50
Testcase for #1019
from gensim.models import doc2vec
print("Using optimization: %d" % doc2vec.FAST_VERSION)
sentences = [('food', 'I like to eat broccoli and bananas.'),
('food', 'I ate a banana and spinach smoothie for breakfast.'),
('animals', 'Chinchillas and kittens are cute.'),
('animals', 'My sister adopted a kitten yesterday.'),
('animals', 'Look at this cute hamster munching on a piece of broccoli.')]