Skip to content

Instantly share code, notes, and snippets.

View ronsims2's full-sized avatar
🏀
Ballin'

Ron Sims II ronsims2

🏀
Ballin'
View GitHub Profile
function remindify() {
var ss = SpreadsheetApp.openById('my-google-sheet-id');
var sheet = ss.getSheets()[0];
var cols = sheet.getMaxColumns();
var rows = sheet.getMaxRows();
var range = sheet.getRange(1,1, rows, cols);
var values = range.getValues();
var to = '[email protected]';
var now = new Date();
var A_DAY_MS = 43200000;
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>title</title>
<script>
window.orgMapJustice = {};
if (navigator.userAgent.match(/MSIE/)) {
window.orgMapJustice.isIE = true;
}
@ronsims2
ronsims2 / channellive.json
Created September 27, 2017 17:05
Rapidio sample file.
{"feeds": [
"https://cms.marketplace.org/rss/collections/itunes_video/512",
"https://www.npr.org/rss/podcast.php?id=510308",
"http://www.tv.rsims2.com/rsims2feed.xml"
]}
@ronsims2
ronsims2 / btree2.py
Last active May 31, 2017 02:16
Binary Tree V2
class btree:
def __init__(self, h):
self.height = h
self.node_count = btree.calc_node_count(h)
self.head = None
self.index = 1
self.found = []
@staticmethod
def get_midpoints(x, y):
@ronsims2
ronsims2 / btree.py
Created May 30, 2017 11:14
Python Binary Tree
import math
import multiprocess as mp
class btree:
def __init__(self, height):
self.hieght = height
self.node_values = btree.calc_node_values(height)
self.index = 1
self.head = None
self.build()
@ronsims2
ronsims2 / index.html
Last active May 8, 2017 17:56
A bingo card for the workplace
<!doctype html>
<html>
<head>
<link href="https://rawgit.com/orangemantis/9211f856fdcfabb27ae7908b6390cbda/raw/styles.css" rel="stylesheet" media="screen"/>
</head>
<body>
<h1>Hello World</h1>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://rawgit.com/orangemantis/9211f856fdcfabb27ae7908b6390cbda/raw/index.js"></script>
</body>
@ronsims2
ronsims2 / jax.js
Last active March 26, 2017 20:00
AJAX Help for Dark Sky lesson and more
(function(w, d, $) {
var jax = function() {
}
jax.prototype.getTimeStamp = function(d) { //format 03/25/2017
var dateString = '';
date = d.split('/');
var month = parseInt(date[0]) - 1;
var dt = parseInt(date[1]);
@ronsims2
ronsims2 / plomni.js
Last active March 22, 2017 14:11
D3 v4 dependent object for quick chart creation.
(function() {
var chart = function(config) {
this.svg = null;
this.g = null;
this.colors = config.colors || ['crimson', 'coral', 'yellow', 'seagreen', 'skyblue', 'violet', 'mediumorchid'];
this.height = config.height || 300;
this.width = config.width || 400;
this.marginTop = config.marginTop || 50;
this.marginBottom = config.marginBottom || 50;
this.marginLeft = config.marginLeft || 50;
@ronsims2
ronsims2 / sample-data.csv
Last active April 7, 2017 18:41
Sampel data for the educational graphing library
date data_loud_talking data_loutering data_horseplay
03-17-2017 42 65 79
03-18-2017 39 13 103
03-19-2017 78 2 -5
03-20-2017 12 96 22
03-21-2017 5 11 7
03-22-2017 99 5 7
03-23-2017 10 70 9
03-24-2017 33 51 40
03-25-2017 32 22 62
@ronsims2
ronsims2 / fiore.js
Last active March 13, 2017 02:29
A helper program for using the College Scorecard API https://collegescorecard.ed.gov/data/documentation/
import $ from 'jquery';
class fiore {
constructor(apkiKey, url) {
this.apiKey = apiKey;
this.url = url;
this.schoolName = '';
this.school = null;
}