Skip to content

Instantly share code, notes, and snippets.

View vanessa's full-sized avatar

Vanessa vanessa

View GitHub Profile
@marcelgsantos
marcelgsantos / documentacao-arquitetura-de-sistemas.md
Last active March 12, 2024 19:03
Documentação de Arquitetura de Sistemas - Compilado de Perguntas e Respostas Feitas na Comunidade

Questões sobre Documentação da Arquitetura de Sistemas

1. Perguntas

Fiz algumas perguntas nas redes sociais e ferramentas de comunicação como Twitter, LinkedIn, Slack, Discord e Telegram sobre como as pessoas costumam documentar a arquitetura de sistemas.

  1. Vocês costumam desenhar diagramas para documentar a arquitetura dos sistemas que vocês constroem?

  2. O que vocês costumam representar: código, infraestrutura ou ambos?

@rvlb
rvlb / directory_structure.txt
Created May 11, 2018 02:27
Como fazer uma busca em Django ignorando acentuação independente de banco de dados
manage.py
utils.py
templates/
- foo/
- search.html
foo/
- models.py
- views.py
@fjsj
fjsj / talk-types.md
Last active March 25, 2024 20:21
PyCon and DjangoCon commonly accepted talk types (with examples)

Tutorial-like

Best/worst practices

@espozbob
espozbob / install_python3_6_on_C9.md
Last active May 11, 2019 16:31
Install Python3.6 on the C9
$ wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz

$ tar xvf Python-3.6.3.tgz

$ cd Python-3.6.3

$ ./configure --enable-optimizations

$ make -j8
@traumverloren
traumverloren / style.css
Last active January 7, 2024 14:05
VSCode Customizations for Operator Mono, Fira Code, and Dark Candy Theme
/*
Instructions for MacOS:
- Install the fonts 'Operator Mono' & 'Fira Code'
- Install theme 'Dark Candy'
- Add the following config to the VS Code settings.json:
{
"editor.renderWhitespace": "all",
"editor.fontSize": 14,
@NigelEarle
NigelEarle / Knex-Migrations-Seeding.md
Last active June 19, 2024 14:20
Migration and seeding instructions using Knex.js!

Migrations & Seeding

What are migrations??

Migrations are a way to make database changes or updates, like creating or dropping tables, as well as updating a table with new columns with constraints via generated scripts. We can build these scripts via the command line using knex command line tool.

To learn more about migrations, check out this article on the different types of database migrations!

Creating/Dropping Tables

@nnja
nnja / post-merge
Created October 2, 2017 01:19
Git Hook: Example post-merge hook that checks for updates to requirements.txt
#!/usr/bin/env python
import sys
import subprocess
diff_requirements = 'git diff ORIG_HEAD HEAD --exit-code -- requirements.txt'
exit_code = subprocess.call(diff_requirements.split())
if exit_code == 1:
print 'The requirements file has changed! Remember to install new dependencies.'
else:
@picaso
picaso / base_repo.py
Last active August 1, 2021 07:11
Repository pattern
from typing import Generic, TypeVar, Optional, List
from sqlalchemy.exc import SQLAlchemyError
from db.postgres_db.db_manager import DBManager
from db.postgres_db.models import db
T = TypeVar('T', bound=db.Model)
@katylava
katylava / Dockerfile
Last active March 27, 2023 18:09
docker-compose with Django and ipdb
FROM python:3.5.1
MAINTAINER Katy Lavallee <katylava@gmail.com>
RUN mkdir -p /dockeripdb/
ENTRYPOINT ["/usr/local/bin/python"]
WORKDIR /dockeripdb/
ENV PYTHONPATH /dockeripdb/
ENV DJANGO_SETTINGS_MODULE dockeripdb.settings
// npm install --save scrollreveal or install like you're used to doing it.
// It doesn't work well if there are multiple instances of ScrollReveal,
// so we have to create a module returning an instance:
// file ScrollReveal.js:
import ScrollReveal from 'scrollreveal'
export default ScrollReveal()
// Then in a component:
import React from 'react'
import sr from './ScrollReveal'