Skip to content

Instantly share code, notes, and snippets.

View matagus's full-sized avatar
🐿️

Matías Agustín Méndez matagus

🐿️
View GitHub Profile
"""
This file is based on https://github.com/foresmac/django-binaryuuidfield/tree/initial-setup
"""
import uuid
from django import forms
from django.core import exceptions
from django.db import models
from django.utils.translation import ugettext_lazy as _
@arieltorti
arieltorti / pasoscraper.py
Last active November 8, 2019 16:17
PASO 2019 Scraper
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Author: Ariel Torti
# @GitHub: github.com/maks500
import argparse
import logging
import os
import shutil
import sys
import time
@hydrosquall
hydrosquall / index.md
Last active January 8, 2022 19:35
Building Inclusive Code Review Culture
@Cryptophobia
Cryptophobia / changelog-v2.21.0.md
Created May 6, 2019 00:34
Hephy Workflow v2.21.0 Changelog

Releases

  • router v2.15.1 -> v2.16.0
  • slugbuilder v2.7.0 -> v2.7.1
  • workflow v2.20.2 -> v2.21.0
  • workflow-cli v2.20.2 -> v2.21.0
  • workflow-e2e v2.20.2 -> v2.21.0

Features

@keijiro
keijiro / 00_blot5.md
Last active October 15, 2021 12:13
KodeLife fragment shader sketch

gif

@tricoder42
tricoder42 / 00_GraphQL_Subscriptions.md
Last active September 10, 2024 20:00
GraphQL Subscriptions with django-channels

GraphQL Subscription with django-channels

Django channels are official way for implementing async messaging in Django.

The primary caveat when working with GraphQL subscription is that we can't serialize message before broadcasting it to Group of subscribers. Each subscriber might use different GraphQL query so we don't know how to serialize instance in advance.

See related issue

@4383
4383 / client.py
Last active September 29, 2021 15:03
asyncio - shared socket between coroutines
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import asyncio
async def init_socket (loop):
reader, writer = await asyncio.open_connection('127.0.0.1', 3000, loop=loop)
return reader, writer
@mendhak
mendhak / update-another-users-pullrequest.md
Last active July 26, 2023 07:35
Update a pull request by pushing to another user's forked repository

Add the other user as a remote

#Using https
git remote add otheruser https://github.com/otheruser/yourrepo.git
# Or - Using SSH
git remote add otheruser [email protected]:otheruser/yourrepo.git

Fetch

git fetch otheruser