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
// 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); |
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
# ... | |
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 |
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
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' |
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
#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 |
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
1 person | |
2 bicycle | |
3 car | |
4 motorcycle | |
5 airplane | |
6 bus | |
7 train | |
8 truck | |
9 boat | |
10 traffic light |