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 Export Google Music Playlist | |
// @namespace http://ziks.net/ | |
// @version 0.1 | |
// @description Adds a button to export a Google Music playlist | |
// @author Ziks | |
// @match https://play.google.com/music/listen | |
// @require http://code.jquery.com/jquery-latest.js | |
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.min.js | |
// @grant none |
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 Nikkei Scraper | |
// @namespace http://http://teruhisa.github.io// | |
// @version 0.1 | |
// @description scrape news article content and dump it into body. | |
// @author Teruhisa Haruguchi | |
// @match https://gateway.itc.u-tokyo.ac.jp/g3/,DanaInfo=t21.nikkei.co.jp+CMN0F12.do | |
// @match https://t21.nikkei.co.jp/g3/CMN0F12.do | |
// @grant none | |
// ==/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
// ==UserScript== | |
// @name ScreenScraperTemplate | |
// @namespace http://dy-verse.blogspot.com | |
// @include http://page.you.wanna.scrape/path?pageName?pageNumber=* | |
// ==/UserScript== | |
/** | |
* This function is responsible for submitting the data | |
* @param {Object} parsedData | |
* @param {Object} record |
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
$logMessage = sprintf('A %s with email %s has performed %s on %s.', $user->type, $user->email, $action, $subject); |
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
# Hello, and welcome to makefile basics. | |
# | |
# You will learn why `make` is so great, and why, despite its "weird" syntax, | |
# it is actually a highly expressive, efficient, and powerful way to build | |
# programs. | |
# | |
# Once you're done here, go to | |
# http://www.gnu.org/software/make/manual/make.html | |
# to learn SOOOO much more. |
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
$('<div>jQuery is running!</div>') | |
.css({padding: '10px', background: '#ffc', position: 'absolute',top: '0', width: '100%'}) | |
.prependTo('body') | |
.fadeIn('fast') | |
.animate({opacity: 1.0}, 1800) | |
.fadeOut('slow', function() { | |
$(this).remove(); | |
}); |
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
// http://coder-zone.blogspot.fr/2009/05/jquery-bookmarklet.html | |
// Encapsulation | |
(function(){ | |
// Check if jQuery is loaded | |
if(typeof window.jQuery != 'undefined') { | |
message('jQuery already loaded') | |
} else { | |
// Check for conflicts | |
var conflict = typeof window.$ != 'undefined'; | |
// Create the script and point to Google API |
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(){window.open('http://www.delicious.com/save?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)+'&v=5&jump=doclose');})() |
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 new method "format" to the for JavaScrip string object | |
* Example of use : | |
* var styleTpl = "<style>{0} {1}</style>", | |
* style1 = ".hidden {visibility: hidden;}", | |
* style1 = ".rouge {color: red;}"; | |
* styleTpl.format(style1, style2) -> <style>.hidden {visibility: hidden;} .rouge {color: red;}</style> | |
* From : https://github.com/afshinm/Json-to-HTML-Table/blob/master/json-to-table.js | |
*/ | |
String.prototype.format = function() |
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 perl | |
# This work is licensed under the GNU Public License (GPLv3). | |
# To view a copy of this license, visit http://www.gnu.org/copyleft/gpl.html | |
# To read more about this script go to: http://mpcabd.igeex.biz/using-curl-with-proxy-pac-configuration-files/ | |
use strict; | |
use warnings; |