This file contains 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 pygame, sys | |
pygame.init() | |
try: | |
import android | |
except ImportError: | |
android = None | |
if android: |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile for MapD Charting, updated 8/10/2017 | |
# Install Vagrant https://www.vagrantup.com/ | |
# Put this file into a new directory call this file Vagrant file | |
# from the command line, do | |
# vagrant up | |
# vagrant ssh | |
# Change directory into mapd-charting, then do |
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile for MapD Charting, updated 8/10/2017 | |
# Install Vagrant https://www.vagrantup.com/ | |
# Put this file into a new directory call this file Vagrant file | |
# from the command line, do | |
# vagrant up | |
# vagrant ssh | |
# Change directory into mapd-charting, then do |
This file contains 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
require("@mapd/connector/dist/browser-connector") | |
const Connector = window.MapdCon | |
const connection = new Connector() | |
.protocol("https") | |
.host("metis.mapd.com") | |
.port("443") | |
.dbName("mapd") | |
.user("mapd") | |
.password("HyperInteractive") |
This file contains 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 * as CrossFilter from "@mapd/crossfilter" | |
import {TABLE_NAME} from "../constants" | |
let crossfilter = null | |
export function createCf (con) { | |
return CrossFilter.crossfilter(con, TABLE_NAME).then(cf => { | |
crossfilter = cf | |
return Promise.resolve(cf, con) | |
}) |
This file contains 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
const express = require('express') | |
const app = express() | |
var Client = require('node-rest-client').Client; | |
var client = new Client(); | |
var url = 'http://api.spitcast.com/api/spot/forecast/149' | |
var forecast; | |
This file contains 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
<head> | |
<script src="Chart.js"></script> | |
<style> | |
canvas { | |
border: 1px; | |
border-color:black; | |
border-style: solid; | |
} | |
</style> | |
</head> |
This file contains 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
<head> | |
<script src="Chart.js"></script> | |
<style> | |
canvas { | |
border: 1px; | |
border-color:black; | |
border-style: solid; | |
} | |
#navBar { |
This file contains 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
<script src="Chart.js"></script> | |
<canvas id="myChart" width="400" height="400"></canvas> | |
<script> | |
context = document.getElementById('myChart').getContext('2d'); | |
var pieChart = new Chart(context, { | |
type: 'doughnut', |
This file contains 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 fs = require('fs'); | |
var $ = jQuery = require('jquery'); | |
require('./jquery.csv.js'); | |
var contents = fs.readFileSync('flavors_of_cacao.csv', 'utf8') | |
var data = $.csv.toArrays(contents); | |
var rating_1 = 0; | |
var rating_1_5 = 0; | |
var rating_1_75 = 0; |
OlderNewer