Skip to content

Instantly share code, notes, and snippets.

View intelliBrain's full-sized avatar

Rene intelliBrain

  • intelliBrain GmbH
  • Zurich, Switzerland
View GitHub Profile
@WietseWind
WietseWind / index.js
Last active December 12, 2018 18:33
XRP (XRPL) EscrowCreate using NodeJS (featuring Memos) - Used for: https://twitter.com/WietseWind/status/998968185532579840
const RippledWsClient = require('rippled-ws-client')
const RippledWsClientSign = require('rippled-ws-client-sign')
const SeedOrKeypair = 'sXXXXXXXXXXXXXXXXXXXX' // The secret of the sending wallet
// const FinishAfter = Math.floor(new Date('2031-12-01T12:00:00Z') / 1000) - 946684800 /* XRPL Timestamp offset */
const FinishAfter = Math.floor(Date.parse('2018-10-10 12:00:00 GMT+1') / 1000) - 946684800 /* XRPL Timestamp offset */
const Transaction = {
TransactionType: 'EscrowCreate',
@ChuckJHardy
ChuckJHardy / run.js
Created September 28, 2013 16:19
Express Server for ZeroMQ, Socket.io and Angular.js
'use strict';
var express = require('express'),
app = express(),
http = require('http'),
server = http.createServer(app),
path = require('path'),
io = require('socket.io').listen(server),
fs = require('fs'),
zmq = require('zmq'),