Skip to content

Instantly share code, notes, and snippets.

View m0rsecode's full-sized avatar

Brett Morse m0rsecode

View GitHub Profile
{
"data":[
{
"AccountRef.value":"5471034769597 - Elevated Equipment",
"Contact.Address.AddressLine1.value":"2645 Vistamont way",
"Contact.Address.AddressLine2.value":"NaN",
"Contact.Address.City.value":"Chico",
"Contact.Address.Country.value":"US",
"Contact.Address.PostalCode.value":"95973",
"Contact.Address.State.value":"CA",
function decipherThis(str) {
const alphabet = ['a', 'b', 'c', 'd','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z']
const index = alphabet.reduce((acc, letter) => {
const uppercase = letter.toUpperCase()
acc[letter.charCodeAt(0)] = letter
acc[uppercase.charCodeAt(0)] = uppercase
return acc
}, {})
function startTimer(duration, display) {
var timer = duration, minutes, seconds;
setInterval(function () {
minutes = parseInt(timer / 60, 10);
seconds = parseInt(timer % 60, 10);
minutes = minutes < 10 ? "0" + minutes : minutes;
seconds = seconds < 10 ? "0" + seconds : seconds;
display.textContent = minutes + ":" + seconds;
{
"qb": [
"17111-21939",
"17111-22015",
"17111-14185"
],
"rb": [
"17111-6899",
"17111-28095",
"17111-6733"
{
"qb": [
"17026-6498",
"17026-6616",
"17026-6504",
"17026-29358",
"17026-7968",
"17026-45859",
"17026-6826"
],
{
"qb": [
"16867-6748",
"16867-6589",
"16867-31716"
],
"rb": [
"16867-62497",
"16867-38791",
"16867-28181",
// Sample Players Input
// Returns 154 Eligible Lineups (Without any superlocks)
{
"qb": [
"16867-6748",
"16867-6589"
],
"rb": [
"16867-62497",
// jQuery Mask Plugin v1.14.0
// github.com/igorescobar/jQuery-Mask-Plugin
(function(b){"function"===typeof define&&define.amd?define(["jquery"],b):"object"===typeof exports?module.exports=b(require("jquery")):b(jQuery||Zepto)})(function(b){var y=function(a,e,d){var c={invalid:[],getCaret:function(){try{var r,b=0,e=a.get(0),d=document.selection,f=e.selectionStart;if(d&&-1===navigator.appVersion.indexOf("MSIE 10"))r=d.createRange(),r.moveStart("character",-c.val().length),b=r.text.length;else if(f||"0"===f)b=f;return b}catch(g){}},setCaret:function(r){try{if(a.is(":focus")){var c,
b=a.get(0);b.setSelectionRange?(b.focus(),b.setSelectionRange(r,r)):(c=b.createTextRange(),c.collapse(!0),c.moveEnd("character",r),c.moveStart("character",r),c.select())}}catch(e){}},events:function(){a.on("keydown.mask",function(c){a.data("mask-keycode",c.keyCode||c.which)}).on(b.jMaskGlobals.useInput?"input.mask":"keyup.mask",c.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){a.keydown().keyup()},100)}).on("cha
jQuery(document).ready(function($){
console.log("CHEESE-ITZ");
$('#txtPhone').on('input', function(e) {
if (validatePhone('txtPhone')) {
$('#txtSubmit').prop('disabled', false);
}
else {
$('#txtSubmit').prop('disabled', true);
/* @flow */
'use strict';
var mode = require('art/modes/svg')
var React = require('react-native');
var Art = require('ReactNativeART');
var {
Surface,