Skip to content

Instantly share code, notes, and snippets.

View viphat's full-sized avatar
🎯
Focusing

Duong Vi Phat viphat

🎯
Focusing
  • Osaka, Japan
View GitHub Profile
@viphat
viphat / ProgrammingManifesto.md
Last active August 29, 2015 14:09 — forked from gxespino/ProgrammingManifesto.md
Chia sẻ cách học Ruby >> Rails của một bác Programmer kỳ cựu

#Programming Manifesto

##Books

Ruby

  • Learn to Program by Chris Pine
  • The Well-Grounded Rubyist by David Black
  • Eloquent Ruby by Russ Olsen
  • Practical Object-Oriented Design in Ruby by Sandi Metz
@viphat
viphat / Damage_Calculator.js
Created September 27, 2014 01:04
Pokemon Damage Calculator Kata on Codewars - http://www.codewars.com/kata/536e9a7973130a06eb000e9f
function calculateDamage(yourType, opponentType, attack, defense){
var type = {
fire:0,
water:1,
grass:2,
electric:3
};
var effectivenessTable = [[0.5,0.5,2,1],[2,0.5,0.5,0.5],[0.5,2,0.5,1],[1,2,1,0.5]];
@viphat
viphat / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console