Skip to content

Instantly share code, notes, and snippets.

View sharedphysics's full-sized avatar
🥝
Founder & CEO, Recommended Systems

Roman K. sharedphysics

🥝
Founder & CEO, Recommended Systems
View GitHub Profile
@sharedphysics
sharedphysics / tristate-counties.geojson
Created March 31, 2021 21:51
GeoJSON File of the NY-NJ-PA (Tristate) Counties.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sharedphysics
sharedphysics / 1 - Optimising Product Images for Web, Local Version.md
Last active May 19, 2020 13:50
Optimising Product Images with ImageMagick for Web on Your Local Computer

Guide to Locally Optimising Product Images For Web with Image Magick

All tools for image formatting, compression, and rule-based/bulk processing should be tested for quality before being put into active use.

We spend quite a deal of time and effort to make images that look really great, and it’s silly to throw that away just because the bulk-processing tool at the last step is convenient. Because customer experience and our site’s performance both depend a lot on the speed of the page, we should do everything possible to balance image-quality and image-size concerns.

By processing, resizing, and compressing these images, we can compare any new tools back against the originals and against a full-quality photoshop export w/ the same constraints (the .psd file is there too).

Processes we’ve tested:

  • ImageMagik
@sharedphysics
sharedphysics / deploy-hugo-on-github.sh
Last active December 18, 2021 19:30
Automating Hugo Deployment on GitHub Pages
#!/bin/sh
############
# The following script is to help automate deployment of hugo sites on github pages.
# If you're just getting started, I recommend reading my full notes here:
# https://www.romandesign.co/setting-up-a-hugo-static-site-on-github/
#
# To run it, make sure you have made some site updates to deploy and via terminal in your backend and save the code in your hugo backend repo.
# Then type the following (no $):
#