This file contains 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
// Run this in the console at https://midi.amitszone.com/LPP_LIGHTSHOW_BUILDER/ | |
// to get it to work with the Launchpad Mini Mk3. It may work with other new | |
// Launchpads, I'm not sure (If it does, comment below, thanks!) | |
(() => { | |
// Create mapping of Launchpad Pro -> Mini Mk3 notes | |
// (This is only the mapping for the 8x8 grid area) | |
const noteMap = {} | |
for (let i = 1; i <= 8; i++) { | |
for (let j = 1; j <= 8; j++) { |
This file contains 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
// Settings: | |
// Tools > Board = "Teensy 4.1" | |
// Tools > USB Type to "MIDI" | |
#include <USBHost_t36.h> // access to USB MIDI devices (plugged into 2nd USB port) | |
// Create the ports for USB devices plugged into Teensy's 2nd USB port (via hubs) | |
USBHost myusb; | |
USBHub hub1(myusb); | |
MIDIDevice midiDevice(myusb); |
This file contains 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 detach - v0.2 - 5/18/2011 | |
* http://benalman.com/ | |
* | |
* Copyright (c) 2011 "Cowboy" Ben Alman | |
* Dual licensed under the MIT and GPL licenses. | |
* http://benalman.com/about/license/ | |
*/ | |
function detach(node, async, fn) { |
This file contains 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
// To give your project a unique name, this code must be | |
// placed into a .c file (its own tab). It can not be in | |
// a .cpp file or your main sketch (the .ino file). | |
#include "usb_names.h" | |
// Edit these lines to create your own name. The length must | |
// match the number of characters in your custom name. | |
#define MIDI_NAME {'C','B',' ','S','u','p','e','r',' ','L','a','u','n','c','h','k','e','y'} |
This file contains 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
<?php | |
## Parse query string. | |
$sb_league = $_GET['league'] ? strtolower( $_GET['league'] ) : 'all'; | |
## Nav data, as a JSON heredoc. Much less verbose than PHP arrays! | |
$navs = json_decode(<<<JSON | |
{ | |
"mlb": { | |
"title_link": "http://stats.boston.com/mlb/scoreboard.asp", |
This file contains 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
-- Copyright (c) 2019 "Cowboy" Ben Alman | |
-- Licensed under the MIT license | |
local frameName = "CB_VENDOR_AUTO_BUY_FRAME" | |
if not _G[frameName] then | |
_G[frameName] = CreateFrame("Frame") | |
_G[frameName]:RegisterEvent("MERCHANT_SHOW") | |
end | |
local function Set(list) |
This file contains 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
// Let's assume we've got a situation where there's going to be a lot of | |
// binding, eg. doSomethingWith(myThing.getProp.bind(myThing)); and we want | |
// to simplify app code by reducing the number of times .bind(myThing) gets | |
// called. | |
var myThing = new Thing("Test"); | |
myThing.getProp() // "Test" | |
myThing.getProp.call(null) // "Test" | |
myThing.setProp("Another Test"); |
This file contains 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
(function(){ console.log( eval('this') ); }.call({a:1})) | |
// Object {a: 1} | |
(function(){ console.log( (0,eval)('this') ); }.call({a:1})) | |
// Window {top: Window, window: Window, location: Location, external: Object, chrome: Object…} |
This file contains 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
/ | |
.7 | |
\ , // | |
|\.--._/|// | |
/\ ) ) ).'/ | |
/( \ // / | |
/( J`((_/ \ | |
/ ) | _\ / | |
/|) \ eJ L |
This file contains 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
MACRO 16777217 "1. Attack" INV_Misc_QuestionMark | |
#showtooltip Hunter's Mark | |
/s0 | |
/click [nocombat] CorkFrame | |
/click DominosActionButton1 | |
/startattack | |
/s1 | |
END | |
MACRO 16777228 "2. Sting" INV_Misc_QuestionMark |