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 / ValidateCollection.cs
Created February 18, 2022 11:16
Check if a list belongs to another list with exact position of elements
public static class Ex
{
public static bool ValidateCollection(this List<int> source, List<int> target)
{
bool Exists(IReadOnlyList<int> list, int value)
{
for (var i = 0; i < list.Count; i++)
{
if (list[i] == value) return true;
}
@aprius
aprius / googlemobileads.json
Last active November 15, 2022 09:44
Google mobile ads last release download
{
"name": "GMA_SDK",
"displayName": "Google Mobile Ads",
"versions": [
"7.3.0",
"7.2.0",
"7.1.0",
"7.0.0",
"6.1.2"
],
@aprius
aprius / ironsource.json
Last active December 20, 2022 08:00
ironsource package config download
{
"name": "IRONSOURCE_SDK",
"displayName": "IronSource",
"versions": [
"7.2.6.0",
"7.2.5.1",
"7.2.2.1"
],
"path": "https://github.com/pancake-llc/ironsource-unity-sdk/releases/download/{0}/IronSource_IntegrationManager_v{0}.unitypackage",
"dependenciesFilePath": "IronSource/Editor/IronSourceSDKDependencies.xml",
@aprius
aprius / max-mediation-extend.json
Last active September 6, 2022 08:03
Applovin Mediation Extend
[
{
"Name": "TAPPX_NETWORK",
"DisplayName": "Tappx",
"DownloadUrl": "https://github.com/gamee-studio/ads/releases/download/1.0.15/tappx-android-3.2.3.8-ios-3.2.3.8.unitypackage",
"PluginFileName": "tappx-android-3.2.3.8-ios-3.2.3.8.unitypackage",
"PluginFilePaths": [
"MaxSdk/Mediation/Tappx"
],
"DependenciesFilePath": "MaxSdk/Mediation/Tappx/Editor/Dependencies.xml",
@aprius
aprius / CountryCode.cs
Last active August 4, 2022 04:19
Country Code (241 country)
public enum ECountryCode
{
AD = 0,
AE,
AF,
AG,
AI,
AL,
AM,
AO,
@aprius
aprius / naming.md
Last active June 7, 2025 04:32
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_when_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 / sakura.js
Created September 18, 2022 18:41
sakura.js
var stop, staticx;
var img = new Image();
img.src = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUgAAAEwCAYAAADVZeifAAAACXBIWXMAAACYAAAAmAGiyIKYAAAHG2lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxNDIgNzkuMTYwOTI0LCAyMDE3LzA3LzEzLTAxOjA2OjM5ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXBSaWdodHM9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9yaWdodHMvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtbG5zOnN0RXZ0PSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VFdmVudCMiIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIiB4bWxuczpwaG90b3Nob3A9Imh0dHA6Ly9ucy5hZG9iZS5jb20vcGhvdG9zaG9wLzEuMC8iIHhtcFJpZ
@aprius
aprius / fishes.js
Created September 22, 2022 17:40
fish footer for hexo butterfly theme
fish();
function fish() {
return (
$("footer").append(
'<div class="container" id="jsi-flying-fish-container"></div>'
),
$(".container").css({
width: "100%",
height: "160px",
margin: 0,
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FirstClass : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
// class cơ sở
public class Parent
{
protected void ParentFeature()
{
// chức năng kế thừa
}
}
// class dẫn suất (kế thừa class Parent)