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
| #define stl_foreach(v, c) for (typeof(c.begin()) v = c.begin(); v != c.end(); ++v) |
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
| ; Save this code to inf file and install it | |
| ; | |
| ; "CMD Prompt Here" PowerToy | |
| ; | |
| ; Copyright 1996 Microsoft Corporation | |
| ; | |
| [version] | |
| signature="$CHICAGO$" | |
| [CmdHereInstall] |
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
| #import <objc/objc-runtime.h> | |
| #define LOAD_CLASS(name) LOAD_CLASS_BY_NAME(#name) | |
| #if __OBJC2__ | |
| #if TARGET_RT_64_BIT | |
| #define LOAD_CLASS_BY_NAME(name) \ | |
| asm(\ | |
| ".section __DATA,__objc_classrefs,regular,no_dead_strip\n"\ | |
| ".align 3\n"\ | |
| "L_OBJC_CLASS_"name":\n"\ |
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 join { local IFS="$1"; shift; echo "$*"; } |
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
| static class FileOutputStream extends java.io.FileOutputStream { | |
| public FileOutputStream(File file) throws FileNotFoundException { | |
| super(file, false); | |
| } | |
| public FileOutputStream(File file, boolean append) throws FileNotFoundException { | |
| super(file, append); | |
| } | |
| public FileOutputStream(FileDescriptor fd) { |
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
| import java.io.File; | |
| import java.io.FileDescriptor; | |
| import java.io.IOException; | |
| import java.io.FileNotFoundException; | |
| import java.lang.Thread; | |
| import java.util.Date; | |
| public class Log { |
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
| #!/system/bin/sh | |
| function show_help() { | |
| echo " | |
| Usage: sh fps.sh [ -t target_FPS ] [ -w monitor_window ] [ -k KPI ] [ -f csv_path ] [ -h ] | |
| Show: FU(s) LU(s) Date FPS Frames jank MFS(ms) OKT SS(%) |
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
| Option Explicit | |
| 'Convert binary to chars | |
| Function ConvertToKey(Key) | |
| Const KeyOffset = 52 | |
| Dim isWin10, Maps, i, j, Current, KeyOutput, Last, keypart1, insert | |
| 'Check if OS is Windows 10 | |
| isWin10 = (Key(66) \ 6) And 1 | |
| Key(66) = (Key(66) And &HF7) Or ((isWin10 And 2) * 4) |
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
| Option Explicit | |
| Public Sub AutoFitSelection() | |
| Dim theSelection As Range | |
| Set theSelection = Application.Selection | |
| Call AutoFitCells(Application.Selection) | |
| End Sub | |
| Public Sub AutoFitCells(oRange As Range) | |
| Dim tHeight As Integer |
OlderNewer