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
adb shell | |
# Most battery efficent | |
wm size 720x1480 | |
wm density 280 | |
# Original | |
wm size 1440x2960 | |
wm density 560 |
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
<?php | |
function max_mem_usage() | |
{ | |
$bytes = memory_get_peak_usage(); | |
$units = array('B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB'); | |
$mod = 1024; | |
$power = $bytes > 0 ? floor(log($bytes, $mod)) : 0; | |
return sprintf('%01.2f %s', $bytes / pow($mod, $power), $units[$power]); | |
} |
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
func main() { | |
os.Remove("prompt.txt") | |
promptFile, err := os.Create("prompt.txt") | |
if err != nil { | |
log.WithError(err).Fatal("Error creating prompt.txt") | |
} | |
defer promptFile.Close() | |
err = filepath.WalkDir("go-backend", func(path string, d fs.DirEntry, err error) error { | |
if !strings.HasSuffix(path, ".go") { |
OlderNewer