This file contains 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
void main() async { | |
final process = () async { | |
final delayed1 = await delayedNumber(1); | |
await delayedString('1').then((str) async { | |
final futures = [ | |
delayedNumber(2), | |
delayedNumber(3), | |
delayedNumber(4), | |
]; | |
await Future.wait(futures); |
This file contains 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
#!/bin/bash | |
# Installs AndroidStyle IntelliJ configs into your user configs. | |
# Reference https://github.com/square/java-code-styles/blob/master/install.sh | |
echo "Installing AndroidStyle IntelliJ configs..." | |
for dirs in $HOME/Library/Preferences/IntelliJIdea* \ | |
$HOME/Library/Preferences/IdeaIC* \ | |
$HOME/Library/Preferences/AndroidStudio* \ | |
$HOME/.IntelliJIdea*/config \ |
This file contains 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
protected_branches="master develop" | |
policy='[Policy] Never force push or delete the '$protected_branch' branch! (Prevented with pre-push hook.)' | |
current_branch=$(git symbolic-ref HEAD | sed -e 's,.*/\(.*\),\1,') | |
push_command=$(ps -ocommand= -p $PPID) | |
is_destructive='force|delete|\-f' |
This file contains 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
cp -f /usr/local/Cellar/ricty/3.2.4/share/fonts/Ricty*.ttf ~/Library/Fonts/ | |
fc-cache -vf |
This file contains 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
#!/bin/sh | |
i=0 | |
while [ $i -ne 200 ] | |
do | |
i=$(( i+1 )) | |
cp -r /mnt/shell/emulated/0/0 /mnt/shell/emulated/0/$i | |
done |
This file contains 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
#!/bin/bash | |
PACKAGENAME=$1 | |
DBNAME=$2 | |
adb -d shell "run-as $PACKAGENAME cat /data/data/$PACKAGENAME/databases/$DBNAME > /sdcard/output.db" | |
adb pull /sdcard/output.db |
This file contains 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
{ | |
"draw_white_space": "all", | |
"font_face": "Ricty", | |
"font_size": 14, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"open_files_in_new_window": false, | |
"scroll_past_end": true, |