Skip to content

Instantly share code, notes, and snippets.

View arteymix's full-sized avatar

Guillaume Poirier-Morency arteymix

View GitHub Profile
@arteymix
arteymix / JBox2DCanvasActivity.java
Created February 15, 2012 00:10
Abstract class used to provide Android activities with a physic and draw engine
/*
* This file is part of Funky Domino.
*
* Funky Domino is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Funky Domino is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@arteymix
arteymix / XMLHandler.java
Created February 15, 2012 00:13
Parse XML game data for Funky Domino into an Android activity
/*
* This file is part of Funky Domino.
*
* Funky Domino is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Funky Domino is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@arteymix
arteymix / urlang.php
Created September 17, 2012 02:37
Kohana module to translate urls. Module is on github already. It provides a quick and easy way to deal with multi-lang websites
<?php
defined('SYSPATH') or die('No direct script access.');
/**
*
*/
class Urlang {
/**
@arteymix
arteymix / logo-coda.svg
Created September 30, 2012 01:01
Logo du Coda, comité de musique
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Winston Joseph Custom Guitars</title>
<link href="https://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet">
@arteymix
arteymix / gist:5269692
Created March 29, 2013 09:06
Host management system for Kohana. It works along a config file in APPPATH/config/host.php with regex as key and setups as array!
<?php
defined('SYSPATH') or die('No direct access allowed.');
/**
* Host managing system.
*
* @package Host
* @author Hète.ca Team
* @copyright (c) 2013, Hète.ca Inc.
@arteymix
arteymix / config.json
Last active August 29, 2015 14:02
config.json
{
"vars": {
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 60%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#ff3300",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",
@arteymix
arteymix / kohana.xml
Last active August 29, 2015 14:04
Kohana convention for Eclipse IDE
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<profiles>
<profile name="Kohana">
<setting id="indentationChar" value="&#9;"/>
<setting id="insert_space_after_opening_paren_in_declare" value="false"/>
<setting id="insert_space_before_closing_paren_in_declare" value="false"/>
<setting id="insert_space_before_opening_paren_in_declare" value="false"/>
<setting id="org.eclipse.php.core.formatter.insert_new_line_in_function_invoke" value="2"/>
<setting id="org.eclipse.php.formatter.core.formatter.alignment_for_arguments_in_allocation_expression_force_split" value="false"/>
<setting id="org.eclipse.php.formatter.core.formatter.alignment_for_arguments_in_allocation_expression_indent_policy" value="0"/>
@arteymix
arteymix / Makefile
Created August 18, 2014 23:29
Kohana Makefile
# Kohana Makefile
# user and group for the web server
USER=apache
GROUP=apache
# kohana files
KOHANA=index.php .gitignore example.htaccess composer.json application/bootstrap.php
VERSION=3.3
{
"vars": {
"@gray-darker": "lighten(#000, 13.5%)",
"@gray-dark": "lighten(#000, 20%)",
"@gray": "lighten(#000, 33.5%)",
"@gray-light": "lighten(#000, 60%)",
"@gray-lighter": "lighten(#000, 93.5%)",
"@brand-primary": "#800000",
"@brand-success": "#5cb85c",
"@brand-info": "#5bc0de",