You can post a json file with curl
like so:
curl -X POST -H "Content-Type: application/json" -d @FILENAME DESTINATION
so for example:
#!/usr/bin/env python | |
# This script is like generate_image.py from the OSM Mapnik code, | |
# but it renders based on a given centre point, zoom and final image pixel size | |
# Author: Andrew Harvey <[email protected]> | |
# License: CC0 http://creativecommons.org/publicdomain/zero/1.0/ | |
# | |
# To the extent possible under law, the person who associated CC0 | |
# with this work has waived all copyright and related or neighboring |
So there were a few threads going around recently about a challenge to write the longest sequence of keywords in Javascript:
There are, however, a few problems:
set -g symb '▲' | |
set -g leading_brace 0 | |
set -g has_launched 0 | |
function git_info | |
set -l branch (git rev-parse --abbrev-ref HEAD 2> /dev/null) | |
printf "%s(%s%s%s)" $c0 $c1 $branch $c0 | |
set -l changes (git status --porcelain --ignore-submodules 2> /dev/null) |
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
#!/bin/env -S crystal build | |
# Hard Link Generator | |
# Generates hard links for all files in a given folder, | |
# while also finding and replacing strings in the filenames. | |
# | |
# The folder is created for you, but existing files (Running it twice?) will cause errors. | |
# | |
# Usage: |