Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

/*
* Edited by Robert Woodruff 2021
* From the USBFTDILoopback.ino example provided with the USB Host Shield 2.0 library
* https://github.com/felis/USB_Host_Shield_2.0
* Released under GNU General Public License
*
* This example will check the UART receive buffer once every program loop
* If data is available, one byte will be read in and sent to the MAX3421E
*
* The MAX3421E USB receive buffer will be checked once every program loop
/*Copyright (c), 2011 Sanford, L.P. All Rights Reserved.*/(function() {var n,aa=aa||{},p=this;p.Aa=!0;function q(){}
function ba(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ca(a){return"array"==ba(a)}function da(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length}function t(a){return"string"==typeof a}function ea(a){return"number"==typeof a}function u(a){return"function"==ba(a)}var fa="closure_uid_"+(1E9*Math.random()>>>0),ga=0;functio
## See the default craftbukkit.jar.conf for a detailed documentation of the
## format of this file.
[config]
name = SpongeVanilla0
source = https://repo.spongepowered.org/maven/org/spongepowered/spongevanilla/1.10.2-5.2.0-BETA-403/spongevanilla-1.10.2-5.2.0-BETA-403.jar
configSource = https://gist.githubusercontent.com/rwoodr/cbb6f5ae4e5ee4fcd2958c8cbeef67c2/raw/spongevanilla0.jar.conf
[encoding]
#encode = system
#decode = system
## See the default craftbukkit.jar.conf for a detailed documentation of the
## format of this file.
[config]
name = SpongeVanilla
source = https://repo.spongepowered.org/maven/org/spongepowered/spongevanilla/1.12.2-7.1.0-BETA-33/spongevanilla-1.12.2-7.1.0-BETA-33.jar
configSource = https://gist.githubusercontent.com/rwoodr/89427a02ecdd9a1a06ca8b9237d153a7/raw/spongevanilla.jar.conf
[encoding]
#encode = system
#decode = system
@rwoodr
rwoodr / DYMO.Label.Framework.2.0.2.js
Created March 8, 2016 23:53
DYMO Label Framework 2.0.2
/*Copyright (c), 2011 Sanford, L.P. All Rights Reserved.*/(function() {var l,aa=aa||{},n=this;n.Aa=!0;function p(){}
function ba(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function ca(a){return"array"==ba(a)}function da(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length}function q(a){return"string"==typeof a}function ea(a){return"number"==typeof a}function t(a){return"function"==ba(a)}var fa="closure_uid_"+(1E9*Math.random()>>>0),ga=0;functio
@rwoodr
rwoodr / Text input for integers and-or floats
Created February 28, 2015 00:35
jQuery to allow only integers or floats in text input
//Select text inputs in container
//Highlight input text on focus
//Allow certain keys
$("#container-id input:text")
.focus(function() {$(this).select();})
.mouseup(function(e) {e.preventDefault();})
.keydown(function (e) {
//Allow: backspace, delete, tab, escape, enter, (decimal) and (period)
//Only one '.' allowed
//Adding data-nofloat='1' to element will disabled '.' for that input