Skip to content

Instantly share code, notes, and snippets.

Domas domasx2

  • Vilnius, Lithuania
Block or report user

Report or block domasx2

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@domasx2
domasx2 / icepay_client.py
Created Sep 15, 2016
python icepay client
View icepay_client.py
import json
import hashlib
import datetime
import requests
"""
Usage:
client = IcepayClient(MERCHANT_ID, SECRET_CODE)
@domasx2
domasx2 / icepay.py
Last active Sep 15, 2016
icepay client in python
View icepay.py
import json
import hashlib
import datetime
import requests
class IcepayClient:
BASE_API_URL = 'https://connect.icepay.com/webservice/api/v1/'
def __init__(self, merchant_id, secret_code):
View mynode
FROM ubuntu
WORKDIR /opt
RUN apt-get update && \
apt-get install -y wget xz-utils && \
wget https://nodejs.org/dist/v6.3.1/node-v6.3.1-linux-x64.tar.xz && \
tar -xf node-v6.3.1-linux-x64.tar.xz && \
ln -s /opt/node-v6.3.1-linux-x64/bin/node -t /usr/local/bin && \
ln -s /opt/node-v6.3.1-linux-x64/bin/npm -t /usr/local/bin
WORKDIR /
CMD node
View testgsapfps.html
<!DOCTYPE html>
<html>
<head>
<style>
body {
background: white;
}
.ok {
color: green;
@domasx2
domasx2 / fix-raf.js
Created Nov 2, 2015
Wrap requestAnimationFrame to implement return value & cancelAnimationFrame
View fix-raf.js
const callbacks = new Map();
let id = 0;
const realRequestAnimationFrame = window.requestAnimationFrame;
window.requestAnimationFrame = function(cb) {
id++;
callbacks.set(id, cb);
return id;
}
You can’t perform that action at this time.