Skip to content

Instantly share code, notes, and snippets.

@richard512
richard512 / prepare_icons.sh
Last active November 12, 2023 23:02 — forked from Lerg/prepare_icons.sh
Make all app icons with imagemagick, iOS and Android
#!/bin/sh
base=$1
convert "$base" -resize '29x29' -unsharp 1x4 "Icon-Small.png"
convert "$base" -resize '40x40' -unsharp 1x4 "Icon-Small-40.png"
convert "$base" -resize '50x50' -unsharp 1x4 "Icon-Small-50.png"
convert "$base" -resize '57x57' -unsharp 1x4 "Icon.png"
convert "$base" -resize '58x58' -unsharp 1x4 "Icon-Small@2x.png"
convert "$base" -resize '60x60' -unsharp 1x4 "Icon-60.png"
convert "$base" -resize '72x72' -unsharp 1x4 "Icon-72.png"
convert "$base" -resize '76x76' -unsharp 1x4 "Icon-76.png"
@richard512
richard512 / airbnb-search.py
Created November 29, 2017 16:16 — forked from prehensile/airbnb-search.py
A Python script which crawls airbnb search results for a given set of keywords.
#!/usr/bin/env python
#########################
# airbnb-search.py
#########################
# by prehensile, 18/07/17
#########################
# Crawl airbnb search results (descriptions and reviews) for keywords.
# A quick, dirty and brittle set of hacks.
# Very likely to break the next time anything changes in airbnb's HTML.
@richard512
richard512 / VideoWriterTest.py
Created November 27, 2018 21:08 — forked from chriscollins/VideoWriterTest.py
Quick Python program for testing VideoWriter instantiation
import cv2
destination_file = 'video.avi'
fps = 10.0
size = (640, 480)
codecs = [
'4XMV',
'AASC',
'AP41',