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
| // | |
| // Create a PDF by merging values from a Google spreadsheet into a Google Doc | |
| // ========================================================================== | |
| // | |
| // Demo GSheet & script - http://bit.ly/createPDF | |
| // Demo GDoc template - 1QnWfeGrZ-86zY_Z7gPwbLoEx-m9YreFb7fc9XPWkwDw | |
| // | |
| // Config | |
| // ====== |
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
| /* NEW BSD LICENSE {{{ | |
| Copyright (c) 2014, anekos. | |
| All rights reserved. | |
| Redistribution and use in source and binary forms, with or without modification, | |
| are permitted provided that the following conditions are met: | |
| 1. Redistributions of source code must retain the above copyright notice, | |
| this list of conditions and the following disclaimer. | |
| 2. Redistributions in binary form must reproduce the above copyright notice, |
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
| // iMacro CheatSheet - Command Reference | |
| // http://wiki.imacros.net/Command_Reference | |
| // iMacros supports 3 types of variables: | |
| // * The macro variables !VAR0 thru !VAR9. They can be used with the SET and ADD command inside a macro. | |
| // * Built-in variables. They contain certain values set by iMacros. | |
| // * User-defined variables. They are defined in-macro using the SET command. | |
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
| // Date Object CheatSheet | |
| // The Date object is used to work with dates and times. | |
| // More: http://www.w3schools.com/jsref/jsref_obj_date.asp | |
| // 1. Instantiating a Date. | |
| var date = new Date(); | |
| var date = new Date(milliseconds); |
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
| // ==UserScript== | |
| // @name GM_download emulation | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description emulate GM_download functionality | |
| // @require https://github.com/eligrey/FileSaver.js/raw/master/FileSaver.js | |
| // @match http://tampermonkey.net/empty.html | |
| // @grant GM_xmlhttpRequest | |
| // @copyright 2014, Jan Biniok | |
| // ==/UserScript== |
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
| adclick.g.doubleclick.net, addthis.com, adgardener.com, adnxs.com, ads.pointroll.com, ads.shorttail.net, apture.com, bop.fm, cdn.taboolasyndication.com, chartbeat.com, chartbeat.net, d1.openx.org, doubleclick.net, doubleverify.com, exitjunction.com, fyre.co, getconnected.southwestwi-fi.com, googleadservices.com, gravity.com, grvcdn.com, imrworldwide.com, intellitxt.com, jetpackdigital.com, kontera.com, livefyre.com, luminate.com, meebo.com, moovmanage.com, outbrain.com, parsely.com, po.st, pointroll.com, pubmatic.com, quantserve.com, s.ppjol.net, scorecardresearch.com, serving-sys.com, sharethis.com, snap.com, superclick.com, taboola.com, taboolasyndication.com, tynt.com, wibiya.com, zergnet.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
| --[[ | |
| This is a Proof Of Concept of a feature I miss in VLC: "stop after this track" | |
| This is my first time hacking VLC, so I have some questions: | |
| 1) Is "descriptor().description" useful? (I can't find how it is used by VLC) | |
| 2) When is "meta_changed()" called and what is it supposed to return? | |
| 3) Is there a VLC Lua API's documentation? (I read https://www.videolan.org/developers/vlc/share/lua/README.txt but I had to pick up some stuff from existing extensions on GitHub to get this done) | |
| 4) Is there a "standard" way to handle localization? | |
| 5) Is it possible to add an entry to the tray icon's context menu? (How?) |
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
| {-# LANGUAGE OverloadedStrings #-} | |
| module Main (main) where | |
| import Control.Applicative ((<$>)) | |
| import Data.List | |
| import Data.Maybe (mapMaybe) | |
| import Data.Word (Word) | |
| import Data.Char (isSpace) |
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 sh | |
| # Download lists, unpack and filter, write to gzipped file | |
| curl -s https://www.iblocklist.com/lists.php \ | |
| | grep -A 2 Bluetack \ | |
| | sed -n "s/.*value='\(http:.*\)'.*/\1/p" \ | |
| | xargs wget -O - \ | |
| | gunzip \ | |
| | egrep -v '^#' \ | |
| | gzip - > bt_blocklist.gz |
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
| javascript:(function(){var hostnameComponents = (window.location.hostname).split('.');var pathnameComponents = (window.location.pathname).split('/');if (hostnameComponents[1] == "m") {var lang = hostnameComponents[0];var domain = hostnameComponents[2];var article = pathnameComponents[2];} else {var lang = hostnameComponents[0];var domain = hostnameComponents[1];var article = pathnameComponents[2];}if (lang !== '' && article !== '' && domain === 'wikipedia') {window.open('dasReferenz://' + lang + '/' + article);} else {alert ('This does not seem to be a Wikipedia page you\'re currently looking at.');}})(); |