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
/** | |
* @author Rob W <gwnRob@gmail.com> | |
* @website http://stackoverflow.com/a/7513356/938089 | |
* @version 20120724 | |
* @description Executes function on a framed YouTube video (see website link) | |
* For a full list of possible functions, see: | |
* https://developers.google.com/youtube/js_api_reference | |
* @param String frame_id The id of (the div containing) the frame | |
* @param String func Desired function to call, eg. "playVideo" | |
* (Function) Function to call when the player is ready. |
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
env = (function() { | |
var flags = {}, ua = navigator.userAgent, el = document.createElement('div'), video = document.createElement('video'), audio = document.createElement('audio'), root = document.documentElement, i | |
function flag(names) { | |
names = names.split(' ') | |
for (i = 0; i < names.length; i++) | |
flags[names[i]] = true | |
} | |
function classnames() { | |
var names = [], name | |
for(name in flags) if (flags.hasOwnProperty(name)) |
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 | |
# This is a really simple implementation of ELA as described in | |
# http://blackhat.com/presentations/bh-dc-08/Krawetz/Whitepaper/bh-dc-08-krawetz-WP.pdf | |
# You shouldn't actually use it, or at least read the paper carefully | |
# and implement more of the techniques before drawing any conclusions. | |
from PIL import Image, ImageChops, ImageEnhance | |
import sys, os.path |
NewerOlder