This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source("helpers.R") | |
plot_3d_route_area <- function(stream, zscale = 15){ | |
# create bounding box for the ride | |
ui("1 of 5: Locating Route...") | |
bbox <- list( | |
p1 = list(long = min(stream$lng), lat = min(stream$lat)), | |
p2 = list(long = max(stream$lng), lat = max(stream$lat)) | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(pacman) | |
# Load packages | |
p_load('pins') | |
# Register Board for data pull | |
board_register("https://raw.githubusercontent.com/predictcrypto/pins/master/","pins_repo") | |
# Pull data | |
stats_hicetnunc <- pin_get("stats_hicetnunc", "pins_repo") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query collectorGallery($address: String = "tz1gqaKjfQBhUMCE6LhbkpuittRiWv5Z6w38") { | |
hic_et_nunc_token(where: {trades: {buyer: {address: {_eq: $address}}}, _and: {token_tags: {tag: {tag: {_like: "jjjjjjjjjjohn"}}, _or: {token: {token_tags: {tag: {tag: {_like: "window"}}}}}}}}, order_by: {id: asc}) { | |
id | |
artifact_uri | |
thumbnail_uri | |
timestamp | |
mime | |
title | |
description | |
supply |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query findSecondarySales($address: String = "tz1c2iwyckUCcicx2qxqtwLEartYFEHg1pvB") { | |
hic_et_nunc_swap(where: {status: {_in: [1]}, token: {swaps: {trades: {buyer: {address: {_eq: $address}}}}}}, order_by: {price: desc}) { | |
price | |
status | |
token { | |
title | |
mime | |
description | |
id | |
artifact_uri |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ghql) | |
library(jsonlite) | |
# Address to lookup: | |
address = "tz1c2iwyckUCcicx2qxqtwLEartYFEHg1pvB" | |
# connect to the endpoint | |
con <- GraphqlClient$new( | |
url = "https://api.hicdex.com/v1/graphql" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FINAL SCRIPT | |
let skull_trigger = 0 | |
// set length of timer for art changing | |
let numSecs=30 | |
// read in all features to overwrite URLs | |
let w1 = parcel.getFeatureById('w1') | |
let w1i = parcel.getFeatureById('w1i')//finger icon for interactive objkt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add script to a button inside Cryptovoxels to return a response | |
feature.on('click',e=>{ | |
// Use GraphQL endpoint to pull data and make model that takes x,y Decentraland coordinates and returns prediction based on the latest 10 sales! | |
fetch('https://api.thegraph.com/subgraphs/name/decentraland/marketplace', { | |
method: 'POST', | |
headers: { | |
'Content-Type': 'application/json', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feature.on('click',e=>{ | |
fetch('https://api.hicdex.com/v1/graphql', { | |
method: 'POST', | |
headers: { | |
'Content-Type': 'application/json', | |
}, | |
body: JSON.stringify({ | |
query: ` | |
query MyQuery { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Automated Backups Cryptovoxels | |
on: | |
schedule: | |
- cron: '0 10 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
query { | |
transactions( | |
tags: [ | |
{ | |
name: "Content-Type", | |
values: ["application/zip"] | |
}, | |
{ | |
name: "Tag-Name", | |
values: ["CryptoVoxelsArchive"] |
OlderNewer