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
| #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 |
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 as r | |
| class snigs: | |
| def __init__(self, wordlist = None): | |
| self.addquestions(wordlist) | |
| @staticmethod | |
| def getwords(): | |
| questions = [ | |
| 'Coming to America', |
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> | |
| <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> |
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
| 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; |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> | |
| (function(w){ |
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
| fs = require('fs'); | |
| var states = [['AL', 'Alabama'], | |
| ['AK', 'Alaska'], | |
| ['AZ', 'Arizona'], | |
| ['AR', 'Arkansas'], | |
| ['CA', 'California'], | |
| ['CO', 'Colorado'], | |
| ['CT', 'Connecticut'], | |
| ['DE', 'Delaware'], |
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
| [{"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}] |
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
| //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 |