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
| require 'face' | |
| client = Face.get_client(api_key: 'XXX', api_secret: 'XXX') | |
| # training skybiometry to recognize Johnny Depp | |
| resp = client.faces_detect(urls: %w[http://topmostcelebrities.blogsome.com/wp-admin/images/Johnny%20Depp-0.jpg]) | |
| client.tags_save(uid: 'johnnydepp@celebs', tids: resp['photos'][0]['tags'][0]['tid']) | |
| client.faces_train uids: 'johnnydepp@celebs' | |
| # trying to recognize it from other pic | |
| client.faces_recognize(uids: 'all@celebs', urls: %w[http://images5.fanpop.com/image/photos/31400000/Johnny-johnny-depp-31410766-861-1023.jpg]) |
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
| DROP SCHEMA tmp CASCADE; | |
| CREATE SCHEMA tmp ; | |
| SET search_path = tmp ; | |
| -- table definitions | |
| CREATE TABLE user_hits ( | |
| day DATE, | |
| user_id INT, |
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
| require 'google/api_client' | |
| client = Google::APIClient.new(application_name: 'Bent Pixels', application_version: '1.0') | |
| client.key = 'XXX' | |
| youtube = client.discovered_api('youtube', 'v3') | |
| puts "-------- getting latest videos --------" | |
| i = 1 |
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
| 0002. [2013-01-16 06:50:19 UTC] [yT_slrx5TWI] Sapna in full Action - Heroine No.1 Scene | |
| 0003. [2013-01-16 06:43:28 UTC] [LBytWlIB4Pw] Aaja Mere Raja Mujhe Pyaar Kar le, Sapna, Heroine No.1 Song | |
| 0004. [2013-01-16 06:42:34 UTC] [6OEXzKk5gkQ] Tomo Ohira Teaches Old School Street Fighter 2 Techniques: Timing, Distance, & Reaction | |
| 0005. [2013-01-16 06:29:05 UTC] [U-GAXSYQn9Y] Cover Girl - Budget Barbie: EP50 | |
| 0006. [2013-01-16 06:28:32 UTC] [svIOlreUr-A] Deewana Hoon Sanam, Heroine No.1 Romantic Song | |
| 0007. [2013-01-16 06:16:22 UTC] [XKOpwocGuNw] Actress molested by Producers, Heroine No.1 Scene | |
| 0008. [2013-01-16 06:07:33 UTC] [5z0u82668eA] Sapna's first day at Shoot, Heroine No.1 Scene | |
| 0009. [2013-01-16 05:54:41 UTC] [9oR19oa4W9o] Sapna gets offer for Film, Heroine No. 1 Scene | |
| 0010. [2013-01-16 05:22:25 UTC] [xZejVRkkkIE] sexy pole dance | |
| 0011. [2013-01-16 05:16:58 UTC] [BqQvjos9O4w] Mandy Moore - Only Hope Cover |
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
| ------------XnJLe9ZIbbGUYtzPQJ16u1 | |
| Content-Disposition: form-data; name="note[body]" | |
| Voila | |
| ------------XnJLe9ZIbbGUYtzPQJ16u1 | |
| Content-Disposition: form-data; name="note[photo_file]"; filename="image.jpg" | |
| Content-Type: image/jpeg | |
| Content-Length: 1293 | |
| ????JFIFHH??>CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), default quality |
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
| context 'with attachment' do | |
| let(:file) { | |
| Rack::Test::UploadedFile.new(Rails.root.join('spec/support/image.jpg'), 'image/jpeg') | |
| } | |
| let(:cloudinary_response) { | |
| { public_id: "rqdrdaexlgjy5j1hoabig", version: 1338884873, format: 'jpg', resource_type: 'image' } | |
| } | |
| before do |
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
| GIT | |
| remote: git://github.com/assembler/rails-erd.git | |
| revision: 53e01cf74f6f051bcdb283847d145ef84ce19dc4 | |
| specs: | |
| rails-erd (0.5.0pre) | |
| activerecord (~> 3.0) | |
| activesupport (~> 3.0) | |
| choice (~> 0.1.4) | |
| ruby-graphviz (~> 1.0) |
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
| GIT | |
| remote: git://github.com/assembler/rails-erd.git | |
| revision: 53e01cf74f6f051bcdb283847d145ef84ce19dc4 | |
| specs: | |
| rails-erd (0.5.0pre) | |
| activerecord (~> 3.0) | |
| activesupport (~> 3.0) | |
| choice (~> 0.1.4) | |
| ruby-graphviz (~> 1.0) |
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
| newrelic_rpm (3.3.4) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:166:in `render_with_newrelic' | |
| actionpack (3.2.3) lib/action_view/renderer/renderer.rb:41:in `render_partial' | |
| actionpack (3.2.3) lib/action_view/helpers/rendering_helper.rb:27:in `render' | |
| app/views/notifications/index.html.erb:10:in `block in _app_views_notifications_index_html_erb___3212508411209234601_70332619008280' | |
| actionpack (3.2.3) lib/action_view/helpers/cache_helper.rb:53:in `fragment_for' | |
| actionpack (3.2.3) lib/action_view/helpers/cache_helper.rb:36:in `cache' | |
| app/views/notifications/index.html.erb:8:in `_app_views_notifications_index_html_erb___3212508411209234601_70332619008280' | |
| actionpack (3.2.3) lib/action_view/template.rb:143:in `block in render' | |
| activesupport (3.2.3) lib/active_support/notifications.rb:125:in `instrument' | |
| actionpack (3.2.3) lib/action_view/template.rb:141:in `render' |
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
| default_settings: &default_settings | |
| # whether to override image_tag helper with cl_image_tag | |
| enhance_image_tag: false | |
| # ... | |
| static_image_support: false | |
| development: | |
| <<: *default_settings | |
| cloud_name: "xxx" |