Skip to content

Instantly share code, notes, and snippets.

View Bigspencey's full-sized avatar

Spencer Smitherman Bigspencey

View GitHub Profile
@Bigspencey
Bigspencey / gist:ca74bc89fa446be0143a
Created March 6, 2015 22:44
Scroll Depth Custom Event Firing
// Variables to prevent continuous firing of custom events
var scrollTwentyFive = true;
var scrollFifty = true;
var scrollSeventyFive = true;
var scrollOneHundred = true;
// Create the scrollPercentage
$(window).bind('scroll', function() {
window.scrollPercent = ($(window).scrollTop() / ($(document).height()-$(window).height())) * 100;
{
"id": 2298738049164,
"created_at": "2020-06-26T18:54:13.000Z",
"updated_at": "2020-07-01T02:50:03.000Z",
"email": "customer@example.com",
"contact_email": "customer@example.com",
"name": "#74063",
"order_number": 74063,
"token": "9a9c8b70f5415544cd88cdf17df6fdad",
"tags": "returnly_repurchase, Riskified::approved, Riskified::submitted",
@Bigspencey
Bigspencey / shopify-order-exchange.json
Created August 5, 2020 23:23
Exchange order example
{
"id": 2298133479564,
"created_at": "2020-06-25T22:10:37.000Z",
"updated_at": "2020-07-01T02:50:01.000Z",
"email": "customer@example.com",
"contact_email": "customer@example.com",
"name": "#73941",
"order_number": 73941,
"token": "839a2c37d767ef5db6babb3b578ef920",
"tags": "returnly_exchange, Riskified::approved, Riskified::submitted",
@Bigspencey
Bigspencey / pre-fill-form.js
Created August 5, 2020 23:19
Pre-Fill the Returnly Landing page form via Query Parameters
if (window.location.search.indexOf("order_id") !== -1) {
var queryParams = new URLSearchParams(window.location.search);
$("input[name=order_id]").val(queryParams.get('order_id'));
$("input[name=shipping_zip]").val(queryParams.get('shipping_zip'));
}
@Bigspencey
Bigspencey / jquery_example.html
Last active January 1, 2016 06:29 — forked from dbc-challenges/jquery_example.html
Intro to jQuery for Phase 0
<!DOCTYPE html>
<html>
<head>
<title>DOM manipulation with jQuery</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="jquery_example.js"></script>
</head>
<body>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title> Spencer Smitherman: Fun Extraordinaire</title>
<link rel="stylesheet" type="text/css" href="css/normalize.css" media="screen">
<link rel="stylesheet" type="text/css" href="project.css" media="screen">
</head>
<body>
<h1>Spencer W. Smitherman</h1>

Include an inline screenshot of your codeschool's points from the profile page:

QUIZ

Explain which tabs support the following actions and how.

Realtime editing of HTML and CSS Javascript Debugging Performance Optimization What's the quick key for your OS to spawn the Dev Tools inspector?

Include an inline screenshot of your codeschool's points from the profile page:

QUIZ

Explain which tabs support the following actions and how.

Realtime editing of HTML and CSS Javascript Debugging Performance Optimization What's the quick key for your OS to spawn the Dev Tools inspector?

Include an inline screenshot of your codeschool's points from the profile page:

QUIZ

Explain which tabs support the following actions and how.

Realtime editing of HTML and CSS Javascript Debugging Performance Optimization What's the quick key for your OS to spawn the Dev Tools inspector?

@Bigspencey
Bigspencey / file.js
Last active December 31, 2015 07:08
/*
In this challenge you will be creating a series of variables.
The values of the variables will be different types of JavaScript
objects.
Below you will find driver code. Run the code in this file either
from the command line using Node.js or by pasting the code of this
entire file into your browser console. All tests will log 'true'
in the console when they pass--false, otherwise.