TODO: Write a project description
TODO: Describe the installation process
/* __ | |
/ _) | |
.-^^^-/ / | |
__/ / | |
<__.|_|-|_| | |
*/ | |
/*_/| | |
=0-0= |
!! Appearance | |
urxvt.termName: rxvt-unicode | |
urxvt.scrollBar: false | |
urxvt.background: black | |
urxvt.foreground: gray | |
!! Font prefferenes | |
urxvt.font: xft:DejaVu Sans Mono:pixelsize=13 | |
urxvt.boldFont: xft:DejaVu Sans Mono:pixelsize=13:weight=bold | |
urxvt.letterSpace: -1 | |
!! Larger history limit |
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
POST https://na15.salesforce.com/services/Soap/m/29.0/00Di0000000icUB HTTP/1.1 | |
SOAPAction: create | |
Content-Type: text/xml; charset=utf-8 | |
Host: na15.salesforce.com | |
Content-Length: 894 | |
Expect: 100-continue | |
<?xml version="1.0" encoding="UTF-8"?> | |
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:apex="http://soap.sforce.com/2006/08/apex" xmlns:cmd="http://soap.sforce.com/2006/04/metadata" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | |
<soapenv:Header> |
import java.io.FileDescriptor; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.io.PrintStream; | |
public class HelloWorld{ | |
private static HelloWorld instance; | |
public static void main(String[] args){ | |
instantiateHelloWorldMainClassAndRun(); |
This util manage to load django settings from a config file that contain sensitive information such as cache, database and project passwords/secrets.
The util also check the permissions file to be safe, and the existence of the SECRET_KEY variable, if no file is found it will automatically create a file with a random SECRET_KEY value.
Add the method load_environment_file
into your code, an use it in your django
import requests | |
url = 'http://educacao.dadosabertosbr.com/api/escolas/buscaavancada?' | |
situação = 'situacaoFuncionamento=1&energiaInexistente=on&aguaInexistente=on&esgotoInexistente=on' | |
data = requests.get(url + situação).json() | |
print ('Primeiras 100 escolas:') | |
for escola in data[1]: | |
print (f'{escola["nome"]}, {escola["cidade"]}, {escola["estado"]}') | |
print ('Escolas em funcionamento, sem água, luz e esgoto:') | |
print (data[0]) |