Skip to content

Instantly share code, notes, and snippets.

View ehpc's full-sized avatar
💾

Eugene Maslovich ehpc

💾
View GitHub Profile
@ehpc
ehpc / btce-call-method.js
Created September 17, 2019 11:13
A Node.js module for calling BTC-e trading API methods
/**
* A module for calling the BTC-e trading API methods
* @author Eugene Maslovich <[email protected]>
*/
var https = require('https'),
querystring = require('querystring'),
crypto = require('crypto'),
nonce = Math.round((new Date()).getTime() / 1000);
@ehpc
ehpc / scroll-to.js
Last active August 29, 2015 14:02
"Scroll to" plugin for jQuery. Automatically scrolls to selected element, usage: "$('#mydiv").scrollTo()".
jQuery.fn.extend({
/**
* Smooth scrolling to element
* @param interval Scrolling interval
* @param offset Offset from an element
*/
scrollTo: function (interval, offset) {
'use strict';
if (typeof interval === 'undefined') {
interval = 1000;