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
#!/usr/bin/env python | |
# Source: http://code.activestate.com/recipes/325905-memoize-decorator-with-timeout/#c1 | |
import time | |
class MWT(object): | |
"""Memoize With Timeout""" | |
_caches = {} | |
_timeouts = {} |
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
/* Based on https://gist.github.com/rishabhmhjn/7028079 */ | |
function HashtagLinky($filter, $sce) { | |
'ngInject' | |
return function(text, target) { | |
if (!text) return text; | |
var replacedText = $filter('linky')(text, target); | |
var targetAttr = ""; | |
if (angular.isDefined(target)) { |
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 Dockerfile | |
FROM hello-world |
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
#ifndef _WIN32_WINNT | |
# define _WIN32_WINNT 0x500 | |
#endif | |
#include "Winuser.h" | |
#include "windef.h" | |
class ofxMouse | |
{ | |
public: | |
static enum MouseEventFlags |
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
/* | |
Simple WhatsApp Web Spam Bot Originally written by Pablode. Modified by Gal Bracha. | |
Use with love <3. Do not act reckless. | |
==================================================================================== | |
DISCLAIMER: I do not take any responsibility for any damage caused with this script. | |
WhatsApp might be able identify script users if this becomes a problem. Do only use | |
this if you are aware of the consquences. | |
==================================================================================== | |
Usage: Copy all of this script (Ctrl+A, Ctrl+C). Add a new Bookmark. In the URL section, | |
write "javascript:" and paste (Ctrl+V) this script. Visit WhatsApp Web, select your |
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
''' people export''' | |
import hashlib | |
import time | |
import urllib #for url encoding | |
import urllib2 #for sending requests | |
import base64 | |
import sys | |
import csv |