Skip to content

Instantly share code, notes, and snippets.

View ronsims2's full-sized avatar
🏀
Ballin'

Ron Sims II ronsims2

🏀
Ballin'
View GitHub Profile
@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;
}
@ronsims2
ronsims2 / data.csv
Created February 3, 2017 20:48
sample d3 data
date close
1-May-12 58.13
30-Apr-12 53.98
27-Apr-12 67.00
26-Apr-12 89.70
25-Apr-12 99.00
24-Apr-12 130.28
23-Apr-12 166.70
20-Apr-12 234.98
19-Apr-12 345.44
@ronsims2
ronsims2 / index.html
Created December 25, 2016 02:42 — forked from anonymous/index.html
Flashcards Flashcards // source https://jsbin.com/zutape
<!DOCTYPE html>
<html>
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<meta name="description" content="Flashcards">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Flashcards</title>
<style id="jsbin-css">
.card-back {