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 /
Created Sep 15, 2016
python icepay client
import json
import hashlib
import datetime
import requests
client = IcepayClient(MERCHANT_ID, SECRET_CODE)
domasx2 /
Last active Sep 15, 2016
icepay client in python
import json
import hashlib
import datetime
import requests
class IcepayClient:
def __init__(self, merchant_id, secret_code):
View mynode
FROM ubuntu
RUN apt-get update && \
apt-get install -y wget xz-utils && \
wget && \
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
CMD node
View testgsapfps.html
<!DOCTYPE html>
body {
background: white;
.ok {
color: green;
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) {
callbacks.set(id, cb);
return id;
You can’t perform that action at this time.