- [Doado] jQuery A Biblioteca do Programador JavaScript | Maurício Samy Silva | Novatec
- [Doado] CodeIgniter Framework PHP | Ademir Cristiano Gabardo | Novatec
- [Doado] Python e Django Desenvolvimento Ágil de Aplicações Web | Osvaldo Santana e Thiago Galesi | Novatec
- [Doado] Shell Script Profissional | Aurélio Marinho Jargas | Novatec
- [Doado] O Melhor do JavaScript | Douglas Crockford | Alta Books
- [Doado] Padrões JavaScript | Stoyan Stefanov | Novatec
- [Doado] O Melhor do PHP | Peter B. MacIntyre | Alta Books
- [Doado] Autenticação Centralizada com OpenLDAP | Marcos Sungaila | Novatec
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
class Person(object): | |
def __init__(self, name): | |
self.name = name | |
class Customer(Person): | |
def __init__(self, name, credit): | |
super(Customer, self).__init__(name) | |
self.credit = credit |
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
server { | |
server_name example; | |
root /var/www/example; | |
index index.php index.html index.htm; | |
# error_log /var/log/nginx/example.error_log debug; | |
rewrite_log on; | |
location ~* ^/(assets|css|fonts|img|js|upload) { } |
We are web site developers (a.k.a. webmasters) and we just want to get stuff done. We don't need Object Orientation and we don't need Design Patters and other boring and not easy to learn and understand stuff to get in our way to get our sites up and running.
And that's why our values are:
- Procedural Code over Object Orientation
- No one actually needs OO to develop web applications
- Classes with only static functions are ok, since it's just a way to keep functions in one place. And is still procedural
- Explicitly load what you need over autoloaders
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
while true; do phpunit; sleep 2; done |
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 python3 | |
from tkinter import Tk | |
from json import dumps, loads | |
def show_json_from_clipboard(): | |
t = Tk() | |
t.withdraw() |
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
<?php | |
// Download medoo.php (http://medoo.in) and place it here: | |
require "/usr/local/lib/php/medoo.php"; | |
function writeLog($message) | |
{ | |
// If you don't want logs, use false | |
if (true) { | |
$message = date('Y-m-d H:i:s') . " " . $message . "\n"; |
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
<?php | |
echo "\n*** Inputs ***"; | |
echo "\n\nGET:"; print_r($_GET); | |
echo "\n\nPOST:"; print_r($_POST); |
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
<?php | |
$nome = 'InFog'; | |
echo $nome; // InFog | |
function mostraNome() | |
{ | |
$nome = 'Coragem'; | |
echo $nome; | |
} |
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
<?php | |
$livro = 'O Senhor dos Aneis'; | |
function mostraFilme() | |
{ | |
$filme = 'O Hobbit'; | |
echo $filme; | |
} |