This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Adventure Engine" /> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Adventure Engine" /> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Adventure Engine" /> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/******************************************************************************* | |
* 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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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 |