Skip to content

Instantly share code, notes, and snippets.

View NadiaaOliverr's full-sized avatar
🎯
Foco

Nádia Oliveira NadiaaOliverr

🎯
Foco
  • @aluracursosonline
  • Home Office
View GitHub Profile
"files.associations": {
"**/*.html": "html",
"**/templates/**/*.html": "django-html",
"**/templates/**/*": "django-txt",
"**/requirements{/**,*}.{txt,in}": "pip-requirements"
},
"beautify.language": {
"js": {
"type": ["javascript", "json"],
"filename": [".jshintrc", ".jsbeautifyrc"]
@lsantosdemoura
lsantosdemoura / get_first_return_from_parallel_functions.py
Created May 15, 2020 14:54
Running different functions in parallel and returning the first return
# adapted from:
# https://stackoverflow.com/questions/48677978/python-run-multiple-get-requests-in-parallel-and-stop-on-first-response
from multiprocessing import Queue, Process
from multiprocessing.queues import Empty
from time import sleep
def f1(queue):
print('f1')
@zhensongren
zhensongren / uninstall_python3.MD
Last active February 27, 2025 03:38
How to uninstall python3 from Ubuntu

To list all python versions in default locations

ls /usr/bin/python*

To remove just python3 package

sudo apt-get remove python3.5

plus it's dependent packages

sudo apt-get remove --auto-remove python3.5

plus configuration and/or data files of python3

sudo apt-get purge python3.5

[alias]
ci = commit
co = checkout
cm = checkout master
cb = checkout -b
st = status -sb
sf = show --name-only
lg = log --pretty=format:'%Cred%h%Creset %C(bold)%cr%Creset %Cgreen<%an>%Creset %s' --max-count=30
incoming = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' ..@{u})
outgoing = !(git fetch --quiet && git log --pretty=format:'%C(yellow)%h %C(white)- %C(red)%an %C(white)- %C(cyan)%d%Creset %s %C(white)- %ar%Creset' @{u}..)
[<img src="https://avatars0.githubusercontent.com/u/41811634?s=460&v=4" width="100px;"/><br/><sub><b>Nádia Oliveira</b></sub>](https://github.com/NadiaOliver)<br /> |[<img src="https://avatars3.githubusercontent.com/u/45168142?s=460&v=4" width="100px;"/><br /><sub><b>Júlia Mendonça</b></sub>](https://github.com/Juliams78)<br />
--------- | ------
@almeidx
almeidx / markdown-text-101.md
Last active August 18, 2025 13:08 — forked from matthewzring/markdown-text-101.md
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

Sweet Styles

Italics *italics* or _italics_

Underline italics __*underline italics*__

@Guichaguri
Guichaguri / Consulta-CNPJ-CEP.md
Last active August 22, 2024 19:11
Consulta CNPJ e CEP - Javascript

Consulta de CNPJ e CEP em Javascript (Web ou NodeJS)

Funções para consultar informações sobre CNPJ e CEP pela web (sem backend necessário) ou através de Node.JS

  • nodejs-lib.js - Código para realizar a requisição através do módulo de HTTPS do Node.JS
  • web-lib.js - Código para realizar a requisição através de JSONP na Web
  • consulta.js - Funções para realizar consultas de CNPJ e CEP

Se você está usando Node.JS, adicione o código de nodejs-lib.js.

@arukavina
arukavina / header1b.py
Created April 14, 2018 18:37
Python Header Imports
# Futures
from __future__ import unicode_literals
from __future__ import print_function
# Generic/Built-in
import datetime
import argparse
# Other Libs
import youtube_dl
@480
480 / gist:3b41f449686a089f34edb45d00672f28
Last active February 17, 2026 20:54
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings

MacOS X + oh my zsh + powerline fonts + visual studio code (vscode) terminal settings

Thank you everybody, Your comments makes it better

Install oh my zsh

http://ohmyz.sh/

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"