Skip to content

Instantly share code, notes, and snippets.

View shawngiese's full-sized avatar

Shawn Giese shawngiese

  • MSc: College of William and Mary
  • Neuchâtel, Switzerland
View GitHub Profile
var seed = '1', rands;
Math.seedrandom(seed);
if (
window.seed && window.seed !== seed ||
!window.rands
) {
rands = window.rands = [];
for (var i = 0; i < 50000; i++) {
rands.push(Math.random());
}
@shawngiese
shawngiese / fiddle.html
Last active August 29, 2015 14:09
Using RESTful queries to extract data for display in an HTML list
<!doctype html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
</head>
<script type="text/javascript" language="JavaScript">
var user = "gazetteer";
var pass = "Demo1234"
var uriLogin = "http://restapitest.actuate.com:5000/ihub/v1/login";
var uriSearch = "http://restapitest.actuate.com:5000/ihub/v1/files";
@shawngiese
shawngiese / fiddle.html
Last active August 29, 2015 14:09
Using RESTful queries to extract data for display in an HTML table
<!doctype html>
<html>
<head>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<style type="text/css">
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
</style>
@shawngiese
shawngiese / 0_reuse_code.js
Created March 11, 2014 09:51
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console