Skip to content

Instantly share code, notes, and snippets.

View neidiom's full-sized avatar
🌴
On vacation

Nedim Hadzimahmutovic neidiom

🌴
On vacation
View GitHub Profile
ActiveAdmin.register Coupon do
menu label: proc { current_user.admin? ? 'Coupons' : 'My coupons' }
actions :all, except: [:destroy]
permit_params :name, :coupon_type, :picture, :note, :for_deleting, :business_owner_id
# ===== scopes =====
scope_to :current_user, if: proc { current_user.business_owner? }
scope :all, default: true do |coupons|
coupons
end
# run with
# chef-apply chef-rundeck.rb
require 'chef'
require 'chef/node'
require 'chef/mixin/xml_escape'
require 'chef/rest'
require 'chef/role'
require 'chef/environment'
require 'chef/data_bag'

Cognitive Artificial Intelligence

  • Cloud Vendor Based NoOps

Use Cases

  1. Detect text in images
  2. Detect handwriting in images
  3. Detect text in files
  4. Detect faces in images
  5. Detect multiple objects in images
  6. Detect web references to an image N/A