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 requests | |
import json | |
url="YOUR_PREDICTION_ENDPOINT _ AVAIL customvision.ai" | |
headers={'content-type':'application/octet-stream','Prediction-Key':'YOUR_PREDICTION_KEY'} | |
r =requests.post(url,data=open("YOUR_LOCAL_IMAGE.jpg","rb"),headers=headers) | |
print(r.content) |
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 nltk | |
import epub | |
book = epub.open_epub('design-is-a-job.epub') | |
for item in book.opf.manifest.values(): | |
# read the content | |
data = book.read_item( item ) | |
if 'html' in item.href and 'chap' in item.href: | |
print item.href | |
#print data |
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
#include <Adafruit_NeoPixel.h> | |
#define NUM_PIXELS 60 | |
unsigned long interval=50; // the time we need to wait | |
unsigned long previousMillis=0; | |
uint32_t currentColor;// current Color in case we need it | |
uint16_t currentPixel = 0;// what pixel are we operating on | |
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 Foursquare = function () { | |
/* | |
Please register a client/app with foursquare ( https://developer.foursquare.com) | |
and put the client id and secret in the apiglobals.js | |
NOTE: Didn't want to use require for this, but it would be easy to port it | |
and have its required dependancies be Jquery and apiglobals.js | |
*/ | |
var init = function (client_id,client_secret) { |
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
//DRAW A RECT | |
//DRAW AN ELLIPSE/CIRCLE//////// | |
void setup() { | |
size(500,400); | |
background(0); | |
} | |
void draw() { | |
rect(100,100,100,100); |
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
unsigned long interval=50; // the time we need to wait | |
unsigned long previousMillis=0; | |
void setup(){ | |
} | |
void loop(){ | |
if ((unsigned long)(millis() - previousMillis) >= interval) { | |
previousMillis = millis(); |
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 processing.serial.*; | |
import cc.arduino.*; | |
import ddf.minim.*; | |
import processing.video.*; | |
// Number of columns and rows in our system | |
int cols, rows; | |
// Variable to hold onto Capture object | |
Capture video; | |
PImage output; |
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 items = [1,2,3,4]; | |
var arrayCounter = -1; | |
function getFace(i) | |
{ | |
// ajax call | |
//when done call | |
// getFaceComplete() | |
} |
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
MVA | |
Unity: | |
· Building Windows 10 Games with Unity 5: https://mva.microsoft.com/en-US/training-courses/building-windows-10-games-with-unity-5-12572 | |
· Developing 2D & 3D Games with Unity for Windows Jump Start: https://mva.microsoft.com/en-US/training-courses/developing-2d-3d-games-with-unity-for-windows-jump-start-8350 | |
· Porting Unity Games to Windows Store and Windows Phone: https://mva.microsoft.com/en-US/training-courses/porting-unity-games-to-windows-store-and-windows-phone-8351 | |
Web / HTML5: | |
· Developing 2D Games with HTML5: https://mva.microsoft.com/en-US/training-courses/developing-2d-games-with-html5-8418 | |
· Developing Advanced 2D Games with HTML5: https://mva.microsoft.com/en-US/training-courses/developing-advanced-2d-games-with-html5-8452 | |
GameMaker: |
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 ESPN = function () { | |
/* | |
DEPENDANCIES: jquery for the JSON calls & promises | |
IMPORTANT:Please register with Mashery and ESPN to get an api key (http://developer.espn.com/) | |
NOTE: Didn't want to use require for this, but it would be easy to port it | |
INITIALIZE: You need to init this class with your apikey ( ESPN.init('your-app-key-here');) | |
READ: Read the espn documentation to see what type of paramters you can pass in - didn't duplicate documentation here. | |
All calls are documented and show example usage. | |
Use at own risk! |
NewerOlder