This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.http import FileResponse | |
def send_file(response): | |
arquivos_vpn = open('var/deploy/vpn.zip', 'rb') | |
response = FileResponse(arquivos_vpn) | |
return response |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <OneWire.h> | |
#include <DallasTemperature.h> | |
#include "config.h" | |
OneWire pino(D3); | |
DallasTemperature barramento(&pino); | |
DeviceAddress sensor_1; | |
DeviceAddress sensor_2; | |
void setup() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
anão | |
arya | |
bran | |
bron | |
cersei | |
comer | |
comeu | |
coroa | |
daario | |
daenerys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mobile | |
Formação Android: https://www.caelum.com.br/formacao-android | |
React Native: https://www.alura.com.br/curso-online-react-native-parte-1/https://www.alura.com.br/curso-online-react-native-parte-2 | |
design de interfaces | |
Engenheiro Front-end: https://www.alura.com.br/formacao-front-end | |
Lear UI: https://learnui.design | |
Formação Front-end: https://www.caelum.com.br/formacao-frontend | |
Web Design para todos: https://www.coursera.org/specializations/web-design | |
UX / UI: Fundamentos para o design de interface: https://www.coursera.org/learn/ux-ui-design-de-interface |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'git' | |
# auxiliar a identificação de forks em um workspace bagunçado | |
mapping = Hash.new { |h, v| h[v] = [] } | |
Dir.glob('*/').each do |path| | |
last_commit = Git.open(path).log(99999).last | |
mapping["#{last_commit.sha[0,6]} - #{last_commit.message}"].push path | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#require 'pry' | |
require 'csv' | |
data = CSV.read('./resultado_bj.csv', | |
encoding: "UTF-8", headers: true, | |
header_converters: :symbol, converters: :all, | |
col_sep: '|', quote_char: '"' | |
) | |
data = data.map(&:to_hash) | |
result = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 copo de óleo | |
1 copo de margarina | |
1 copo de leite morno | |
1 colher de fermento de padaria | |
trigo até dar ponto | |
Junte o fermento, o leite morno, a margarina, o óleo, e vai acrescentando o trigo até o ponto de amassar com as mãos. | |
A massa cresce muito, deixe coberta com um plástico enquanto enrole os biscoitinhos. | |
Não precisa untar a forma, forre com papel manteiga pra não queimar a goiabada ao assar, pois depois fica difícil de limpar e você vai precisar da forma de novo pois rende bastante. | |
Não esquecer que tem que passar no açúcar ainda quente. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"auto_complete_commit_on_tab": false, | |
"auto_completecommiton_tab": true, | |
"close_windows_when_empty": true, | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
"drag_text": false, | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"font_face": "Monaco", | |
"font_size": 11, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://gist.github.com/3712874/ | |
ZSH_THEME_GIT_PROMPT_DIRTY='±' | |
function _git_prompt_info() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || ref="➦ $(git show-ref --head -s --abbrev |head -n1 2> /dev/null)" | |
echo "${ref/refs\/heads\//⭠ }$(parse_git_dirty)" | |
} | |
function _git_info() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
# Natanael de Araújo Silva | |
# Sistemas de Informação - 8º período | |
# Programação Paralela e Distribuída | |
import sys, random, threading | |
from datetime import datetime | |
from time import sleep |
NewerOlder