Skip to content

Instantly share code, notes, and snippets.

View dmanchon's full-sized avatar

Daniel Manchon dmanchon

View GitHub Profile
import requests
from ics import Calendar, Event
def main():
url = "https://sitgesfilmfestival.com/ca/service/films/2023"
r = requests.get(url)
body = r.json()
c = Calendar()
for session in body["sessions"]:
~ » curl -L http://510bf63a.ngrok.io/naugthy ~
* hola *
tramos = [
(0, 12450, 19),
(12450, 20200, 24),
(20200, 35200, 30),
(35200, 60000, 37),
(60000, None, 45)
]
def calculo(salario, pagas=12):
t = []
@dmanchon
dmanchon / asyncio.py
Created August 17, 2017 00:32
Test ensure future asyncio
import asyncio
import concurrent.futures
import functools
import random
import time
import uuid
async def func(_id):
delay = random.randint(1, 20)

Keybase proof

I hereby claim:

  • I am dmanchon on github.
  • I am dmanchon (https://keybase.io/dmanchon) on keybase.
  • I have a public key whose fingerprint is 4FE8 A7A9 F432 4003 349B CE32 A3C5 7D1E 46D6 F89A

To claim this, I am signing this object:

(use-package counsel :ensure t
:bind*
(("M-x" . counsel-M-x)
("C-s" . swiper)
("C-c d d" . counsel-descbinds)
("C-c s s" . counsel-ag)
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix

Keybase proof

I hereby claim:

  • I am dmanchon on github.
  • I am dmanchon (https://keybase.io/dmanchon) on keybase.
  • I have a public key whose fingerprint is 5ED5 477F A8E9 6F75 2B00 0CBD A04B C5FA 265E 4228

To claim this, I am signing this object: