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 / 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 / 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 / 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 / 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
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">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
(function(w){
@ronsims2
ronsims2 / index.html
Created September 22, 2015 12:34 — forked from anonymous/index.html
JS Bin Adventure Engine // source https://jsbin.com/vuvexa
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Adventure Engine" />
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
@ronsims2
ronsims2 / States.js
Created November 16, 2015 01:52
A Node script that generates a SQL insert file for the 50 U.S. states.
fs = require('fs');
var states = [['AL', 'Alabama'],
['AK', 'Alaska'],
['AZ', 'Arizona'],
['AR', 'Arkansas'],
['CA', 'California'],
['CO', 'Colorado'],
['CT', 'Connecticut'],
['DE', 'Delaware'],
@ronsims2
ronsims2 / robotsInDisguise.js
Last active May 9, 2019 12:54
Tranformer Test Data
[{"label":"galvatron","value":11},{"label":"megatron","value":51},{"label":"optimus","value":31},{"label":"rodimus","value":72},{"label":"starscream","value":10},{"label":"grimlock","value":50},{"label":"bumblebee","value":30},{"label":"soundwave","value":71},{"label":"laserbeak","value":8},{"label":"perceptor","value":3},{"label":"soundwave","value":4},{"label":"blaster","value":74}]
@ronsims2
ronsims2 / simple-server.js
Created January 31, 2016 17:22
A simple web server that allows you to specify a JSON file based on a URL param.
//https://nodejs.org/en/docs/guides/anatomy-of-an-http-transaction/
var myPort = 8080;//Set pot to one not used on your box
var fs = require('fs')
var http = require('http');
console.log('Starting server...')
var server = http.createServer(function(req, resp){
console.log('Request received. ');
//get url param and change file based on param or url