Skip to content

Instantly share code, notes, and snippets.

@ayhanfuat
ayhanfuat / europython_schedule.py
Last active July 28, 2021 15:36
Scrapes the data for EuroPython talks and writes to a CSV file to upload to a calendar
from pandas import DataFrame
from bs4 import BeautifulSoup
import requests
from calendar import month_abbr
import datetime
base = 'https://ep2021.europython.eu'
sessions_url = f'{base}/events/sessions/'
resp = requests.get(sessions_url)
soup = BeautifulSoup(resp.text, 'html.parser')
@movd
movd / DeRancilio.md
Created June 26, 2020 20:50
Delonghi Dedica 680 Rancilio Silvia wand modification (originally created by Chris Faulds)

This very detailed guide was originally written by Chris Faulds and used to be available at cfdesign.work/derancilio. Unfortunately, his website is no longer online. Thanks to the Wayback Machine the article is still readable. But since the presentation is a bit wonky, I decided to mirror his awesome tutorial is this gist.

Chris has spent a huge amount of time writing an in-depth instruction on how to take the machine apart, which may also come in handy for other repairs for the Dedica 680/685. Again all credits go to him. Thanks a lot for the great work!

DeRancilio Index Banner

Delonghi Dedica 680 Rancilio Silvia wand modification

Monday 1st August 2016

@dabeaz
dabeaz / README.txt
Created October 15, 2019 20:10
PyCon India 2019, Code from Keynote Presentation by @dabeaz
Code from PyCon India 2019 Keynote Talk
David Beazley (https://www.dabeaz.com)
======================================
This code is presented "as is" and represents what was live-coded
during my closing keynote presentation at PyCon India, Chennai,
October 13, 2009. I have made no changes to the files.
Requires: Python 3.6+, numpy, pygame
@nvbn
nvbn / Summer trip adventure.ipynb
Last active September 28, 2024 06:23
Fix typos
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kelvinn
kelvinn / InstallPythonGDAL.md
Last active July 28, 2024 14:08
Installing GDAL (Python 3.6) on Mac OS X

How-To: Install GDAL Python Bindings

I've found two ways to install the GDAL Python bindings on Mac.

Via GDAL Framework / QGIS

First, you can install the GDAL Framework via QGIS (or get it directly), and then do...

@michaelcypher
michaelcypher / optimize_comprehensions.py
Created April 17, 2018 04:20
Transforming Python ASTs to Optimize Comprehensions
import inspect
from ast import comprehension [136/153]
from ast import dump
from ast import fix_missing_locations
from ast import parse
from ast import List
from ast import Load
from ast import DictComp
from ast import GeneratorExp
from ast import SetComp
import asyncio
loop = asyncio.get_event_loop()
async def hello():
await asyncio.sleep(3)
print('Hello!')
if __name__ == '__main__':
loop.run_until_complete(hello())