Skip to content

Instantly share code, notes, and snippets.

View hjpbarcelos's full-sized avatar

Henrique J. P. Barcelos hjpbarcelos

View GitHub Profile
/* gerenciar_canvas.cpp - Generated by Visual Multi-Thread Win32 */
#include "AppObjects.h"
#include "global.h"
#include <stdio.h>
#include <stdlib.h>
#include <tchar.h>
#include <conio.h>
#include <windows.h>
#include "graphics2.h"
@hjpbarcelos
hjpbarcelos / bootstrap.php
Last active December 28, 2015 12:59
DIC Example
<?php
$container['connection.default.dsn'] = 'mysql:dbname=nossoconsorcio;host=localhost;charset=utf8';
$container['connection.default.user'] = 'root';
$container['connection.default.password'] = '@1234&';
$container['storage.default'] = $container->share(function($c) {
return new PdoStorage(
$c['connection.default.dsn'],
$c['connection.default.user'],
$c['connection.default.password']
);
"select w.WWORK_START AS work_date," & _
" w.WWORK_FINISH AS finish_date," & _
" p.PROJ_NAME as Project," & _
" a.TASK_NAME as Task," & _
" a.WASSN_COMMENTS as Comment," & _
" w.WWORK_VALUE / 60000 as work," & _
" r.RES_NAME as Resource," & _
" r.WRES_ID as resource_id," & _
" datediff(d,w.wwork_start,w.wwork_finish)+1 AS work_days" & _
" from MSP_WEB_RESOURCES r," & _