This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function git-prune() { | |
| # Determine the default branch (main or master) | |
| local branch | |
| branch=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@') | |
| # Fallback if detection fails | |
| if [ -z "$branch" ]; then | |
| branch="master" | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "profiles": [ | |
| { | |
| "complex_modifications": { | |
| "rules": [ | |
| { | |
| "description": "Ctrl-A -> Select All", | |
| "manipulators": [ | |
| { | |
| "from": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const encoder = new TextEncoder(); | |
| // BITWISE OPERATIONS | |
| const HexDigits = ['0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f']; | |
| function toHexString_BitwiseOperations(arrayBuffer: ArrayBuffer) { | |
| const buffer = new Uint8Array(arrayBuffer); | |
| const result = []; | |
| for (let i=0; i<buffer.length; ++i) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public static class Proxy | |
| { | |
| private static PropertyInfo[] GetProperties(Type type) | |
| { | |
| var list = type.GetProperties().ToList(); | |
| foreach (var intaface in type.GetInterfaces()) | |
| { | |
| list.AddRange(GetProperties(intaface)); | |
| } |