This gist contains links to the resources referenced in the HackFS workshop Developing on Filecoin.
Slides for this presentation can be found here.
- How Filecoin Works: an in-depth system overview by Juan Benet
- Developing on Filecoin by Pooja Shah
// SPDX-License-Identifier: UNLICENSED | |
pragma solidity ^0.8.17; | |
import "@openzeppelin/contracts/utils/Strings.sol"; | |
import "@openzeppelin/contracts/utils/structs/EnumerableMap.sol"; | |
interface IMidpoint { | |
function callMidpoint(uint64 midpointId, bytes calldata _data) external returns(uint256 requestId); | |
} |
This gist contains links to the resources referenced in the HackFS workshop Developing on Filecoin.
Slides for this presentation can be found here.
CREATE TYPE minimum_spanning_tree_internal AS ( | |
d NUMERIC[], | |
a INT[], | |
b INT[], | |
geoms GEOMETRY[], | |
ids TEXT[] | |
); | |
CREATE TYPE minimum_spanning_tree_unit AS ( | |
d NUMERIC, |
import os | |
import urllib | |
import urllib2 | |
import base64 | |
import json | |
import sys | |
import argparse | |
try: | |
import requests | |
except ImportError: |
# With the GeoJSON OGR driver one can use the CartoDB SQL API to create any OGR supported format output | |
# OGR Formats: http://gdal.org/ogr/ogr_formats.html | |
# CartoDB SQL API: http://developers.cartodb.com/documentation/sql-api.html | |
# This sample creates a DXF making a "select the_geom from meteo" from my account at CartoDB | |
ogr2ogr -skipfailures -f DXF out.dxf "http://xurxosanz.cartodb.com/api/v2/sql?q=select%20the_geom%20from%20meteo&format=GeoJSON" OGRGeoJSON |
Forked from @BrianAbelson | |
library('rjson') # For parsing json in R | |
library('RCurl') # For sending an http request | |
library('plyr') # For ddply | |
# Takes an data frame with a unique id column and an address column at the very least | |
# it returns a data frame with the uid, lat, lng and specificity of geocoding | |
# use the uid to join these results back to your data if you want | |
# you can also accomplish roughly the same thing with a for loop instead of ddply |