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
<html> | |
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"> | |
<head> | |
<title>D3.js Dashboard Introduction</title> | |
<script src="http://d3js.org/d3.v2.js"></script> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script> | |
<script> | |
function getMaxObjectValue(this_array, element) { |
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
<html> | |
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"> | |
<head> | |
<title>D3.js Dashboard Introduction</title> | |
<script src="http://d3js.org/d3.v2.js"></script> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script> | |
<script> | |
function getMaxObjectValue(metric, graph_metric) { |
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
<html> | |
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"> | |
<head> | |
<title>D3.js Dashboard Introduction</title> | |
<script src="http://d3js.org/d3.v2.js"></script> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script> | |
<script> | |
function getMaxObjectValue(metric, graph_metric) { |
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
<?php | |
class tweet_scroll { | |
/****************************************************************** | |
** database access constants ** | |
** edit these ** | |
******************************************************************/ | |
private $dbName = 'YOUR MYSQL DATABASE NAME'; | |
private $dbHost = 'YOUR MYSQL DATABASE HOST'; | |
private $dbUser = 'YOUR MYSQL DATABASE USERNAME'; |
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 PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> | |
<meta content="utf-8" http-equiv="encoding"> | |
<title> | |
Minimum Viable Metrics dashboard template - ufert.se | |
</title> | |
<link href="https://raw.github.com/ESeufert/MVM-Dashboard-Template/master/nvd3-master/src/nv.d3.css" rel="stylesheet" type="text/css"> |
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
<html> | |
<meta http-equiv="Content-type" content="text/html;charset=UTF-8"> | |
<head> | |
<title>Comparison -- Mobile Handset Manufacturers and Platforms, Q1 2013 and Q1 2013</title> | |
<link href="http://nvd3.org/src/nv.d3.css" rel="stylesheet"> | |
<link href="http://nvd3.org/css/common.css" rel="stylesheet"> | |
<link href="http://nvd3.org/css/syntax.css" rel="stylesheet"> | |
<script type="text/javascript" src="http://d3js.org/d3.v2.js"></script> |
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
epsilon = .1; | |
n_trials = 1000; | |
counter = 0; | |
function test() { | |
//pick a random number between 1 and 10, inclusive | |
random_number = rand(1, 10); | |
//if the random number is within the epsilon percentage | |
if (random_number <= bandit.epsilon * 10) { | |
//simply picks a bandit at random |
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
<html> | |
<script src="http://d3js.org/d3.v2.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.21/jquery-ui.min.js"></script> | |
<h1>A D3.js Dashboard</h1> | |
<div id="metrics"></div> | |
</html> |
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 data = []; | |
// this is our data array | |
var startingDate = new Date(2012, 8, 18); | |
// this is a date object | |
for (var i = 0; i < 10; i++) { // loop 10 times to create 10 data objects | |
var tmpObj = {}; | |
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 getMaxObjectValue(this_array, element) { | |
var values = []; | |
for (var i = 0; i < this_array.length; i++) { | |
values.push(Math.ceil(parseFloat(this_array[i][""+element]))); | |
} | |
values.sort(function(a,b){return a-b}); | |
return values[values.length-1]; |
OlderNewer