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 | |
xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY); | |
// The POG goes here | |
$xhprof_data = xhprof_disable(); | |
$XHPROF_ROOT = "./xhprof"; | |
include_once $XHPROF_ROOT . "/xhprof_lib/utils/xhprof_lib.php"; | |
include_once $XHPROF_ROOT . "/xhprof_lib/utils/xhprof_runs.php"; |
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
#include <iostream> | |
#include <fstream> | |
#include "json/json.h" | |
using namespace std; | |
void print_version(const Json::Value& root) { | |
cout << root["version"].asString() << endl; | |
} |
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
module.exports = function (grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON("package.json"), | |
concat: { | |
dist: { | |
src: [ | |
"js/*.js" | |
], | |
dest: "../static/js/blog.js" |
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
JSCOMPRESS=jsmin | |
CONCAT=cat | |
PROJECT_NAME=jsproject | |
SOURCES=script1.js script2.js script3.js, scriptN.js | |
all: $(SOURCES) | |
$(CONCAT) $^ > $(PROJECT_NAME).js | |
$(JSCOMPRESS) < $(PROJECT_NAME).js > $(PROJECT_NAME)-min.js |
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
#! /bin/bash | |
# Se houver mais de 1 arquivos .tex no diretório de execução, o latexmk não vai | |
# saber o que fazer. Se for seu caso, você deve especificar o arquivo a ser | |
# construido. | |
latexmk -pvc -view=none # arquivo.tex |
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
ACLOCAL_AMFLAGS = -I m4 | |
SUBDIRS = src |
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
#include <stdio.h> | |
typedef struct polymorph polymorph; | |
struct polymorph | |
{ | |
void* data; | |
int (*compare) (polymorph*, void*); | |
}; | |
int polymorph_compare(polymorph* p1, polymorph* p2) |
NewerOlder