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
| #include <stdio.h> | |
| typedef struct polymorph polymorph; | |
| struct polymorph | |
| { | |
| void* data; | |
| int (*compare) (polymorph*, void*); | |
| }; | |
| int polymorph_compare(polymorph* p1, polymorph* p2) |
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
| ACLOCAL_AMFLAGS = -I m4 | |
| SUBDIRS = src |
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
| #! /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 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
| 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 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
| 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 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
| #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 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 | |
| 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 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
| /** | |
| * A Simple Hello World with SFML. | |
| * | |
| * Build: g++ -o sfml_hello sfml_hello.cpp -lsfml-graphics -lsfml-window -lsfml-system | |
| */ | |
| #include <SFML/Window.hpp> | |
| int main() { | |
| sf::Window window(sf::VideoMode(640, 480), "Hello world!"); |
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
| /** | |
| * Simple OpenGL with SFML. | |
| * | |
| * Build: g++ -o simple_opengl_sfml simple_opengl_sfml.cpp -lsfml-window -lsfml-system -lGL | |
| */ | |
| #include <SFML/Window.hpp> | |
| #include <SFML/OpenGL.hpp> | |
| #define WINDOW_WIDTH 640 |
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
| #include "MXG/SFMLDebugDraw.hpp" | |
| #include <cmath> | |
| namespace mxg { | |
| SFMLDebugDraw::SFMLDebugDraw(sf::RenderWindow &window, float scale) | |
| : window_(&window), scale_(scale) { | |
| sf::Transform transform; |
OlderNewer