Skip to content

Instantly share code, notes, and snippets.

@ries9112
ries9112 / CV_API_pull.R
Created August 22, 2021 02:31
R script that pulls all data for CV parcels, then collects data about their prices using opensea API
# https://wiki.cryptovoxels.com/en/External-API
# Pull data from opensea using vox tokenIDs pulled in grt_vox_pull_tokenID.R
library(jsonlite)
library(httr)
library(tidyverse)
# example
url <- 'https://www.cryptovoxels.com/api/parcels.json'
# Get the data from the url
@ries9112
ries9112 / CV_backup.yml
Created July 15, 2021 12:37
arweave CV backups GithubActions
name: Automated Backups Cryptovoxels
on:
schedule:
- cron: '0 10 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
@ries9112
ries9112 / CV_pull_TheGraph
Created June 29, 2021 11:53
CV pull data using TheGraph
// 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 document walks you through the steps to prepare a wget compatible link from a file that is located in your Google Drive.

Motivation: When working in Deep Learning, we often use Google Colab, Kaggle Kernels, or Cloud Instances for training our models on GPUs. But the problem that comes with it is we often have to upload all the necessary files required to get things up and running. This is particularly problematic when we have a large dataset and this cannot be uploaded/gathered directly (sometimes, scp does not work as well). We may have a dataset stored in our Google Drives. In situations like that, we generally create a wget compatible link from the file (typically the dataset) located in our Google Drive (this document only deals with Google Drive).

Steps:

  • Right click on the file (located in Google Drive) and click on "Share".
  • In the Link sharing on section, change the permissions of your file to "Anyone with the link can view" and copy the link.
  • Now, the link should resemble `
@baradhiren
baradhiren / Termux_Youtube_Downloader.sh
Last active September 10, 2022 16:51
This script will automatically create necessary environment to download videos using Termux+YoutubeDL.
#!/bin/bash
###############################################################################################################
######
###### Author : Hiren Barad
###### Date : 22-Aug-2018
###### Version : 1.0
###### FileName : Termux_Youtube_Downloader.sh
###### Description : This script will create a folder with name as Youtube in your Phone's main memory,
anonymous
anonymous / log.js
Created March 16, 2018 14:20
const log = {}
const availableColors = [
"aliceblue", "antiquewhite", "aqua", "aquamarine", "azure", "beige", "bisque", "black", "blanchedalmond", "blue", "blueviolet", "brown", "burlywood", "cadetblue", "chartreuse", "chocolate",
"coral", "cornflowerblue", "cornsilk", "crimson", "cyan", "darkblue", "darkcyan", "darkgoldenrod", "darkgray", "darkgrey", "darkgreen", "darkkhaki", "darkmagenta", "darkolivegreen", "darkorange",
"darkorchid", "darkred", "darksalmon", "darkseagreen", "darkslateblue", "darkslategray", "darkslategrey", "darkturqoise", "darkviolet", "deeppink", "deepskyblue", "dimgray", "dimgrey",
"dodgerblue", "firebrick", "floralwhite", "forestgreen", "fuchsia", "gainsboro", "ghostwhite", "gold", "goldenrod", "gray", "grey", "green", "greenyellow", "hondeydew", "hotpink", "indianred",
"indigo", "ivory", "khaki", "lavendar", "lavendarblush", "lawngreen", "lemonchiffon", "lightblue", "lightcoral", "lightcyan", "lightgoldenrodyellow", "lightgray", "lightgrey",
"lightgreen", "lig
@tterb
tterb / README-badges.md
Last active December 11, 2024 06:43
A collection of README badges

Badges

License

MIT License GPLv3 License AGPL License

Version

Version GitHub Release

@voku
voku / gist:d958041e7b1c19356e721de1eda1e6f8
Last active September 8, 2022 11:35
.htaccess with many options + description
# Apache Server Configs v5.1.0 | MIT License
# https://github.com/h5bp/server-configs-apache
# (!) Using `.htaccess` files slows down Apache, therefore, if you have
# access to the main server configuration file (which is usually
# called `httpd.conf`), you should add this logic there.
#
# https://httpd.apache.org/docs/current/howto/htaccess.html
# ######################################################################
@marcopompili
marcopompili / TrackballControls.js
Last active February 23, 2024 08:31
GeoJSON Test
/**
* @author Eberhard Graether / http://egraether.com/
*/
THREE.TrackballControls = function ( object, domElement ) {
var _this = this;
var STATE = { NONE: -1, ROTATE: 0, ZOOM: 1, PAN: 2, TOUCH_ROTATE: 3, TOUCH_ZOOM: 4, TOUCH_PAN: 5 };
this.object = object;
@kjlubick
kjlubick / LICENSE
Last active September 8, 2024 16:49
Exports a THREE.js scene mesh to STL, making it suitable for 3d printing
The MIT License
Copyright © 2010-2016 three.js authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions: