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 January 14, 2015 01:29
Adventure Engine // source http://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 / index.html
Created January 14, 2015 01:31
Adventure Engine // source http://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 / index.html
Created January 14, 2015 01:56
Adventure Engine // source http://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 / gist:11846c9c5dc4fadda2d5
Last active August 29, 2015 14:13
Lotto Generator - Complex for no good reason
import random
def getNum(start = 1, end = 75, stringify = True):
lottoNum = random.randint(start,end)
if stringify:
lottoNum = str(lottoNum)
return lottoNum
def getNums(qty = 6, start = 1, end = 75, randos = None):
@ronsims2
ronsims2 / imover.py
Created January 19, 2015 01:32
A simple program that moves archived iPhoto files that are stored on a CD to a directory (you specify) on your PC.
import os
import shutil
class imover:
def __init__(self, loc = '', dest = ''):
self.loc = loc
self.dest = dest
if self.loc != '' and self.dest != '':
self.movefiles()
/*******************************************************************************
* 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();
@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">
(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";
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()
@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