Skip to content

Instantly share code, notes, and snippets.

View thiagojedi's full-sized avatar

Thiago 'Jedi' Abreu thiagojedi

View GitHub Profile
@thiagojedi
thiagojedi / application.cr
Created October 1, 2019 03:13
Crystal Gtk Application
require "gobject/gtk"
require "gobject/gio"
class MyApplication < Gtk::Application
include Gio::ActionMap
def self.new
super "org.example.application", :flags_none
end
@thiagojedi
thiagojedi / jsonp.js
Created September 13, 2016 21:00
Documento de exemplo de Cross domain
app.set('json spaces', 4);
app.use(function (req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "X-Requested-With");
res.contentType('json');
next();
});
res.jsonp(resultado);
@thiagojedi
thiagojedi / gist:3837603
Created October 5, 2012 01:48
APB: Reloaded para NZ Games
Olá, pessoas e demais leitores do Nota Zero Games. Meu nome é Thiago Abreu, fui convidado pelo Giancarlo a fazer a análise do MMO Free-to-play APB: Reloaded. Não é a primeira vez que faço uma análise, mas não tenho tanta experiência quanto gostaria nesse tipo de conteúdo, mas me esforçarei bastante para expressar meus sentimentos com relação a esse jogo.
APB? Reloaded? Explica melhor isso aí!
APB: All Point Bulletin é um jogo lançado em 2010 pela finada desenvolvedora Realtime World e publicada pela Eletronic Arts. Após a compra da Realtime pela K2 Network, o jogo foi desativado até que no meio do ano passado uma subsidiária chamada Reloaded Productions resolveu relançar o jogo com o nome de APB: Reloaded. Ou pelo menos é isso que está na Wikipédia. O fato é que a Hoplon, empresa catarinense conhecida por desenvolver o MMO espacial Taikodom, resolveu traduzir e publicar esse jogo no Brasil.
Pelo que eu entendi, APB tem uma promessa simples: ser um MMO GTA, afinal foi projetado pelo mesmo designer. A estóri
@thiagojedi
thiagojedi / gist:3802900
Created September 29, 2012 01:57
Música de Inhaduí
Letra: Inhanduí Barbosa e Thiago Abreu
(E A)
E
Sua mãe fala que eu sou um cara legal,
A
mas do que adianta?
E
se você sempre gostou de cara de mal,
@thiagojedi
thiagojedi / gist:3488444
Created August 27, 2012 13:34
Analizador Lexico Pascal Compiladores 2012.2
%{
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@thiagojedi
thiagojedi / errors_Star Wars.log.e
Created August 3, 2012 15:01
Log Errors PlayOnLinux Star Wars: The Old Republic
[POL_Wine_SetVersionEnv] Message: Setting wine version path: 1.5.1-old_republic, x86
[POL_Wine_SetVersionEnv] Message: "/home/jedi/.PlayOnLinux//wine/linux-x86/1.5.1-old_republic" exists
[POL_Wine] Message: Running wine-1.5.1-old_republic launcher.exe
wine: cannot find L"C:\\windows\\system32\\winemenubuilder.exe"
err:wineboot:ProcessRunKeys Error running cmd L"C:\\windows\\system32\\winemenubuilder.exe -a -r" (2)
fixme:ntdll:find_reg_tz_info Can't find matching timezone information in the registry for bias 180, std (d/m/y): 0/00/0000, dlt (d/m/y): 0/00/0000
fixme:winhttp:request_query_option unimplemented option 93
fixme:iphlpapi:NotifyAddrChange (Handle 0x32cbcc, overlapped 0xee5220): stub
fixme:winsock:WSALookupServiceBeginW (0x32cc78 0x00000ff0 0x32ccb4) Stub!
[0803/115736:ERROR:network_change_notifier_win.cc(111)] WSALookupServiceBegin failed with: 8
//$Id: main.cc 836 2007-05-09 03:02:38Z jjongsma $ -*- c++ -*-
/* gtkmm example Copyright (C) 2002 gtkmm development team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
#!/usr/bin/env ruby
require 'ffi-gtk3'
class Aplicacao
def initialize
@app = Gtk::Application.new 'ruby.jedi', 0
@janela = []
GObject.signal_connect(@app, "activate", nil) do
@janela.each{ |e| e.present }