Quickly convert KML to GeoJSON
or GeoJSON to SVG
and concatenate multiple GeoJSON
files via the terminal.
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
{ | |
"f5615ba6-a142-440f-ac38-d20d9a05fcc4": { | |
"forceTags": ["force-youtube"], | |
} | |
} |
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
{ | |
"Stations": [ | |
{ | |
"Code": "A01", | |
"Name": "Metro Center", | |
"StationTogether1": "C01", | |
"StationTogether2": "", | |
"LineCode1": "RD", | |
"LineCode2": null, | |
"LineCode3": null, |
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 { useRef } from 'react'; | |
import { useRouter } from 'next/router'; | |
export default function SearchComponent() { | |
const searchInputRef = useRef(null); | |
const router = useRouter(); | |
const search = (event) => { | |
event.preventDefault(); |
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/node | |
const { Octokit } = require('@octokit/rest') | |
const octokit = new Octokit({ | |
auth: AUTH_TOKEN, | |
}) | |
const addTeam2Repo = async () => { | |
try { | |
await octokit.teams.addOrUpdateRepoInOrg({ |
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
function dateConverter(timeStamp){ | |
var UNIX_timestamp = new Date(timeStamp.replace(/\s/, 'T')).getTime(); | |
var a = new Date(UNIX_timestamp); | |
var months = ['Jan.','Feb.','March','April','May','June','July','Aug.','Sept.','Oct.','Nov.','Dec.']; | |
var year = a.getFullYear(); | |
var month = months[a.getMonth()]; | |
var day = a.getDate(); | |
var time = month + ' ' + day + ', ' + year ; | |
return time; | |
} |
Quickly create, edit, compose or convert images from the command line.
$ brew install imagemagick
Quickly resize, convert, extract audio from videos and edit audio from the command line.
A complete, cross-platform solution to record, convert and stream audio and video. https://ffmpeg.org
Install Homebrew first
The t command-line Twitter tool is a great way to work with Twitter information in a spreadsheet.
Its homepage with good installation instructions is here:
https://github.com/sferik/t
And I've written some related instructions about how to get an authentication token from Twitter:
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 csv | |
import time | |
from pygeocoder import Geocoder | |
from pygeocoder import GeocoderError | |
# We can only geocode up to 2500 properties a day (per IP Address) | |
input_file = open('data.csv', 'r') # Opens the .csv file | |
output_file = open('data_new.csv', 'w') # Make an empty .csv This is where your geocodes will end up. | |
data = csv.reader(input_file) |
NewerOlder