Skip to content

Instantly share code, notes, and snippets.

View kellymears's full-sized avatar

Kelly Mears kellymears

View GitHub Profile
@kellymears
kellymears / actionNetworkScrapeSubmissionCount.js
Last active January 27, 2018 23:15
Need an API key to do a request for form submission count on Action Network. can't expose that client-side. so that leaves us with...
friskSubmissionCount() {
return new Promise((resolve) => {
let ProxyURL = 'https://cors-anywhere.herokuapp.com/',
RequestURL = 'https://actionnetwork.org/forms/your-form-url-here/'
fetch(ProxyURL + RequestURL)
.then(function(response) {
if (!response.ok)
throw Error(response.statusText)
return response
})
@kellymears
kellymears / actionNetworkAxios.js
Last active February 1, 2019 18:32
axios actionNetwork example
let actionNetwork = {
config: {
headers: {
'Content-Type': 'application/json'
}
},
endpoint: 'https://www.actionnetwork.org/api/v2/forms/72312f19-8071-4fed-8bb5-8befefb9cc77/submissions',
data: {
'person': {
'postal_addresses': [{
@kellymears
kellymears / other98-html-email-template-2018.html
Created February 14, 2018 23:15
HTML Email Template for The Other 98%
<!doctype html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Other98 2018 HTML Email Template</title>
<style>
/* -------------------------------------
GLOBAL RESETS
------------------------------------- */
@kellymears
kellymears / π
Last active March 15, 2018 21:56
1 million pieces of pi
3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912983367336244065664308602139494639522473719070217986094370277053921717629317675238467481846766940513200056812714526356082778577134275778960917363717872146844090122495343014654958537105079227968925892354201995611212902196086403441815981362977477130996051870721134999999837297804995105973173281609631859502445945534690830264252230825334468503526193118817101000313783875288658753320838142061717766914730359825349042875546873115956286388235378759375195778185778053217122680661300192787661119590921642019893809525720106548586327
@kellymears
kellymears / action-network-inlined-footer.html
Last active November 22, 2018 19:33
[Inline Email 2018] #html #email
@kellymears
kellymears / keymap.c
Created June 3, 2018 05:12
Personal Keymap for 48 Key Ortholinear
#include "jj40.h"
#include "action_layer.h"
enum jj40_layers {
_QWERTY,
_LOWER,
_RAISE,
_FUNC,
_FPS,
_FPSMETA
@kellymears
kellymears / terms-of-service.md
Last active June 8, 2018 18:32 — forked from zachharkey/terms-of-service.md
Generic Terms of Service

Title: Terms of Service Comment: General terms of site usage

TERMS OF SERVICE

General terms of site usage

OVERVIEW

This website is operated by {{business.name}}. Throughout the site, the terms “we”, “us” and “our” refer to {{business.name}}. {{business.name}} offers this website, including all information, tools and services available from this site to you, the user, conditioned upon your acceptance of all terms, conditions, policies and notices stated here.

@kellymears
kellymears / privacy-policy.md
Last active November 22, 2018 19:30
Generic Privcacy Policy for Advocacy Orgs

Privacy Policy

What information do we collect?

We collect information from you when you register on our site, place an order, subscribe to our newsletter, respond to a survey or fill out a form.

When ordering or registering on our site, as appropriate, you may be asked to enter your: name, e-mail address, mailing address, phone number, credit card information. You may, however, visit our site anonymously. Google, as a third party vendor, uses cookies to serve ads on your site. Google's use of the DART cookie enables it to serve ads to your users based on their visit to your sites and other sites on the Internet. Users may opt out of the use of the DART cookie by visiting the Google ad and content network privacy policy.

What do we use your information for?

@kellymears
kellymears / gmk-laser.less
Last active June 11, 2018 15:32
GMK Laser Colorways
@very-light-gray: #c5c8c6;
@light-gray: #969896;
@dark-gray: #282a2e;
@very-dark-gray: #222222;
@cyan: #23a7b5;
@blue: #28244e;
@purple: #321f7c;
@green: #aad401;
@red: #cd204d;
@kellymears
kellymears / seconds.js
Created July 29, 2018 20:30
Seconds my since my brother stopped using
jQuery(document).ready(function() {
var soberDate = new Date(2016, 07, 28, 0, 0, 0, 0)
var currentDate = new Date()
var soberFor = currentDate.getTime() - soberDate.getTime()
soberFor /= 1000
jQuery('.elementor-counter-number').attr('data-to-value',Math.round(soberFor))
})