This file contains hidden or 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
#!/bin/bash | |
echo -n "Enter gallery name: " | |
read galname | |
which parallel &>/dev/null | |
if [ $? -ne 0 ] | |
then | |
echo "apt-get install parallel before you can continue" | |
exit |
This file contains hidden or 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
<!DOCTYPE HTML> | |
<html lang="en"> | |
<head> | |
<!--[if IE]> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<![endif]--> | |
<meta charset="utf-8"> | |
<title>Gallery</title> | |
<link rel="stylesheet" href="../css/blueimp-gallery.css"> | |
<link rel="stylesheet" href="../css/blueimp-gallery-indicator.css"> |
This file contains hidden or 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
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
add-apt-repository \ | |
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \ | |
$(lsb_release -cs) \ | |
stable" | |
apt-get update && apt-get remove docker docker-engine docker.io -y |
This file contains hidden or 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
#!/usr/bin/python | |
# Add your regex to find your phone | |
# Horrible lazy fast script | |
from bs4 import BeautifulSoup | |
import urllib2 | |
import re | |
response = urllib2.urlopen('http://www.gsmarena.com/battery-test.php3') |
This file contains hidden or 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
from lshash import LSHash | |
import numpy | |
import time | |
lsh = LSHash(100, 200, 1, None, "hamming.npz") | |
# Very modest | |
# lets assume 5000 images, with 200 features and 200 binary descriptors each | |
for y in range(0, 5000): | |
for x in range(0, 200): |
This file contains hidden or 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 redis | |
import threading | |
class Listener(threading.Thread): | |
def __init__(self, r, channels): | |
threading.Thread.__init__(self) | |
self.redis = r | |
self.pubsub = self.redis.pubsub() | |
self.pubsub.subscribe(channels) | |
NewerOlder