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
// ==UserScript== | |
// @name Permission to Leave | |
// @namespace permission.to.leave | |
// @description Prompts before leaving the page. Good for OS X users who press Cmd+Left while editing text to go to the start of the line, only to find the browser goes back a page instead. | |
// @version 1.0 | |
// @grant none | |
// @include http://edit.script.and | |
// @include https://add.target.sites.here | |
// @include https://twitter.com | |
// ==/UserScript== |
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
diff -ruw a2/arduino-1.6.9/hardware/teensy/avr/boards.txt arduino-1.6.9/hardware/teensy/avr/boards.txt | |
--- a2/arduino-1.6.9/hardware/teensy/avr/boards.txt Tue Aug 9 20:50:12 2016 | |
+++ arduino-1.6.9/hardware/teensy/avr/boards.txt Mon Aug 8 05:20:42 2016 | |
@@ -65,6 +65,9 @@ | |
teensy31.menu.usb.flightsimjoystick=Flight Sim Controls + Joystick | |
teensy31.menu.usb.flightsimjoystick.build.usbtype=USB_FLIGHTSIM_JOYSTICK | |
teensy31.menu.usb.flightsimjoystick.fake_serial=teensy_gateway | |
+teensy31.menu.usb.xinput=[MSF] Shoryuken! (XINPUT DEVICE) | |
+teensy31.menu.usb.xinput.build.usbtype=USB_XINPUT | |
+teensy31.menu.usb.xinput.fake_serial=teensy_gateway |
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
/* | |
Highlights in red, shrinks text, converts text to grey, and adds "NOT FOLLOWING" before username. | |
The user ID used here is for @POTUS, which will one day become @POTUS45. | |
Designed to help highlight tweets forced into your timeline by Twitter. Narrow execution. | |
*/ | |
@-moz-document domain('twitter.com') { | |
.tweet[data-user-id="822215679726100480"][data-you-follow=false] { | |
background-color: #FDD; | |
color: grey; |
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
--- a/UnityMidiReceiver/UnityMidiReceiver.cpp | |
+++ b/UnityMidiReceiver/UnityMidiReceiver.cpp | |
@@ -37,6 +37,7 @@ namespace | |
// MIDI device handle vector. | |
std::vector<HMIDIIN> handles; | |
+ std::vector<HMIDIOUT> outDeviceHandles; | |
// Incoming MIDI message queue. | |
std::queue<Message> messageQueue; |
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
var tls = require('tls'); | |
var constants = require('constants'); | |
// Disable client session renegotiation, no known use case per: | |
// https://www.ssllabs.com/downloads/SSL_TLS_Deployment_Best_Practices_1.3.pdf | |
// By virtue of require() caching, this will affect all code using `tls`. | |
tls.CLIENT_RENEG_LIMIT = 0; | |
// Based on whitelist proposed at: https://bugs.ruby-lang.org/issues/9424 | |
// And SSL/TLS Best Practices: https://www.ssllabs.com/downloads/SSL_TLS_Deployment_Best_Practices_1.3.pdf |
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
/* | |
html-annotate-filenames | |
Webpack loader that surrounds generated HTML blocks with comments noting the | |
original source filename for the block. | |
To use, modify your webpack config with a `resolveLoader` that can find this | |
file and a rule for this loader. Example: | |
{ |
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
/* | |
************************************************************************ | |
THIS GIST IS OUTDATED | |
There's a new version published in the bitsy-hacks repo, which changes | |
syntax to use parentheses instead of curly braces so the editor | |
doesn't eat your function calls! Go check out the new script and see | |
all the new stuff in the header comments. | |
bitsy-hacks repo at: https://github.com/seleb/bitsy-hacks |
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
/* | |
************************************************************************ | |
THIS GIST IS OUTDATED | |
There's a new version published in the bitsy-hacks repo, which fixes | |
some bugs. Go get it instead! | |
Direct link to the external game data mod: | |
https://raw.githubusercontent.com/seleb/bitsy-hacks/master/external-game-data.js |
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
/* Operator logic is at the bottom of this script; need to declare the toolkit first. */ | |
/* | |
================================ | |
SCRIPT HOOKS TOOLKIT (@mildmojo) | |
================================ | |
HOW TO USE: | |
1. Paste this whole file in script tags at the bottom of your Bitsy | |
exported game HTML, after the last /script> tag. |
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
'use strict'; | |
const exec = require('child_process').exec; | |
// Quick shortcut for shortcomings in `gulp.task` API: | |
// 1. `gulp.task` doesn't accept a description, has to be a prop on the function. | |
// 2. Since description has to be on the task function, it's harder to add a | |
// description to tasks whose functions were created by a helper (e.g. | |
// `gulp.series` or `gulp.parallel`) since you didn't define the functions | |
// they return. | |
function gulpTask(name, desc, fn) { |