![photo](https://fbcdn-sphotos-e-a.akamaihd.net/hphotos-ak-xpa1/t
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# With help from https://aws.amazon.com/blogs/ai/build-your-own-face-recognition-service-using-amazon-rekognition/ | |
frame_skip = 100 # analyze every 100 frames to cut down on Rekognition API calls | |
import boto3 | |
import cv2 | |
from PIL import Image | |
import io | |
rekog = boto3.client('rekognition') |
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
sudo pip install --upgrade google-cloud-pubsub | |
gcloud pubsub topics create cp300 | |
gcloud pubsub subscriptions create cpsubs --topic=cp300 | |
python | |
#that's it.. now just copy the contents of the python file |
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 python | |
# to debug dbus, try dbus-monitor "type='signal',sender='im.pidgin.purple.PurpleService',interface='im.pidgin.purple.PurpleInterface',member='ReceivedImMsg'" | |
import tkinter as tk | |
import tkinter.scrolledtext as tkst | |
from pydbus import SessionBus | |
from gi.repository import GObject | |
from gi.repository import GLib |
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
#put this file on your locales directory where you have your yaml files | |
{ :es => { | |
:countries => { | |
:AC => "Isla de la Ascensión", | |
:AD => "Andorra", | |
:AE => "Emiratos Árabes Unidos", | |
:AF => "Afganistán", | |
:AG => "Antigua y Barbuda", |
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
{ | |
"config": { | |
"encoding":"FLAC", | |
"sample_rate": 16000, | |
"languageCode": "en-GB" | |
}, | |
"audio": { | |
"uri":"gs://formatinternet_misc/theresa_may_mp_extract.flac" | |
} | |
} |
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
from google.appengine.ext import vendor | |
vendor.add('lib') | |
import json | |
import os | |
import webapp2 | |
#from oauth2client.contrib.appengine import AppAssertionCredentials | |
from httplib2 import Http |
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
#%RAML 0.8 | |
title: Uber | |
version: v1 | |
baseUri: https://{apiMode}.uber.com/{version} | |
baseUriParameters: | |
apiMode: | |
description: In order to use the Sandbox environment set 'sandbox-api'. Otherwise set 'api'. | |
enum: [ sandbox-api, api ] | |
securitySchemes: | |
- oauth_2_0: !include securitySchemes/oauth_2_0.raml |
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
# Update System | |
# ------------------------------------------------------------------------------ | |
echo 'Updating System...' | |
sudo apt-get -y update | |
# Hardware | |
# ------------------------------------------------------------------------------ | |
echo 'Installing bumblebee' | |
sudo add-apt-repository -y ppa:bumblebee/stable && sudo apt-get update | |
sudo apt-get -y install bumblebee bumblebee-nvidia |