Skip to content

Instantly share code, notes, and snippets.


Miklós kmikiy

View GitHub Profile
View machine.js
const addLockedOpening = assign({
openings: (ctx) => [...ctx.openings, {locked: true}]
const addUnlockedOpening = assign({
openings: (ctx) => [...ctx.openings, {locked: false}]
const removeOpening = assign({
kmikiy /
Last active May 23, 2021
Google Sheets Apps Script for fetching latest crypto price from Binance
function BINANCE_PRICE(coinsymbol, pair) {
var url = ""+coinsymbol.toUpperCase()+pair.toUpperCase()
var response = UrlFetchApp.fetch(url, {'muteHttpExceptions': true});
var json = response.getContentText();
var data = JSON.parse(json);
return data.price