Skip to content

Instantly share code, notes, and snippets.

View dbasilioesp's full-sized avatar

David Basilio Espitalher dbasilioesp

View GitHub Profile
@dbasilioesp
dbasilioesp / spinner-clock.sass
Created December 12, 2014 12:06
Spinner Clock
$spinTime: 60s
.spinner-clock
position: relative:
width: 22px
height: 22px
border-radius: 50%
border: 2px solid $color-secondary
&:after
content: ""
@dbasilioesp
dbasilioesp / gulpfile.js
Created November 24, 2014 11:44
Flow using Gulp
'use strict';
// Include Gulp & Tools We'll Use
var gulp = require('gulp');
var concat = require('gulp-concat');
var $ = require('gulp-load-plugins')();
var del = require('del');
var runSequence = require('run-sequence');
var browserSync = require('browser-sync');
var pagespeed = require('psi');
@dbasilioesp
dbasilioesp / StyleGuideCppGames.md
Last active August 29, 2015 14:07
Style Guide C++ for Games

Style Guide C++ for Games

Introduction

This is a suggestion of how you should develop with the C++ language.
Style Guides are about consitency for the code and often more important in a project.

Code in Zen Mode

#include <iostream>
#include <cmath>
using namespace std;
class Random {
private:
int seed;
#include <iostream>
#include <cmath>
using namespace std;
class Random {
private:
int seed;
var P0x = 230;
var P0y = 50;
var P1x = 350;
var P1y = 150;
var px = P0x + t*(P1x - P0x)
var py = P0y + t*(P1y - P0y)
ctx.beginPath(); // inicia o desenho
ctx.rect(px,py , 20,20); // 20 20 é o tamanho do quadrado