Skip to content

Instantly share code, notes, and snippets.

@alpteo
alpteo / semantic-commit-messages-with-emojis.md
Last active April 18, 2024 01:42
Semantic Commit Messages with Emojis

Semantic Commit Messages with Emojis

Commit format: <emoji_type> <commit_type>(<scope>): <subject>. <issue_reference>

Example

:sparkles: feat(Component): Add a new feature. Closes: #
^--------^ ^--^ ^-------^   ^---------------^  ^------^
|          |    |           |                  |
| | | | +--&gt; (Optional) Issue reference: if the commit closes or fixes an issue
@desplesda
desplesda / UnityUI2019to2018.sed
Last active October 20, 2021 18:47
A sed script that fixes Unity UI component references when downgrading from 2019.3 to earlier versions.
# UnityUI2019to2018.sed
#
# Jon Manning (@desplesda) 2020
#
# Replaces instances of Unity UI components that refer to the package version of Unity UI (2019.3+), as opposed to the built-in version of Unity (2019.2 and earlier). Can be used on .prefab and .scene files.
#
# Usage: sed -f UnityUI2019to2018.sed SceneOrPrefab2019.unity > SceneOrPrefab2018.unity
# Button
s/m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}/m_Script: {fileID: 1392445389, guid: f70555f144d8491a825f0804e09c671c, type: 3}/g
@Youka
Youka / sysinfo.bat
Last active December 4, 2023 03:22
Simple batch file for system information on windows
@echo off
rem Resize window for following masses of content
mode 200,50
rem Get CPU information
echo # CPU
wmic CPU GET AddressWidth,CurrentClockSpeed,CurrentVoltage,L2CacheSize,L3CacheSize,LoadPercentage,Manufacturer,Name,NumberOfCores,NumberOfLogicalProcessors
echo.
rem Get graphics card information
@seibe
seibe / EditorTextureUtil.cs
Created August 7, 2017 08:26
UnityEditor.TextureUtil アクセサ
using System.Reflection;
using UnityEngine;
using UnityEngine.Assertions;
/// <summary>
/// <see cref="UnityEditor.TextureUtil"/> Accessor
/// </summary>
/// <author>Seibe TAKAHASHI</author>
/// <remarks>
@parmentf
parmentf / GitCommitEmoji.md
Last active May 2, 2024 20:29
Git Commit message Emoji
@tuxfight3r
tuxfight3r / vim-shortcuts.md
Last active May 3, 2024 05:11
VIM SHORTCUTS

VIM KEYBOARD SHORTCUTS

MOVEMENT

h        -   Move left
j        -   Move down
k        -   Move up
l        -   Move right
$        -   Move to end of line
0        -   Move to beginning of line (including whitespace)
@tuxfight3r
tuxfight3r / 01.bash_shortcuts_v2.md
Last active May 2, 2024 09:06
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description
ctrl + a Goto BEGINNING of command line
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule
@hiko9lock
hiko9lock / TouchCamera.cs
Last active April 1, 2023 08:43
[Unity 3D] Testing camera pan,zoom, orbit for iOS. Setting camera target after you have attached this camera script to camera object.
using UnityEngine;
using System.Collections;
public class TouchCamera : MonoBehaviour {
public Transform target;
Vector3 f0Dir= Vector3.zero;
float zoomDistance= 5;
float theta= 0.0F;
float fai= 0.0F;
float dx= 0.0F;