This file contains 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 | |
require('libs/Smarty.class.php'); | |
require('util.php'); | |
$smarty = new Smarty; | |
$smarty->assign('titulo', 'Avaliação'); | |
$html = $smarty->fetch('avaliacao.tpl'); | |
save_cached_content($html, 'avaliacao.html'); |
This file contains 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 functools import wraps | |
from htmlmin.minify import html_minify | |
def minified_response(function): | |
@wraps(function) | |
def minified_view(*args, **kwargs): | |
return_value = function(*args, **kwargs) | |
if type(return_value) == unicode: | |
return html_minify(return_value.encode('utf-8')) | |
return return_value |
This file contains 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> | |
<html lang="pt-BR"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page Title</title> | |
<style type="text/css" media="screen"> | |
.selected { | |
background: blue; | |
} | |
</style> |
This file contains 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
package variables | |
import ( | |
"fmt" | |
) | |
func main() { | |
number := 200 | |
fmt.Println(number) | |
number = 50 |
This file contains 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
package main | |
import ( | |
"fmt" | |
"math" | |
) | |
func GenerateCompleteSequence(number uint) chan uint { | |
channel := make(chan uint) | |
go func(){ |
This file contains 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
package main | |
import ( | |
"fmt" | |
"http" | |
) | |
func main() { | |
} |
This file contains 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
package main | |
import ( | |
"fmt" | |
"http" | |
) | |
func CleanCache(blogUrl string) { | |
content := make([]byte, 1000000) | |
client := new(http.Client) |
This file contains 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
package main | |
import ( | |
"fmt" | |
"http" | |
) | |
func CleanCache(blogUrl string) { | |
content := make([]byte, 1000000) | |
client := new(http.Client) |
This file contains 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
// caracfun.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
#include <string.h> | |
#include <stdlib.h> | |
char *replicar(char letra, int n) | |
{ | |
char *str; |