Skip to content

Instantly share code, notes, and snippets.

View phoenleo's full-sized avatar

Phoen Leo phoenleo

  • Indonesia
View GitHub Profile
@phoenleo
phoenleo / Cleanup Merged Branches
Created April 22, 2019 03:38
Cleanup merged branches in Gitflow
git branch --merged | egrep -v "(^\*|master|dev)" | xargs git branch -d
@phoenleo
phoenleo / ExampleCovarianceAndContravarianceInCSharp
Created August 9, 2018 04:18
Example Covariance And Contravariance in C Sharp
using System;
using UnityEngine;
using Random = System.Random;
public class EntityReducer
{
private Contexts _contexts;
public EntityReducer (Contexts contexts) {
_contexts = contexts;
@phoenleo
phoenleo / CommentBlock.cs
Created August 26, 2017 05:22
Comment Block Format for C#
/*
|---------------------------------------------------------------------------------------
| Comment Title
|---------------------------------------------------------------------------------------
|
| Comment Description
| Lorem ipsum dolor sit amet, duo ea etiam eirmod.
| Eos quot dicta accommodare cu, solum deserunt mel cu, cibo dolor petentium cu vel.
| Sed cu error recusabo, no vis populo gloriatur.
| In vis facete scaevola pertinacia, nam in velit munere euismod.
@phoenleo
phoenleo / Touchten's Unity 3D gitignore
Last active February 29, 2016 05:20
Git ignore for Touchten's Unity 3D project
/[Ll]ibrary/
/[Tt]emp/
/[Oo]bj/
/[Bb]uild/
/[Bb]uilds/
/Assets/AssetStoreTools*
# Autogenerated VS/MD solution and project files
ExportedObj/
*.csproj
@phoenleo
phoenleo / localization-csv-to-json.py
Created January 14, 2016 09:04
Convert Localization CSV to JSON
import csv
import json
import collections
csvfile = open('file.csv', 'r')
def isKeyEmptyOrComment (stringKey):
if not stringKey: return True
if stringKey[0] == "@": return True
return False
@phoenleo
phoenleo / kadosaku-unity-docs.md
Last active January 15, 2016 05:55
KadoSaku Unity Documentation

KadoSaku Unity SDK

Getting Started

This documentation will help you integrating KadoSaku Services in your game using KadoSaku SDK.
Please refer to examples for implementation.
This SDK must be installed using Touchten Framework Wizard and have dependencies to

  • TT-Core (Shared Settings & Initialization)
  • TT-Social (TTSociaExtension)
  • TT-Analytics (DataExtension)
@phoenleo
phoenleo / 0_reuse_code.js
Created January 8, 2014 09:41
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