Skip to content

Instantly share code, notes, and snippets.

[{"transaction":{"txId":"3bed2fdaf3d3c22e835fbd705845cd60e07a041318aa465001f2b239d47256c7","time":1562700821769,"status":"pending","statusDetail":"","amount":"0.0100000","asset":{"type":"native","code":"","issuer":"","verifiedDomain":"","issuerName":"","desc":"","infoUrl":""},"displayAmount":"","displayCurrency":"","sourceAmountMax":"","sourceAmountActual":"","sourceAsset":{"type":"","code":"","issuer":"","verifiedDomain":"","issuerName":"","desc":"","infoUrl":""},"isAdvanced":false,"summaryAdvanced":"","operations":null,"fromStellar":"GA6CUYDZJUWLIZEQCZMDP6VEXXIKSNJWJFS4WZOGOOOX5D5ILJLLH7O4","toStellar":"GB2WC4AS4HAGL77UGCDN7WNNXGZ5XMWTVV7YYABHWBT2NKNKHEJSE72N","fromUsername":"dxb","toUsername":"croupier","note":"","noteErr":"","unread":false,"publicNote":"","publicNoteType":"","feeChargedDescription":""},"username":"dxb"},{"transaction":{"txId":"2fe1df162bf616dea9ccfee90bb8315c9834c4832bfd77184292285445b23816","time":1562700837635,"status":"pending","statusDetail":"","amount":"0.0100000","asset":{"type":"na
@zackster
zackster / avaElectronSetup.js
Created January 31, 2020 16:58
Setting up spectron to work with multiple loading windows
/* eslint-disable no-param-reassign */
const { default: PQueue } = require('p-queue');
const clc = require('cli-color');
const electronPath = require('electron'); // Require Electron from the binaries included in node_modules.
const { Application } = require('spectron');
const path = require('path');
const { execSync } = require('child_process');
async function waitForWindowsChange(browser) {
const handles0 = await browser.windowHandles().then((h) => h.value);
@zackster
zackster / solpunks.py
Created August 1, 2021 17:21
linear regression to predict solpunk price based on sales data
import json
import pandas as pd
from sklearn import linear_model
from sklearn.model_selection import train_test_split
def list_traits(a):
return list(map(lambda x: " ".join(x.split(' ')[0:-1]), a.split(',')))
# Load list of all punks
@zackster
zackster / 120.json
Created August 24, 2022 03:54
120 degreers
{
"Supreme Mathematics": {
"0": "Cypher",
"1": "Knowledge",
"2": "Wisdom",
"3": "Understanding",
"4": "Culture",
"5": "Power",
"6": "Equality",
"7": "God",