Skip to content

Instantly share code, notes, and snippets.

@voidfiles
voidfiles / js_hint_conf.js
Created December 17, 2011 08:21
JSHint conf options
{
// Settings
"passfail" : false, // Stop on first error.
"maxerr" : 10000, // Maximum error before stopping.
// Predefined globals whom JSHint will ignore.
"browser" : true, // Standard browser globals e.g. `window`, `document`.
"node" : false,
@voidfiles
voidfiles / jquery.ui.draggable.js
Created December 17, 2011 07:08
ussing css3 transitions to do jquery draggable
/*
* jQuery UI Draggable @VERSION
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Draggables
*
* Depends:
@voidfiles
voidfiles / edits.md
Created December 14, 2011 22:10
Edits
layout title author categories
post
Flickr's Asynchronous Script Loading Part 2
Alex Kessinger
events
dom
code-review
flickr-async
@voidfiles
voidfiles / gist:2860137
Created June 2, 2012 22:06
Get Pocket Bookmarklet
// The Bookmarklet
javascript: (function() %
7BISRIL_H = '8e7a';
PKT_D = 'getpocket.com';
ISRIL_SCRIPT = document.createElement('SCRIPT');
ISRIL_SCRIPT.type = 'text/javascript';
ISRIL_SCRIPT.src = 'http://' + PKT_D + '/b/r.js';
document.getElementsByTagName('head') % 5B0 % 5D.appendChild(ISRIL_SCRIPT) % 7D)();
@rvrsh3ll
rvrsh3ll / windows-keys.md
Created February 18, 2024 22:44
Windows Product Keys

NOTE

These are NOT product / license keys that are valid for Windows activation.
These keys only select the edition of Windows to install during setup, but they do not activate or license the installation.

Index

/*
MIT License
Copyright (c) 2024 Florian Dreschel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@voidfiles
voidfiles / gist:2859725
Created June 2, 2012 19:43
Pinterest's Bookmarklet as of June 2, 2010
// The bookmarklet portion
javascript: void((function() {
var e = document.createElement('script');
e.setAttribute('type', 'text/javascript');
e.setAttribute('charset', 'UTF-8');
e.setAttribute('src', 'http://assets.pinterest.com/js/pinmarklet.js?r=' + Math.random() * 99999999);
document.body.appendChild(e)
})());
// The code that gets loaded in
@voidfiles
voidfiles / gist:2859704
Created June 2, 2012 19:38
Instapaper's Bookmarklet as of June 2, 2010
// Bookmarklet portion
javascript: function iprl5() {
var d = document,
z = d.createElement('scr' + 'ipt'),
b = d.body,
l = d.location;
try {
if (!b) throw (0);
@voidfiles
voidfiles / gist:2860165
Created June 2, 2012 22:11
Findings Bookmarklet
javascript: e = document.createElement('script');
e.setAttribute('type', 'text/javascript');
e.setAttribute('src', '//findings.com/bookmarklet/loader');
document.body.appendChild(e);
void(0);
(function(window, undefined) {
var date = new Date();
window.FDGS = window.FDGS || {
@voidfiles
voidfiles / tumblr_bookmarklet
Created June 2, 2012 22:28
Tumblr's Bookmarklet
javascript: var d = document,
w = window,
e = w.getSelection,
k = d.getSelection,
x = d.selection,
s = (e ? e() : (k) ? k() : (x ? x.createRange().text: 0)),
f = 'http://www.tumblr.com/share',
l = d.location,
e = encodeURIComponent,
p = '?v=3&u=' + e(l.href) + '&t=' + e(d.title) + '&s=' + e(s),