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
<!-- | |
wordpress_random.php | |
--> | |
<li> | |
<ul> | |
<?php | |
$posts = get_posts ( 'orderby=rand&numberposts=5' ); | |
foreach ( $posts as $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
#!/usr/bin/env python | |
''' | |
20141205 | |
''' | |
import os |
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 | |
''' | |
20140829 | |
Uso: | |
Na variavel file insira o arquivo a ser baixado com URL completa. | |
Lembrando que o sitio, `caixa.gov.br' faz controle de downloads por IP. |
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/python | |
# 20140824 | |
import random | |
# numero de participantes | |
numero = 128 | |
print 'SORTEIO' |
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/python | |
# 20140824 | |
import random | |
pessoas = [ 'Wandson Ramos','Gabriel Cesar','Caio Rego' ] | |
print 'SORTEIO' | |
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
<!DOCTYPE html> | |
<!-- | |
Exemplo de uso da Função token (). | |
Arquivo: token.js | |
--> | |
<html> | |
<head> |
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
def hash ( length ): | |
''' | |
2013 Gabriel Cesar | |
created_at 20131018 | |
last_update 20131018 | |
Exemplo de uso: hash ( 16 ) | |
Retorno: 142y96c876C2933b |
NewerOlder