Skip to content

Instantly share code, notes, and snippets.

View alexfilatov's full-sized avatar
🤩
Having fun doing stuff

Alex Filatov alexfilatov

🤩
Having fun doing stuff
  • London, UK
  • 10:15 (UTC)
View GitHub Profile
@alexfilatov
alexfilatov / US Zip Codes from 2013 Government Data
Created May 12, 2018 12:41 — forked from erichurst/US Zip Codes from 2013 Government Data
All US zip codes with their corresponding latitude and longitude coordinates. Comma delimited for your database goodness. Source: http://www.census.gov/geo/maps-data/data/gazetteer.html
This file has been truncated, but you can view the full file.
ZIP,LAT,LNG
00601,18.180555, -66.749961
00602,18.361945, -67.175597
00603,18.455183, -67.119887
00606,18.158345, -66.932911
00610,18.295366, -67.125135
00612,18.402253, -66.711397
00616,18.420412, -66.671979
00617,18.445147, -66.559696
@alexfilatov
alexfilatov / Transformer.ex
Created August 6, 2018 21:00 — forked from trojanh/Transformer.ex
Create Image thumbnail using ImageMagick in Elixir
defmodule Image.Transformer do
def transform(original_file, operation \\ "convert") do
thumb_path = generate_thumb_file(original_file)
System.cmd(operation, operation_commands(original_file_path, thumb_path))
thumb_path
end
defp generate_thumb_file(original_file) do
@alexfilatov
alexfilatov / shopifystores.csv
Created February 25, 2019 17:08
List of ~10k Shopify Stores
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Store
https://jeffsmith.myshopify.com
https://kimmo.myshopify.com
https://dorkbot.myshopify.com
https://jeffsmith.myshopify.com
https://kimmo.myshopify.com
https://dorkbot.myshopify.com
https://mp3player.myshopify.com
https://tiner.myshopify.com
https://pict.myshopify.com
Our marketing team have added another promotions as an incentive for our customers to purchase these items.
If you buy 3 Kids T-shirt then the third one is free.
Test data
---------
Basket: 003, 003
Total price expected: £39.90

Challenge

-------------------------------------------

our client is an online marketplace, here is a sample of some of the products available on our site:

Product code  | Name                   | Price
----------------------------------------------------------
001 | Lavender heart | £9.25
@alexfilatov
alexfilatov / git_worktree.sh
Created August 1, 2025 19:26
git worktree creation script - automate parallel feature development
#!/bin/bash
# Git Worktree Creation Script
#
# INSTALLATION INSTRUCTIONS:
# To use this script globally from any directory:
#
# 1. Copy this script to a global location:
# sudo cp git_worktree.sh /usr/local/bin/git-worktree
# sudo chmod +x /usr/local/bin/git-worktree
@alexfilatov
alexfilatov / Breaking Prod.svg
Created August 4, 2025 09:59
Breaking Prod T-Shirt print
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.