Skip to content

Instantly share code, notes, and snippets.

Avatar
🐉
👾👺👹😈☠️🤖:octocat::trollface::godmode::neckbeard:

arash-hacker

🐉
👾👺👹😈☠️🤖:octocat::trollface::godmode::neckbeard:
View GitHub Profile
View gist:f21264e3a316d6f7d9455691c5295a91
110% non-lazy Simulate Commits. then feedback
pros-cause(why) /cons-consequences(so what)/trade-off
know about goal, boundary, constraint, assumption
context/ point of view
possible alternatives
code smells,
anti-patterns,
clean code,
architect,
test
View code-jam.py
Maximum jump from reach end
    for i in range(1, n):
        jumps[i] = float('inf')
        for j in range(i):
            if (i <= j + arr[j]) and (jumps[j] != float('inf')):
                jumps[i] = min(jumps[i], jumps[j] + 1)
                break
    return jumps[n-1]
Coins minimum count problem
View gist:4045e990840a209ba7cb8d80757e672d
design-pattern-all-in-one-blog
generate object (creation)
get object property with structure (structural)
get behavior against other (behavioral)
creational
generate with partial generator
View gist:be3022c6a6f501d123be5e678cc12202
domain / service / bussinus is all the same.
---------------|
service layer. |
---------------|-->domain layer
business layer |
---------------|
model: call db & dwld/upld all data from datalayer
handle validate / populte viewmodel--> as service layer
View SpriteSlicer2D.cs
//#define TK2D_SLICING_ENABLED
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
#if UNITY_EDITOR
using UnityEditor;
#endif