Skip to content

Instantly share code, notes, and snippets.

View Extrapolator214's full-sized avatar

Grigory Reznichenko Extrapolator214

  • Georgia
View GitHub Profile
@Extrapolator214
Extrapolator214 / zoho_api_client.rb
Created March 16, 2017 10:35
Zoho CRM thin API client
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
@Extrapolator214
Extrapolator214 / smite_api.rb
Last active November 27, 2015 14:32
API client for Smite game
# 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
@Extrapolator214
Extrapolator214 / scroll_events.js.coffee
Last active November 27, 2015 14:30
plugin to make fixed elements (like sidebar or top nav bar) scrollable. Unfinished, needs performance and style improvements
# EXAMPLE USAGE
#sidebar.scrollFixed(
#conditions:
#top: ->
#nav.css('position') == 'fixed' and
#windowObj.height() > 300 and
#sidebar.outerHeight() < content.outerHeight()
#offset:
#top: 40
#bottom: 0