Skip to content

Instantly share code, notes, and snippets.

View mickeypash's full-sized avatar
🐢
slow and steady wins the race

Mickey Pashov mickeypash

🐢
slow and steady wins the race
View GitHub Profile
@mickeypash
mickeypash / work-philosophy.txt
Created January 17, 2024 14:50
A set of ideas of how I try to work
Work philosophy
- Make time for yourself, friends and family - you will need to rest, it’s very important, it will help you reflect and prioritise. Your friends and family will energise you, they need to, they will be with you long after you’ve moved on from your job. Parents won’t be around forever!
- Direct your energy - people like to say “focus”. I prefer the visuals of a tennis player serving a ball at 100miles an hour. They need it to land in a particular spot. They also need to conserve their energy on the court for those bigger, game defining moments
- Ask for forgiveness not for permission
- Do things that no one else likes to do - many people after a bit of time at a job will start becoming complacent, they will loose the energy to innovate. Fix things that others are too scare or lazy to do. There is no job that’s beneath you, if there’s a security audit and someone needs to fill in a risk assessment, you do it, manually at first, document your steps automate when you can. Innovate anywhere
- P
@mickeypash
mickeypash / gist:b0b22ab84495fe4b033895a79dd78468
Last active February 5, 2024 13:21
George Hotz - talking hour - 2020-08-31

GoCardless - Tom Blomfield

It all started with Paypal, which resulted in innovation in the consumer payments space. We now have Stripe, SagePay, iZettle, WorldPay, Yapstone, Datacash, Elavon, Braintree, Square.

B2B are stuck in a quagmire for ages. You buy your coffee from Starbuck which is probably a franchise so they buy their coffe beans from a supplier. There 350 billion non-cash payments every year. Thats a big number! B2B constitutes about 10% of them by number but 60% of the value! If you look at banks and payment providers, around 80-90% of the profits are in B2B payments.

counter = {}
for word in words:
counter[word] = counter.get(word, 0) + 1 # we basically count the words in the dict e.g. {'mickey': 1, 'alex': 2, 'anna': 2}
freq = list(counter.keys()) # we set up a list e.g. freq = ['mickey', 'alex', 'anna']
freq.sort(key = lambda x : (-counter[x], x)) # the intention here is to sort by frequency in descending oder 2,1,0...
# .sort (https://docs.python.org/3.3/library/stdtypes.html#list.sort)
# Sort the freq list in place
# takes a key-word argument called 'key' to be used for a comparison function
# lambda (https://docs.python.org/3/reference/expressions.html#lambda)
@mickeypash
mickeypash / russian_fighter_pull_up_program.py
Created July 2, 2020 16:45
It's like a more advanced FizzBuzz
"""
Russian fighter program
Day 1 5, 4, 3, 2, 1
Day 2 5, 4, 3, 2, 2
Day 3 5, 4, 3, 3, 2
Day 4 5, 4, 4, 3, 2
Day 5 5, 5, 4, 3, 2
Day 6 Off
Day 7 6, 5, 4, 3, 2
@mickeypash
mickeypash / productive.py
Created July 2, 2020 13:18
Add this program to your path; Sign up for these sites; When you find a few spare minutes just run it.
#!/usr/bin/env python
import random
import webbrowser
import argparse
urls = {
"keybr": "http://keybr.com/",
"pocket": "https://getpocket.com/random",
"worldindata": "https://ourworldindata.org/",
Python 3 hrs 18 mins ████████████▋░░░░░░░░ 60.3%
Git 30 mins █▉░░░░░░░░░░░░░░░░░░░ 9.2%
YAML 26 mins █▋░░░░░░░░░░░░░░░░░░░ 8.0%
Markdown 21 mins █▍░░░░░░░░░░░░░░░░░░░ 6.6%
Text 15 mins █░░░░░░░░░░░░░░░░░░░░ 4.9%

Mickey's Guide to Glasgow

Flat hunting

  • Where to buy appliances and furniture from? Argos, IKEA
  • How to find the right flat?

Cell phone providers

@mickeypash
mickeypash / game-of-life.py
Created July 10, 2016 10:20
Conway's Really Simple Game of Life based on ("Stop Writing Classes" PyCon 2012)[https://www.youtube.com/watch?v=o9pEzgHorH0]
import itertools
# Conway's Really Simple Game of Life based on "Stop Writing Classes" PyCon 2012
def neighbors(point):
x,y = point
yield x + 1, y
yield x - 1, y
yield x, y + 1
yield x, y - 1