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 / index.html
Created September 22, 2015 12:30 — forked from anonymous/index.html
JS Bin [Javascript object orderer] // source https://jsbin.com/dirixi
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[Javascript object orderer]" />
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@ronsims2
ronsims2 / charmap.js
Last active August 29, 2015 14:28
A map of keycodes to letters/keys.
var charMap = {};
charMap.backspace = 8;
charMap.delete = 46;
charMap.space = 32;
charMap.a = 65;
charMap.b = 66;
charMap.c = 67;
charMap.d = 68;
charMap.e = 69;
charMap.f = 70;
@ronsims2
ronsims2 / index.html
Last active August 29, 2015 14:25 — forked from anonymous/index.html
Simple Lorem Ipsum Tool for Web Designers (Needs jQuery)
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-1.11.0.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div class="foo" style="background:red;">123
</div>
@ronsims2
ronsims2 / snigs.py
Created June 29, 2015 21:01
Snigs - A class that generated scrabbled movie titles. Add a bit of entertainment to boring logs.
import random as r
class snigs:
def __init__(self, wordlist = None):
self.addquestions(wordlist)
@staticmethod
def getwords():
questions = [
'Coming to America',
@ronsims2
ronsims2 / boogie.py
Last active July 6, 2020 20:00
Boogie is a command line math program for kids, great for the raspberryPi
#Boogie is a command line math program for kids, great for the raspberryPi
import random as r
import math as m
import re
class boogie:
def __init__(self, mathtype = 'ADDITION', level = 'EASY', offset = 0, sets = 10):
self.mathsign = None
self.mathtype = mathtype
@ronsims2
ronsims2 / mantiscope.js
Created April 1, 2015 20:48
Mantiscope
(function(w,d){
/*Animate all images buffering 240 images at a time, 20 sec of footage
@ 12fps (images/sec)
*/
//get all image data
var metaData = {
cf: 0,//The current image shown
cfs: 0, //The current buffer segment
lfb: 0, //last buffered frame (image url number in raw array)
buffer: [], //currently buffered images
import random
from Tkinter import *
import tkMessageBox
class Application(Frame):
def show_handicap(self):
grossScore = self.grossScore.get()
courseRating = self.courseRating.get()
courseSlope = self.courseSlope.get()
(function(d){
var drawNinja = function(){
//var wrapper = d.getElementById('wrapper');
var wrapper = d.getElementsByTagName('body');
//the ninja head
var ninjaCanvas = d.createElement('canvas');
ninjaCanvas.style.position = "absolute";
ninjaCanvas.style.zIndex = 9999999999;
ninjaCanvas.id = "ninjafied";
@ronsims2
ronsims2 / index.html
Last active August 29, 2015 14:16
JS Bin[Javascript object orderer]// source http://jsbin.com/dirixi
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="[Javascript object orderer]" />
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
/*******************************************************************************
* Test using PhantomJS instead of Zombie
* Author: RA Sims II
* Twitter: @mantisOrange
* 01.31.2015
*******************************************************************************/
var domain = 'localhost';
var port = '3000';
var page = require('webpage').create();