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
# EXAMPLE USAGE | |
#sidebar.scrollFixed( | |
#conditions: | |
#top: -> | |
#nav.css('position') == 'fixed' and | |
#windowObj.height() > 300 and | |
#sidebar.outerHeight() < content.outerHeight() | |
#offset: | |
#top: 40 | |
#bottom: 0 |
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
# this API client is designed for Rails app, but you can use other framework | |
# by replacing key storage and http client as you see fit. | |
# | |
# Usage: | |
# api = SmiteApi.new | |
# api.testsession | |
# queue_stats = api.getqueuestats(123, 426) | |
# | |
class SmiteApi |
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 ZohoApiClient | |
BASE_URL = 'https://crm.zoho.com/crm/private/json' | |
# https://www.zoho.com/crm/help/api/api-methods.html | |
METHODS = %w[ | |
getMyRecords | |
getRecords | |
getRecordById | |
getDeletedRecordIds | |
insertRecords |