Skip to content

Instantly share code, notes, and snippets.

@tacyarg
tacyarg / index.html
Created June 12, 2021 17:51
Provable Example // source https://jsbin.com/kiqiguf
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Provable Example</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>
function useDebounce(value, delay = 500) {
const [debouncedValue, setDebouncedValue] = useState(value);
useEffect(() => {
// Set debouncedValue to value (passed in) after the specified delay
const handler = setTimeout(() => {
setDebouncedValue(value);
}, delay);
return () => {

Keybase proof

I hereby claim:

  • I am tacyarg on github.
  • I am tacyarg (https://keybase.io/tacyarg) on keybase.
  • I have a public key ASBCOxGMvQW0CuGYhwCk0mmmPq5lbz17h63JUQ_kc2X3fQo

To claim this, I am signing this object:

@tacyarg
tacyarg / provider_FAQ.md
Last active December 13, 2019 16:33
Provider documentation for fundingrate.io

What is a provider?

A provider allows you to connect your tradingview indicators to the FundingRate marketplace. Fundingrate will generate a way to use those events to automate trades, as well as track historical data, profitability metrics with mock or actual trades.

Why do you need one?

To be able to do anything on fundingrate you need a provider. They provide you an api token, this token can be used to submit api actions or tradingview webhook events.

How do I create a provider?

@tacyarg
tacyarg / fundingrateio_howto.md
Last active December 10, 2019 20:53
Fundingrate.io | How to tutorial

What Is this?

Fundingrate.io simply stated is an event processing platform. By providing a well documented developer API and intuitive interface, we aim to allow provide our customers with the ability to submit Tradingview Alert events using JSON. This allows Fundingrate to provide may tools, statistics and insights not normally available. Using these insights, our customers can leverage a large library of existing providers & plugins or they can choose to utilize and write their own. This gives our customers complete flexibility and control from event to trade execution, along with the added abilities to automate, monitor, record in realtime.

What are our company goals?

Below is a list of our company goals, they hopefully represent out values and objectives.

Transparency

When our customers are normally shopping for trade bots or indicators nothing is transparent. All statistics, claims, reviews, sales are redacted or obscure. So when shopp

@tacyarg
tacyarg / fundingrateio_faq.md
Last active October 6, 2019 13:13
Fundringrate.io FAQ talking points.

Fundingrate.io FAQ

  • Below are a few of the commonly asked questions by our customers.

Account & Registration

How do I create a new account?

  • To create a Fundingrate.io account you simply click the "authenticate" link on the lefthand side of the site.
  • Once there, follow the prompts to either login or register a username.

What happens if a lose my token?

import { TimelineMax, Circ, TweenMax } from 'gsap'
import { random } from 'lodash'
let tw = new TimelineMax()
function setupAudio(sound) {
const volume = sound ? 1 : 0
const start = new Audio('START_SOUND_URL')
start.volume = volume
@tacyarg
tacyarg / animate.js
Created April 15, 2019 15:04
how to animate a sprite sheet
export default ({ imageurl, width = 200, height = 200, scale = 1 }) => {
let img = new Image()
img.src = imageurl
img.onload = loop()
let canvas = document.querySelector('canvas')
let ctx = canvas.getContext('2d')
const scaledWidth = scale * width
const scaledHeight = scale * height