Skip to content

Instantly share code, notes, and snippets.

View aprius's full-sized avatar
⛱️
Nếu như lần đầu gặp mặt Ai sẽ vì ai mà quay đầu

Aprius aprius

⛱️
Nếu như lần đầu gặp mặt Ai sẽ vì ai mà quay đầu
View GitHub Profile
@aprius
aprius / max.json
Last active February 5, 2023 09:50
applovin handle version
{
"name": "APPLOVIN_MAX_SDK",
"displayName": "AppLovin",
"versions": [
"5.6.7"
],
"path": "https://github.com/pancake-llc/unitypackage/releases/download/1.0.0/MaxSdk-v{0}.unitypackage",
"dependenciesFilePath": "MaxSdk_version-",
"pluginFilePath": [
"MaxSdk"
@aprius
aprius / naming.md
Created September 8, 2022 02:45
file naming
  • Các kí tự đặc biệt như ~ ! @ # $ % ^ & * ( ) ` ; < > ? , [ ] { } ‘ ” và | cần tránh sử dụng
  • Không sử dụng khoảng trắng. Một số phần mềm sẽ không nhận dạng tên file có dấu cách. Sử dụng các lựa chọn dưới đây để thay thế:
    • Underscores (e.g. file_name.xxx)
    • Dashes (e.g. file-name.xxx)
    • No separation (e.g. filename.xxx)
    • Camel case, trong đó chữ cái đầu tiên của mỗi phần văn bản được viết hoa (e.g. FileName.xxx)

where_where_what hay còn có dạng scope_scope_meaning

Scope. Cái từ kế tiếp trong file name dùng để “khoanh vùng” coi nó dùng ở đâu, phạm vi thế nèo. (vẫn chú ý chia folder trc nhé, cộng thêm cả naming nữa cho ngầu :v). Có thể cần một hoặc vài scope tùy bạn, mình thường 1-2 cái là nhiều

@aprius
aprius / admob-mediation.json
Last active March 12, 2023 09:39
admob-mediation
[
{
"name": "ADCOLONY_NETWORK",
"displayName": "AdColony",
"versions": [
"2.6.1"
],
"path": "https://dl.google.com/googleadmobadssdk/mediation/unity/adcolony/AdColonyUnityAdapter-{0}.zip",
"dependenciesFilePath": "GoogleMobileAds/Editor/AdColonyMediationDependencies.xml",
"pluginFilePath": [
marp theme class
true
default

Overlays API


@MeowKim
MeowKim / addressable_asset.md
Last active July 9, 2024 04:26
Guide for Unity Addressable Asset System.

📝 About

Guide for Unity Addressable Asset System.
Check out this sample code repo.

This guide supports languages below.

Created: 2020-07-03
Last updated: 2020-08-26 minor typo correction

@TigerHix
TigerHix / link.xml
Created March 29, 2020 19:25
Unity link.xml for LiteDB 5.0.5
@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 ....
@yfakariya
yfakariya / MicrosoftExtensionsDependencyInjectionDeepDive.md
Created November 4, 2019 11:47
Deep dive of Microsoft.Extensions.DependencyInjection in Japanese

Microsoft.Extensions.DependencyInjection Deep Dive

そんなに深くない気がしますが。Microsoft.Extensions.DependencyInjection の DI についてざっくりまとめた記事です。なお、長いので、Microsoft.Extensions.DependencyInjectionM.E.DI と略します。

例によって、公式ドキュメント にすべて書いてある、はずですが、ここでは少し別の観点でまとめてみます。また、ドキュメントに書いてない(と思う)内部実装についてもいくつか書いてあります。

使い方

  • IServiceCollection の拡張メソッドを使用して、フレームワークやランタイムが提供する IServiceCollection の実装に対して登録していきます。
  • IServiceCollectionServiceDescriptor というサービスについてのスペックを表すオブジェクトのコレクションである。ServiceDescriptor はサービス型をキーにして、ライフタイムと実装を持ちます。
@aprius
aprius / .gitignore
Last active November 5, 2022 10:21
Unity gitignore
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
# =============== #
# Unity generated #
@HAliss
HAliss / CurveDissolve.shader
Last active June 7, 2022 17:26
Creates a monochromatic texture with color values from a given animation curve
Shader "Custom/CurveDissolve"
{
Properties
{
_Color ("Color", Color) = (1,1,1,1)
_MainTex ("Albedo (RGB)", 2D) = "white" {}
_Noise("Noise", 2D) = "white" {}
_CurveTexture("Curve texture", 2D) = "white" {}
_Cutoff("Cutoff", Range(0,1)) = 0
_Glossiness ("Smoothness", Range(0,1)) = 0.5