Skip to content

Instantly share code, notes, and snippets.

View dragfire's full-sized avatar
🏠
Working from home

Devajit Asem dragfire

🏠
Working from home
View GitHub Profile
@dragfire
dragfire / index.html
Created March 25, 2014 05:00
A Pen by devasem.
<div>
<canvas id="display" width="400" height="300" style="border: 1px solid aqua;" ></canvas>
<hr/>
<h1>Physics Simulation : Wall Collision</h1>
</div>
@dragfire
dragfire / SpaceShip.markdown
Last active August 29, 2015 13:57
A Pen by devasem.
#Newbie programmer
def factorial(x):
if x == 0:
return 1
else:
return x * factorial(x - 1)
print factorial(6)
#First year programmer, studied Pascal
@dragfire
dragfire / Pong-Classic.markdown
Created April 1, 2014 19:39
A Pen by devasem.
@dragfire
dragfire / Wall-Collision.markdown
Created April 1, 2014 20:02
A Pen by devasem.
@dragfire
dragfire / README.md
Created March 30, 2016 07:58 — forked from nikcub/README.md
Facebook PHP Source Code from August 2007
@dragfire
dragfire / logger.go
Last active October 30, 2016 21:04
Minimal logger for Go.
package logger
import (
"log"
"os"
"fmt"
)
var (
dlog = log.New(os.Stdout, "\x1B[36mDEBUG: \x1B[0m", log.Ldate|log.Ltime|log.Lshortfile)

Folder Structure

Motivations

  • Clear feature ownership
  • Module usage predictibility (refactoring, maintainence, you know what's shared, what's not, prevents accidental regressions, avoids huge directories of not-actually-reusable modules, etc)
@dragfire
dragfire / README-Template.md
Last active December 19, 2018 19:39 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites