Skip to content

Instantly share code, notes, and snippets.

@ryanj
ryanj / gist_io_test.md
Created July 25, 2012 23:21
Testing Gist.io

A simple post powered by GitHub Gists and Gist.io

This is a paragraph that includes links to Gist.io, and gist.github.com. I wonder if there is a javascript lib that would allow me to host my posts via github pages?

Maybe I should build one using this or this?

Here are some additional docs for fitzgen's lib. Looks like it might be the best option...

Examples:

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 26, 2024 20:13
Complete Recent Discord Quest

Complete Recent Discord Quest

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
  2. Join a vc
  3. Stream any window (can be notepad or something)
  4. Press Ctrl+Shift+I to open DevTools
  5. Go to the Console tab
  6. Paste the following code and hit enter:
let wpRequire;
@wpsmith
wpsmith / adobe-licenses.vbs
Last active April 26, 2024 20:12
VBS: Get All Adobe License Keys
'Modified by Travis Smith (wpsmith.net) to fetch all Adobe licenses.
'Written by Ryan Williams (ryan@ryadical.com), I am not a programmer so please excuse the messy code
'Now to give credit where credit is due:
'Cipher code converted from Sam Gleske's javascript found at: http://www.pages.drexel.edu/~sag47/adobe/
'His code was Converted from the source for "Enchanted Keyfinder"
'original algorithm by Dave Hope (http://www.davehope.co.uk)
'To run this program make sure that sqlite3.exe is in the same folder as this vbs file.
'SQLITE3 source and binaries can be found at www.sqlite.org
var fibonacci = function () {
var memo = [0, 1];
var fib = function (n) {
var result = memo[n];
if (typeof result !== 'number') {
result = fib(n-1) + fib(n-2);
memo[n] = result;
}
return result;
}
function quote(fn) {
return typeof(fn.name) === "string" ?
fn.name :
fn.toString()
.replace("function ", "")
.replace(/\([\s\S]*/, "");
}
function funCall(fn) {
var args = Array.prototype.slice.call(arguments, 1),
div = function () {
var args = Array.prototype.slice.call(arguments, 0);
var attrs = {};
var txt = args.map(function (arg) {
if (typeof arg === "string") {
return arg;
} else {
for (attr in arg) {
attrs[attr] = arg[attr];
}
// Based on Nicholas C Zakas' function in High Performance Javascript
function batchProcess(items, process, callback) {
// Create a copy of the original items array so that our side effects
// (calling .shift()) don't pollute anything outside of this scope.
var todo = items.slice(0);
setTimeout(function () {
var start = +new Date, result = true;
> (function (arg) { return arg === undefined; }()) // Missing arguments are undefined
true
> var items = []
undefined
> items.push() // Pushing implicitly undefined item doesn't work
0
> items
[]
> items.push(undefined) // What about explicitly pushing undefined?
1
var
test = test || null,
ok = ok || null,
deepEqual = deepEqual || null,
assert = null;
// If we are not running in Qunit in the browser, create a shim from the Qunit API
// to the CommonJS API.
if (typeof exports !== "undefined") {
assert = require("assert");