Skip to content

Instantly share code, notes, and snippets.

View rg3915's full-sized avatar
🏠
Working from home

Regis Santos rg3915

🏠
Working from home
View GitHub Profile
@rg3915
rg3915 / README.md
Created February 10, 2023 17:28
sync fork SciELO

Fluxo das branchs e sincronização dos forks

  • Fazer um fork do repositório

E clonar a partir do seu repositório.

git clone [email protected]:<SEU-USERNAME>/core.git
@rg3915
rg3915 / README.md
Created January 30, 2023 20:30
Aplicando filtros por Inquilino

O importante é aplicar o filtro corretamente.

@rg3915
rg3915 / README.md
Last active January 30, 2023 15:36
Django: Permissões no template - django permissions template
@rg3915
rg3915 / README.md
Created January 18, 2023 06:25
Como escrever um bom gist

Como escrever um bom gist

Escreva em Markdown.

Repare que eu tenho um README.md e outros arquivos.

  • Se for dúvidas, descreva o problema. Ex:

Problema

@rg3915
rg3915 / README.md
Created December 23, 2022 05:28
django form default value

Objetivo: definir um valor default para um campo, simples né?

Pega a visão:

  • __init__
class MyForm(forms.ModelForm):

 def __init__(self, *args, **kwargs):
@rg3915
rg3915 / README.md
Created December 20, 2022 23:28
AWS S3 storage config
pip install python-decouple  # variaveis de ambiente
pip install django-storages  # storage
cat << EOF > .env
AWS_ACCESS_KEY_ID=**********
AWS_SECRET_ACCESS_KEY=****************
AWS_STORAGE_BUCKET_NAME=brejinho
@rg3915
rg3915 / table-emmet
Created December 19, 2022 03:43 — forked from anthanh/table-emmet
Emmet table example
table[name="pepe"]>thead>tr>th*3^^+tbody>tr*7>td{Basico}*3
@rg3915
rg3915 / index.html
Last active April 21, 2024 03:47
EasyTimer.js and countdown with Vanilla Javascript
<!-- index.html -->
<!-- with EasyTimer.js and Vanilla Javascript -->
<!-- https://albert-gonzalez.github.io/easytimer.js/#countdownTimerExample -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>EasyTimer</title>
@rg3915
rg3915 / index.html
Last active December 11, 2022 02:39
Countdown with AlpineJS cronometro alpinejs
<!-- https://albert-gonzalez.github.io/easytimer.js/#countdownTimerExample -->
<!-- https://codepen.io/harsh/pen/KKdEVPV -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="http://html5-training-in-hyderabad.blogspot.com.br/favicon.ico">
<title>Countdown with AlpineJS</title>