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
// ==UserScript== | |
// @name manneke pis!! | |
// @namespace http://tampermonkey.net/ | |
// @version 1.0 | |
// @description try to take over the canvas! | |
// @author oralekin, LittleEndu, Camscade, Jeted | |
// @match https://hot-potato.reddit.com/embed* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name manneke pis!! | |
// @namespace http://tampermonkey.net/ | |
// @version 0.4 | |
// @description try to take over the canvas! | |
// @author oralekin, LittleEndu, Camscade | |
// @match https://hot-potato.reddit.com/embed* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com | |
// @grant none | |
// ==/UserScript== |
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
let cache = new Set(); | |
let discoverIn = function(obj, keyToFind, previousPath = "") { | |
if(obj === null || typeof obj !== "object") { | |
return; | |
} | |
if (cache.has(obj)) return; | |
cache.add(obj); |
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
/// create an empty BitmapData of the desired Label size | |
_spinLabelData = new BitmapData(120, 60, true, 0x00000000); | |
/// create a Label of the same bounding size with the correct style and text | |
_spinLabel = new Label(_spinLabelData.width, _spinLabelData.height) | |
..text = spinTranslation | |
..style = getDefaultStyle() | |
..align = Align.center | |
..x = _spinLabelData.width/2 |
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
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# basic video conversion | |
ffmpeg -i input.flv output.webm | |
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |
# get frame count (realy simple : show in stdout) | |
ffmpeg -i "a.flv" -f null /dev/null |
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
//--- | |
//------------------------------------------------------------------------------------------------- | |
// Create the very first VideoElement in the dom | |
// It would later be used to know the width and | |
// height of the cloned videoData objects | |
Future<VideoData> load(String url, { | |
bool mp4: true, bool ogg: true, bool webm: true}) { |