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
function checkSoldOut() { | |
if ($('#SingleOptionSelector-0').val() == 'Large') { | |
$( "<div id='email_when_available' style='padding: 0 5px;'><button style='color: #fff; background-color: #900; width: 100%; '>EMAIL WHEN AVAILABLE</button></div>" ).insertAfter( ".product-form" ) | |
} else { | |
$('#email_when_available').remove() | |
} | |
} | |
$('#SingleOptionSelector-0').on('change', function() { | |
checkSoldOut() |
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 'oauth2' | |
require 'json' | |
module ZohoServices | |
class Invoice | |
attr_reader :oauth_auth_code, :client | |
def initialize | |
@customer_id = "CUSTOMER_ID" # define this customer_id | |
@query_root = "https://invoice.zoho.com/api/v3" |
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
class Appointment < ApplicationRecord | |
# .. this model is long and has many lines of code, so we cut it where it's important :-D | |
phony_normalize :phone, :default_country_code => 'US', :add_plus => true | |
# Associations | |
has_many :appointment_call_logs, dependent: :destroy | |
has_many :call_logs, through: :appointment_call_logs, source: :call_log | |
has_one :masked_number, as: :callable | |
#callbacks |
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
# .github/workflows/ci.yml | |
name: CI | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
services: | |
postgres: | |
image: postgres:11 |
OlderNewer