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() { | |
var shuffle = function(items) { | |
var newOrder = []; | |
var usedNumbers = {}; | |
var i = 0; | |
while (newOrder.length < items.length) { | |
i++; | |
var rando = Math.floor(Math.random() * items.length); | |
if (!usedNumbers[rando.toString()]) { | |
usedNumbers[rando.toString()] = true; |
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
#!/bin/bash | |
#A list of file names | |
clear | |
#Read by line to handle filenames with spaces | |
OGIFS = $IFS | |
IFS=$(echo -en "\n\b") | |
myfiles=$(ls) |
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
// | |
// main.m | |
// testcode | |
// | |
// Created by Ron Sims II on 6/6/16. | |
// Copyright ยฉ 2016 Ron Sims II. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"_id": "5780137d86c3e01e6396f8af", | |
"index": 0, | |
"guid": "fa5e60f5-e8cc-4697-8056-7c51225292b8", | |
"isActive": false, | |
"balance": "$2,003.16", | |
"picture": "http://placehold.it/32x32", | |
"age": 26, | |
"eyeColor": "green", |
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
{ | |
"name": "JSON", | |
"weapon": "machete", | |
"home": "crystal lake", | |
"likes": "kill kill kill", | |
"hates": "you" | |
} |
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 |
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
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
<!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 charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
(function(w){ |