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
#!/usr/bin/env python | |
import sys | |
import argparse | |
import os | |
import cv | |
import cv2 | |
import numpy |
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
#!/usr/bin/env python | |
import numpy as np | |
import cv2 | |
# built-in modules | |
import os | |
USAGE = ''' |
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 getWatchers(root, visualize) { | |
root = angular.element(root || document.documentElement); | |
var watcherCount = 0; | |
function getElemWatchers(element) { | |
var isolateWatchers = getWatchersFromScope(element.data().$isolateScope); | |
var scopeWatchers = getWatchersFromScope(element.data().$scope); | |
var watchers = scopeWatchers.concat(isolateWatchers); | |
angular.forEach(element.children(), function (childElement) { | |
watchers = watchers.concat(getElemWatchers(angular.element(childElement))); |
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
<link rel="import" href="../google-map/google-map.html"> | |
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; |
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
import numpy as np | |
# Adapted from http://nbviewer.ipython.org/github/BVLC/caffe/blob/master/examples/classification.ipynb | |
# Make sure that caffe is on the python path: | |
caffe_root = '../' # this file is expected to be in {caffe_root}/examples | |
import sys | |
sys.path.insert(0, caffe_root + 'python') | |
import caffe |
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
{ | |
"bull mastiff": 0.7160945534706116, | |
"boxer": 0.013083322905004025, | |
"American Staffordshire terrier, Staffordshire terrier, American pit bull terrier, pit bull terrier": 0.04801647365093231, | |
"Rhodesian ridgeback": 0.08079103380441666, | |
"Staffordshire bullterrier, Staffordshire bull terrier": 0.04890848696231842 | |
} |
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 request = require('request'); | |
var moment = require('moment'); | |
var parseString = require('xml2js').parseString; | |
var CONGRESS_XML = 'http://www.senate.gov/general/contact_information/senators_cfm.xml'; | |
var CACHE_KEY = 'contacts'; | |
module['exports'] = function helloWorld(hook) { | |
store = hook.datastore; |
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
using HoloToolkit.Unity; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class LogToSpeech : MonoBehaviour { | |
private TextToSpeechManager textToSpeech; | |
private Queue<string> logs = new Queue<string>(); |
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
{ | |
"asset": { | |
"generator": "FBX2glTF", | |
"version": "2.0" | |
}, | |
"scene": 0, | |
"buffers": [ | |
{ | |
"byteLength": 395644, | |
"uri": "buffer.bin" |
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
{ | |
"asset": { | |
"version": "2.0", | |
"generator": "Open Asset Import Library (assimp v4.0.137045660)" | |
}, | |
"accessors": [ | |
{ | |
"bufferView": 0, | |
"byteOffset": 0, | |
"componentType": 5126, |
OlderNewer