Skip to content

Instantly share code, notes, and snippets.

View fourcolors's full-sized avatar
🎯
Perkisizing

fourcolors fourcolors

🎯
Perkisizing
View GitHub Profile
@aallan
aallan / coco_labels.txt
Created April 22, 2019 14:23
Labels for the Mobilenet v2 SSD model trained with the COCO (2018/03/29) dataset.
1 person
2 bicycle
3 car
4 motorcycle
5 airplane
6 bus
7 train
8 truck
9 boat
10 traffic light
@samuel-davis
samuel-davis / Convert Tensorflow SavedModel to WebModel for TF-JS
Last active May 7, 2021 02:49
Convert a Tensorflow Object Detection SavedModel to a Web Model For TensorflowJS
#Currently within the Tensorflow ecosystem there is a ton of confusing similar words.
#Maybe this is because of my own understanding and is not due to their naming.
#Regardless I struggled making this work, so I #figured I would write a Gist.
# Firstly we are trying to convert a previously created Tensorflow frozen graph or checkpoint files.
# Specifically I wanted to #convert some of the Tensorflow Object Detection API models.
# We already have a SavedModel in the download from the object detection model zoo.
# If you need to get a SavedModel from your own trained Object Detection Model, you will need to export it using the script
# provided by the object_detection module. The python script is called exporter. It is not that well documented, but if you
@jkotchoff
jkotchoff / google_play_verification.rb
Last active July 6, 2023 17:57
Verifying an Android subscription in a Ruby on Rails app using the Google Play API
class GooglePlayVerification
require 'google/api_client'
# Refer:
# https://code.google.com/p/google-api-ruby-client/issues/detail?id=72
# and
# http://jonathanotto.com/blog/google_oauth2_api_quick_tutorial.html
# and
# http://milancermak.wordpress.com/2012/08/24/server-side-verification-of-google-play-subsc/
GOOGLE_KEY = 'xxx-xxx.apps.googleusercontent.com'
@cblunt
cblunt / Gemfile
Created October 21, 2011 08:55
Configure Carrierwave for Amazon S3 Storage and Heroku
# ...
gem 'carrierwave'
gem 'fog', '~> 1.0.0' # Need to specify version, as carrierwave references older (0.9.0) which doesn't allow configuration of Rackspace UK Auth URL
@robotlolita
robotlolita / gist:1087927
Created July 17, 2011 18:53
Attempt at explaining closures number 1
// The idea is to understand this little piece of code, from Eloquent
function makeAddFunction(amount) {
function add(number) {
return number + amount;
}
return add;
}
var addTwo = makeAddFunction(2);
var addFive = makeAddFunction(5);