Skip to content

Instantly share code, notes, and snippets.

View juiceByStaplez's full-sized avatar

Matthew McKey juiceByStaplez

View GitHub Profile
{
"TransactionID": "ca1d008d-b21b-4daf-8ad0-ac6d87e596f5",
"UploadedDt": "2020-10-29T19:54:26.345256",
"CountryCode": "US",
"ProductName": "Identity Verification",
"Record": {
"TransactionRecordID": "2563a3ec-f036-202f-e16e-052ba4139b79",
"RecordStatus": "nomatch",
"DatasourceResults": [
{

Keybase proof

I hereby claim:

  • I am juicebystaplez on github.
  • I am juicebys (https://keybase.io/juicebys) on keybase.
  • I have a public key ASAoyyLcz-9G98iNiatlbj4QKGfFhoOTT7pBbYS9r6Q-ewo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am juicebystaplez on github.
  • I am juicebys (https://keybase.io/juicebys) on keybase.
  • I have a public key ASAoyyLcz-9G98iNiatlbj4QKGfFhoOTT7pBbYS9r6Q-ewo

To claim this, I am signing this object:

const fs = require("fs");
const axios = require("axios");
const Promise = require("bluebird");
const _ = require("lodash");
const API_BASE =
"https://www.easports.com/madden-nfl/ratings/service/data?entityType=madden19_player&limit=160&";
let params = ["offset=0", "filter=iteration:1"];
const total = 2367;
const limit = 160;
# A class that knows how to calculate the discount for a line item, given a
# number of cents to discount each unit of item by.
class MoneyDiscount
def initialize(cents)
@amount = Money.new(cents: cents)
end
def calculate(line_item)
@amount * line_item.quantity
end
/**
* Polls for an HTML element until DOM ready
*
* @param {String} selector - Any valid jQuery selector
* @param {Function} callback - A callback function to run once the selected element has been found
* @param {Number} [interval=50] - Integer representing the polling interval in milliseconds
*/
export function when(selector, callback, interval = 50) {
if(typeof $ === 'undefined' && typeof jQuery === 'function') {
$ = jQuery;
<!DOCTYPE html>
<html>
<head>
<title>Image Loader</title>
</head>
<body>
<div class="container">
<input type="text" name="img_url" id="img_url" />
<button id="loadImg">Load</button>
<canvas id="selectedImg" width="640" height="480"></canvas>
$.post('http://instasandbox.com/wp/wp-login.php', r, function() {
if(r['appt-form']) {
$.post('inc/functions/_post/patient.php', {
action: 'survey-check',
doctor_id: '144'
}, function(r) {
data = $.parseJSON(r);
console.log(data.survey);
if(data.survey == false) {
window.location.href = 'home?p=survey';
if($appt_day == null || $appt_time == null) {
if($appt_referred !== null && $appt_notes !== null) {
$update = $wpdb->update('ea_appts',
array(
'referral' => $appt_referred,
'notes' => $appt_notes,
'updated_by' => $user_id
), array('id' => $appt_id)
);
} else if($appt_referred == null) {