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 sample = './flavors_of_cacao.csv'; | |
var csv = fs.readFileSync(sample, 'UTF-8'); | |
var arrays = $.csv.toArrays(csv); | |
var usa = 0; | |
var france = 0; |
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
""" | |
Test for THETA V client mode. Your workstation and the THETA V need to be | |
connected to the same WiFi router. | |
This test script uses Python modules requests and pprint. | |
To install requests and pprint | |
$ pip install requests | |
$ pip install pprint | |
Once connected with WiFi, use the API here: |
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
#!/usr/bin/env python3 | |
""" Example of browsing for a service (in this case, HTTP) """ | |
import logging | |
import socket | |
import sys | |
from time import sleep | |
from zeroconf import ServiceBrowser, ServiceStateChange, Zeroconf |
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
<canvas id='myCanvas' width="400" height="400"></canvas> | |
<script> | |
var ctx = document.getElementById('myCanvas').getContext('2d'); | |
var colors = [ | |
'red', | |
'blue', | |
'green', | |
'yellow', | |
'purple'] |
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
<meta charset="utf-8"> | |
<canvas id="myCanvas" width="800" height="600"></canvas> | |
<br> | |
<button onclick="horizLines()">Horizontal</button> | |
<button onclick="diagonalLines()">Diagonal</button> | |
<button onclick="clearScreen()">Clear</button> | |
<script> |
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> | |
<meta charset="utf-8"> | |
<style> | |
.buttonRow{ | |
margin-top: 10px; | |
} | |
</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
<canvas id="myCanvas" width="400" height="400"></canvas> | |
<div> | |
<form> | |
<input type="radio" id="10lines" name="lineNumber" value="10" checked> 10 lines | |
<br> | |
<input type="radio" id="20lines" name="lineNumber" value="20"> 20 lines | |
</form> | |
<br> | |
<button onclick="createManyLines(10)">Create Lines</button> | |
</div> |
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
<canvas id="myCanvas" width="400" height="400"></canvas> | |
<div> | |
<table> | |
<tr> | |
<th># lines</th> | |
<th>Orientation</th> | |
</tr> | |
<tr> | |
<td> | |
<input type="radio" name="lineNumber" value="10" checked> 10 lines |
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
/*** | |
create: function(){ | |
var platformData = [ | |
{"x": 0, "y": 430}, | |
{"x": 45, "y": 560}, | |
{"x": 90, "y": 290}, | |
{"x": 0, "y": 140} | |
]; | |
this.platforms = this.add.group(); | |
this.platforms.enableBody = true; |
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
using UnityEngine; | |
using System.Collections; | |
public class webCamDetect : MonoBehaviour | |
{ | |
string camName; | |
public const string RICOH_DRIVER_NAME = "RICOH THETA V 4K"; | |
// change to "RICOH THETA V FullHD" for lower resolution | |
// (and thus smaller data size) |