I hereby claim:
- I am faizaankhan on github.
- I am faizaankhan (https://keybase.io/faizaankhan) on keybase.
- I have a public key ASBsrohDkAwSEBvfLrqxcxFYxdC-llkaalbos2DRL05WXgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| # At this time, Sablon doesn't support to keep original ratio of image. | |
| # We develop these classes for extending this functionality. | |
| module Sablon | |
| module Content | |
| class ImageOriginalRatio < Struct.new(:name, :data, :properties) | |
| # keep this attribute in case of Image (not ImageOriginalRatio). | |
| attr_accessor :local_rid | |
| attr_reader :rid_by_file | |
| MEASURES = { pixel: 'px', centimeter: 'cm', inch: 'in'} |
| <div class="navbar navbar-default navbar-static-top"> | |
| <div class="container"> | |
| <div> | |
| <a class="navbar-brand" href="#" >Associate-Manager Interaction Portal</a> | |
| <!-- <a class="navbar-brand" href="/"> --> | |
| <!-- <a class="navbar-brand" | |
| <%# <%= content_tag :li do %> | |
| <%# <%= link_to 'Switch to English', locale: :en %> %> | |
| <%# <% end unless current_page?(locale: :en) %> %> | |
| <%# <%= content_tag :li do %> %> |
| Rails.application.routes.draw do | |
| scope "(:locale)", locale: /#{I18n.available_locales.join("|")}/ do | |
| root to: 'associates#index' | |
| end | |
| devise_for :users | |
| get 'welcome/index' | |
| # patch 'associates/update' | |
| get 'accept_request', to: 'associates#accept_request' | |
| get 'cancel_request', to: 'associates#cancel_request' |
| class AssociatesController < ApplicationController | |
| before_action:authenticate_user! | |
| def new | |
| @associate= params || {} | |
| @associate=Associate.new() | |
| end | |
| def index | |
| if current_user[:role]=="associate" |
| $(document).on('turbolinks:load', function() { | |
| console.log("may i come") | |
| if ( $(".quantity").length > 0 ) { | |
| updateQuantity(); | |
| }; | |
| }); | |
| updateQuantity = () => { | |
| $(".quantity").bind('keyup change click mouseup', function() { | |
| const quantity = $(".quantity").val(); |
| Mega Menu Codes | |
| https://www.codeply.com/go/vZBG452NGf/bootstrap-4-megamenu |
| require 'faker' | |
| qp = QuestionPaper.new | |
| qp.name = "QP-Test-React-Exam" | |
| qp.save | |
| 4.times do | |
| s = qp.sections.new | |
| s.name = Faker::GameOfThrones.city | |
| s.save |
| class SendgridWebMailer < ActionMailer::Base | |
| require 'sendgrid-ruby' | |
| include SendGrid | |
| require 'json' | |
| def initialize | |
| @client = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY']).client | |
| end | |
| def send_marketting_email(candidate) |