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
// This is universal, works with Infura -- set provider accordingly | |
const ethers = require('ethers') | |
//const provider = ethers.getDefaultProvider('rinkeby') | |
const provider = new ethers.providers.JsonRpcProvider(process.env.WEB3_URL) | |
function hex_to_ascii(str1) { | |
var hex = str1.toString(); | |
var str = ''; | |
for (var n = 0; n < hex.length; n += 2) { |
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
import argparse | |
import os | |
import pdal | |
def generate_dsm(input_fn): | |
"""Given an input point cloud, create a DSM GeoTIFF""" | |
def build_pipeline(): | |
"""Create a JSON pipeline for consumption by PDAL.""" |
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
#!/usr/bin/env python | |
import lcm | |
import multiprocessing | |
import argparse | |
def try_port(port, channel, timeout): | |
"""Look for LCM channel on port""" | |
def handler(c, d): |
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
execute pathogen#infect() | |
" turn on filetype plugin for csv-vim to work | |
:filetype plugin on | |
" enable helptags for command-t | |
call pathogen#helptags() | |
" Enable syntax highlighting. | |
syntax on |
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
#!/bin/bash | |
function complete_remote_paths() { | |
word_to_complete=${COMP_WORDS[COMP_CWORD]} | |
command_line=${COMP_LINE} | |
# If the command line contains ^/ we should start completing | |
if [[ "$command_line" == *^/* ]]; then | |
# Create a base path for svn to use which only contains complete folder | |
# names. Examples: | |
# ^/bra => ^/ |
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
cleaned_data = ( | |
[self.process_cleaned_data(form_data) for form_data in cleaned_data] if isinstanced(cleaned_data, list) | |
else self.process_cleaned_data(cleaned_data) | |
) |
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
# ~/.bashrc: executed by bash(1) for non-login shells. | |
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
# for examples | |
# If not running interactively, don't do anything | |
case $- in | |
*i*) ;; | |
*) return;; | |
esac |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
margin-top: 70px; | |
margin-left: 25px; | |
} | |
svg { | |
font: 10px sans-serif; |
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
<!DOCTYPE html> | |
<meta charset="utf-8"> | |
<style> | |
body { | |
} | |
.land { | |
fill: white; | |
stroke: #bbb; |
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
#!/usr/local/bin/python | |
import csv | |
def date_to_winter(): | |
f = csv.reader(open('vt-temp.csv', 'rU')) | |
dates = [l for l in f] | |
del dates[0:2] | |
date_row = [] |
NewerOlder