Skip to content

Instantly share code, notes, and snippets.

@tacyarg
tacyarg / chipsgg-docs.md
Last active March 12, 2018 05:02
Chipsgg documentation.
@tacyarg
tacyarg / pubgzone_readme.md
Last active November 25, 2017 12:20
PUBGZONE.COM API DOCUMENTATION
@tacyarg
tacyarg / index.html
Created March 29, 2018 16:55
Provable Outcome Verification // source http://jsbin.com/yagidew
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Provable Outcome Verification</title>
<script src="https://rawgit.com/daywiss/provable/master/dist/provable.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css"></script>
</head>
@tacyarg
tacyarg / provable.js
Created August 2, 2018 21:32
provable hash chain generation
var Provable = require('provable')
var lodash = require('lodash')
var assert = require('assert')
var uuid = require('uuid/v4')
//special cofactors
var e = Math.pow(2,52)
var t = 6e-5
var tinv = 1/t
var maxHex = 13
@tacyarg
tacyarg / api.md
Last active September 17, 2018 03:57
Flipaskin.com API Documentation
@tacyarg
tacyarg / flipaskin_faq.md
Last active September 18, 2018 17:06
Flipaskin.com FAQ Questions

FAQ

What is flipaskin?

  • Flipaskin is a virtual asset exchange platform allowing the transfer of assets between the OPSkins express trade API and Steam.

What assets are currently supported?

  • For the initial release we explicitly support Steam to VGO key exchanges. In the future we will be expanding to support all Steam and VGO assets.

What are VGO skins?

Vgo skins are items generated on the blockchain by opskins. You can read more in depth about thier mission here.

@tacyarg
tacyarg / map.js
Last active September 20, 2018 21:18
examples of mapping using various methods
function makeStudentsReport(data) {
const dataArray = [];
for(let e = 0; e < data.length; e++) {
const element = data[e];
dataArray.push(`${element.name}: ${element.grade}`);
}
return dataArray;
}
function makeStudentsReport(data) {
@tacyarg
tacyarg / jackpot.js
Last active January 15, 2019 15:08
jackpot game methods, state-machine and ticket generation.
const generateRandomColor = function() {
var letters = '0123456789ABCDEF'
var color = '#'
for (var i = 0; i < 6; i++) {
color += letters[Math.floor(Math.random() * 16)]
}
return color
}
function canJoin(gameid, bet) {
@tacyarg
tacyarg / wet.js
Created December 12, 2018 12:16
Simple wax express trade wrapper with a few helper funtions
const assert = require('assert')
const axios = require('axios')
const join = require('url-join')
const lodash = require('lodash')
const Promise = require('bluebird')
const twoFactor = require('node-2fa')
const BASE_URL = 'https://api-trade.opskins.com'
module.exports = function(config) {
@tacyarg
tacyarg / api.md
Last active March 23, 2019 17:43
Vunbox.com API

Vunbox.com API - March 21, 2019

Actions

/

List all available actions

Returns array of possible api methods.

/listUserStats