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
set O to 53 | |
set X to 36 | |
set keyUp to 126 | |
set keyDown to 125 | |
set keyLeft to 123 | |
set keyRight to 124 | |
set countRepeat to 0 | |
set minOk to 15 |
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
[ | |
{ | |
"zoneName": "Atlantic/Cape_Verde", | |
"offset": "-01:00" | |
}, | |
{ | |
"zoneName": "Brazil/DeNoronha", | |
"offset": "-02:00" | |
}, | |
{ |
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
# instal docker | |
sudo apt update | |
sudo apt install apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
sudo apt update | |
sudo apt install docker-ce | |
sudo systemctl status docker |
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 | |
# This script helped to you start emulator from cli | |
# Check if the emulator command exists first | |
if ! type emulator > /dev/null; then | |
export PATH=${PATH}:~/Library/Android/sdk/emulator | |
fi | |
if ! type emulator > /dev/null; then |
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
firebase functions:config:set service_account="$(cat service-account.json)" | |
https://github.com/firebase/firebase-tools/issues/406#issuecomment-353017349 |
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
/** | |
* @since 2019 | |
* @author Anton Vlasov - whalemare | |
*/ | |
class Main { | |
fun main(args: Array<String>) { | |
logger("hello") | |
} | |
} |
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
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "cmd+q", | |
"command": "editor.action.showHover", | |
"when": "editorTextFocus" | |
}, | |
{ | |
"key": "cmd+w", | |
"command": "editor.action.smartSelect.expand", |
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 | |
file="package.json" | |
if [ -f "$file" ] | |
then | |
# all is ok | |
echo "" | |
else | |
cd .. | |
if [ -f "$file" ] |
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
function compare(x, y) { | |
return x > y | |
} | |
/** | |
* @param {any[]} array list of items | |
* @param {() => boolean} f function selector | |
*/ | |
function sortBy(array, f) { | |
return array.sort((x, y) => compare(f(x), f(y))) |
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
class ProfileFragment : Fragment() { | |
val viewModel: ProfileViewModel by viewModel() | |
} |
NewerOlder