Skip to content

Instantly share code, notes, and snippets.

View aprius's full-sized avatar
:shipit:
ops

Aprius aprius

:shipit:
ops
View GitHub Profile
@aprius
aprius / upm
Last active February 1, 2023 07:06
-feat: new feature (minor increase ex: 1.0.0 to 1.1.0)
-fix: bug fix (patch increase ex: 1.0.0 to 1.0.1)
-add: add new file, script ...
-remove: remove file, remove method
-update: update name method, name file, name ....
@aprius
aprius / open-cmder-here.md
Last active March 2, 2020 02:37 — forked from hamzahamidi/open-cmder-here.md
"Open Cmder Here" in context menu

"Open Cmder Here" in context menu

To add an entry in the Windows Explorer context menu to open Cmder in a specific directory, paste this into a OpenCmderHere.reg file and double-click to install it.

    Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\Cmder]
@="Open Cmder Here"
"Icon"="C:\\Program Files\\cmder\\Cmder.exe,0"
@aprius
aprius / mainTemplate.gradle
Created March 14, 2020 05:35
old gradle template unity for unity 2019.2 and lower
// GENERATED BY UNITY. REMOVE THIS COMMENT TO PREVENT OVERWRITING WHEN EXPORTING AGAIN
buildscript {
repositories {**ARTIFACTORYREPOSITORY**
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.0'
@aprius
aprius / GradleOnPost.cs
Created March 14, 2020 07:14
custom gradle build multidex for unity 2019.3 or newer
#if UNITY_EDITOR
using System.IO;
using System.Text;
using UnityEditor;
using UnityEditor.Android;
#if UNITY_ANDROID
public class GradleOnPost : IPostGenerateGradleAndroidProject
{
@aprius
aprius / FacebookManager.cs
Created June 29, 2020 15:02
FacebookManager for unity3d
using System;
using System.Collections;
using System.Collections.Generic;
using Facebook.Unity;
using UniRx;
using UnityEngine;
public class FacebookManager : MonoBehaviour
{
public Action onLoginComplete;
@aprius
aprius / link.xml
Created September 13, 2020 10:59 — forked from TigerHix/link.xml
Unity link.xml for LiteDB 5.0.5
@aprius
aprius / UnitaskAsync.cs
Created September 28, 2020 09:15
sample UniTask async method work
/// <summary>
/// heavy task c
/// for methods that use Unitask's api like: UniTask.WaitUntil (), UniTask.Run (), etc ...
/// then it should not be wrapper by UniTask.Run () anymore
/// instead, the return type must be UniTask
///
/// does not declare AsyncHeavyTaskC method with return type as void if inside it uses api of unitask already
///
/// The AsyncHeavyTaskC method now doesn't need to be wrapped by UniTask.Run () anymore
/// </summary>

#1 download and install the git commnad line extension. git lfs install

#2 track file, you can push directly path of file here git lfs track "*.so"

#3 make sure .gitattributes is tracked (option) git add .gitattributes

#4 commit

@aprius
aprius / performance.cs
Created July 1, 2021 09:43
Performance Check
-
@aprius
aprius / ecs.md
Last active August 24, 2021 10:38
What is entity system? unity game development
  • Vòng lặp game kiểu cũ trông như này
void update(float time)
{
  game.update(time);
  spaceship.updateInputs(time);
  
  foreach(var flyingSaucer in flyingSaucers)
  {
 flyingSaucer.updateAI(time);