https://images.climatecentral.org/web-image/?url=https%3A%2F%2Fgraphics.climatecentral.org%2F%2F%3Fseries%3Dmean_tavg%26season%3Doctober%26marketSlug%3Dabilene&delay=1000&waitLimit=4000&cache=persist https://images.climatecentral.org/web-image/?url=https%3A%2F%2Fgraphics.climatecentral.org%2F%2F%3Fseries%3Dmean_tavg%26season%3Doctober%26marketSlug%3Dalbanyga&delay=1000&waitLimit=4000&cache=persist https://images.climatecentral.org/web-image/?url=https%3A%2F%2Fgraphics.climatecentral.org%2F%2F%3Fseries%3Dmean_tavg%26season%3Doctober%26marketSlug%3Dalbanyny&delay=1000&waitLimit=4000&cache=persist https://images.climatecentral.org/web-image/?url=https%3A%2F%2Fgraphics.climatecentral.org%2F%2F%3Fseries%3Dmean_tavg%26season%3Doctober%26marketSlug%3Dalbuquerque&delay=1000&waitLimit=4000&cache=persist https://images.climatecentral.org/web-image/?url=https%3A%2F%2Fgraphics.climatecentral.org%2F%2F%3Fseries%3Dmean_tavg%26season%3Doctober%26marketSlug%3Dalexandriala&delay=1000&waitLimit=4000&cache=persist https://image
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 node | |
/* global process */ | |
var fs = require('fs'); | |
if (process.argv.length < 4) { | |
console.error( | |
'Usage: node make-index.js <comma-separated desired file exts, e.g. mp4,gif> <directory with files>' | |
); | |
process.exit(1); |
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
// Paste this into the console and get ready to click "Save" in response to the save dialog a bunch of times. Or better yet, disable asking where to save in your browser. | |
var buttons = document.querySelectorAll('.sc-button-more') | |
var index = 0; | |
function moreNext() { var more = buttons[index]; more.click(); ++index; setTimeout(dl, 500); } | |
function dl() { var dlButton = document.querySelector('.sc-button-download'); dlButton.click(); if (index < buttons.length) { setTimeout(moreNext, 100);}} | |
moreNext(); |
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 node | |
/* global process */ | |
var fs = require('fs'); | |
var imgFileExts = ['png', 'jpg']; | |
if (process.argv.length < 3) { | |
console.error( | |
'Usage: node make-index.js <directory with images>' |
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
[Desktop Entry] | |
Name=Obsidian | |
GenericName=Notes organizer | |
Comment=Organize notes | |
Exec=/home/jimkang/apps/Obsidian-1.0.3.AppImage | |
Terminal=false | |
Type=Application | |
Keywords=notes;organizer; | |
Keywords[fr]=Texte;éditeur; | |
Keywords[ru]=текст;текстовый редактор; |
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 getYourClass(targetClass) { document.getElementById('roll-button').click(); setTimeout(() => { if (document.getElementById('class').textContent !== targetClass) { window.requestAnimationFrame(() => getYourClass(targetClass)); }}, 0) } | |
getYourClass('Ranger') | |
// Edit selector to check things other than strength. | |
function getYourScore(minScore) { document.getElementById('roll-button').click(); setTimeout(() => { if (+document.querySelector('.row:first-child .ability-score-column').textContent < minScore) { window.requestAnimationFrame(() => getYourScore(minScore)); }}, 0) } | |
getYourScore(16) |
The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
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 | |
for file in *.zip | |
do | |
filename="${file%.*}" | |
# Filenames can't contain /. So, I wonder | |
# what Bandcamp would do if they had AC/DC? | |
unzippath=$(echo "$filename" |sed -e 's/ - /\//') | |
mkdir -p "$unzippath" | |
unzip "$filename" -d "$unzippath" |
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 | |
src=. | |
start=$1 | |
end=$2 | |
if [[ ! $start ]] && [[ ! $end ]]; then | |
printf "Usage: ./tools/get-entries-in-date-range.sh [start string] [end string]\nEnd string is optional.\n\nExample: To get filenames that come after 2020-03 (anywhere in March) but before 2020-03-29 (assuming files follow this naming convention):\n./tools/get-entries-in-date-range.sh 2020-03 2020-03-29\n"; | |
exit 1; | |
fi |
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 pickle | |
import json | |
data = pickle.load(open('file.pkl', 'rb')) | |
out_file = open("out.json", "w") | |
out_file.write(json.dumps(data)) |
NewerOlder