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/env python | |
| import logging | |
| class TopologicalSort(object): | |
| def __init__(self, dependencies=None): | |
| self.dependencies = dependencies if dependencies else {} | |
| def set_dependencies(self, package_id, package_ids): |
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/env python | |
| import random | |
| import string | |
| from threading import Thread | |
| import requests | |
| from bs4 import BeautifulSoup | |
| user_agent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)' | |
| url = 'http://icloudpages.com' |
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
| { | |
| isMenuOpened: false, | |
| highlightedLinks: false, | |
| isMobileEnabled: false, | |
| grayscale: 0, | |
| brightness: 100, | |
| contrast: 100, | |
| maxZoomLevel: 3, | |
| minZoomLevel: 0.5, | |
| zoomStep: 0.2, |
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 _winreg import * | |
| import os | |
| import platform | |
| ROOTS_HIVES = { | |
| "HKCU": HKEY_CLASSES_ROOT, | |
| "HKEY_CLASSES_ROOT": HKEY_CLASSES_ROOT, | |
| "HKCR": HKEY_CLASSES_ROOT, | |
| "HKEY_CURRENT_USER": HKEY_CURRENT_USER, | |
| "HKLM": HKEY_LOCAL_MACHINE, |
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 subprocess | |
| import re | |
| def get_interfaces(): | |
| output = subprocess.check_output("ipconfig /all") | |
| lines = output.splitlines() | |
| lines = filter(lambda x: x, lines) | |
| ip_address = '' |
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> | |
| <head lang="en"> | |
| <meta charset="UTF-8"> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/fabric.js/1.6.4/fabric.min.js"></script> | |
| <script src="//cdnjs.cloudflare.com/ajax/libs/q.js/1.4.1/q.min.js"></script> | |
| <style> | |
| html, body { | |
| margin: 0; |
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/env python | |
| import requests | |
| data = { | |
| "user": { | |
| "name": "<take from F12>", | |
| "accessToken": "<take from F12>" | |
| "facebookId": "<take from F12>" | |
| }, |
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
| function calculateMD5Hash(file, bufferSize) { | |
| var def = Q.defer(); | |
| var fileReader = new FileReader(); | |
| var fileSlicer = File.prototype.slice || File.prototype.mozSlice || File.prototype.webkitSlice; | |
| var hashAlgorithm = new SparkMD5(); | |
| var totalParts = Math.ceil(file.size / bufferSize); | |
| var currentPart = 0; | |
| var startTime = new Date().getTime(); |
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 __future__ import unicode_literals | |
| from __future__ import division | |
| import numpy as np | |
| from matplotlib import scale | |
| from matplotlib import pylab | |
| from matplotlib import transforms as mtransforms | |
| from matplotlib.ticker import MultipleLocator | |
| import matplotlib.pyplot as plt |
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
| #include <SPI.h> | |
| #include <Ethernet.h> | |
| byte mac[] = {0x84, 0xF6, 0x9E, 0x23, 0x5E, 0xFF}; | |
| IPAddress ip(192, 168, 90, 248); | |
| EthernetServer server(80); | |
| void setup() { | |
| Serial.begin(9600); |