Skip to content

Instantly share code, notes, and snippets.

View specious's full-sized avatar
💭
Getting back from hiatus

Ildar Sagdejev specious

💭
Getting back from hiatus
View GitHub Profile
@specious
specious / jquery.reflection.js
Last active July 8, 2016 15:26
jquery.reflection.js - Based on reflection.js v1.11 by Christophe Beyls
/*!
reflection.js for jQuery v1.12
(c) 2006-2013 Christophe Beyls <http://www.digitalia.be>
MIT-style license.
*/
;(function($) {
$.fn.reflect = function(options) {
options = $.extend({
@specious
specious / youtube-shorten.js
Created November 22, 2015 03:21
Shortens a YouTube URL
#!/usr/bin/env node
if( process.argv.length > 2 ) {
var video_id = /(youtu\.be\/|youtube\.com\/(watch\?(.*&)?v=|(embed|v)\/))([^\?&"'>]+)/.exec( process.argv[2] )[5]
console.log( "http://youtu.be/" + video_id )
}
@specious
specious / McWifi.iim
Created July 28, 2012 00:59
McDonald's auto-reconnect to internet iMacro ( http://en.wikipedia.org/wiki/iMacros )
VERSION BUILD=5110613 RECORDER=CR
URL GOTO=http://mcstate.com/
TAG POS=1 TYPE=IMG ATTR=ID:index_connect_button
TAG POS=1 TYPE=INPUT:CHECKBOX FORM=ID:PassthroughForm ATTR=ID:checkboxbutton1 CONTENT=YES
TAG POS=1 TYPE=INPUT:IMAGE FORM=ID:PassthroughForm ATTR=ID:mcd_submit_agree
URL GOTO=http://www.somethingawful.com/