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
| // Zed settings | |
| // | |
| // For information on how to configure Zed, see the Zed | |
| // documentation: https://zed.dev/docs/configuring-zed | |
| // | |
| // To see all of Zed's default settings without changing your | |
| // custom settings, run the `zed: Open Default Settings` command | |
| // from the command palette | |
| { | |
| "assistant": { |
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
| docker compose up -d |
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
| {"lastUpload":"2021-05-22T11:43:54.326Z","extensionVersion":"v3.4.3"} |
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
| #eval $(thefuck --alias) | |
| function myPk() { | |
| cd ~/workspaces/obbaeiei/my-code; | |
| node -e "a = require('stellar-sdk').Keypair.fromSecret(\"$1\").publicKey(); console.log(a)"; | |
| } | |
| alias work1='cd ~/workspaces/thesixnetwork/six-web-wallet' | |
| alias work2='cd ~/go/src/github.com/thesixnetwork/six.network' |
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
| defaults write NSGlobalDomain ApplePressAndHoldEnabled -bool false |
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 main() { | |
| console.log(1) // ปริ้น 1 | |
| delay(1000) // รอ 1 วินาที ถึงจะเรียกฟังชั่นบรรทัดที่ 4 | |
| .then(()=> { | |
| console.log(2) // ปริ้น 2 | |
| return delay(2000) // รอ 2 วิ ค่อยเรียกบรรทัดที่ 8 | |
| }) | |
| .then(()=>{ | |
| console.log(3) | |
| }) |
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 main() { | |
| console.log(1) | |
| setTimeout(()=>{ | |
| console.log(2) | |
| setTimeout(()=>{ | |
| console.log(3) | |
| }, 2000) | |
| }, 1000) | |
| } |
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
| async function main() { | |
| console.log(1) | |
| await delay(1000) | |
| console.log(2) | |
| await delay(2000) | |
| console.log(3) | |
| } | |
| function delay(ms) { | |
| return new Promise((resolve)=>{ |
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
| async function main() { | |
| const user = await promiseFindUser() | |
| console.log('name: ', user.name) | |
| } | |
| function promiseFindUser() { | |
| return new Promise((resolve)=>{ | |
| setTimeout(()=>{ | |
| const user = { | |
| name: 'Thor' |
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
| setTimeout(function callMeBaby() { console.log(5) }, 1000) | |
| function setTimeout(callback, ms) { | |
| // รอ 1000 ms | |
| callaback() | |
| } |
NewerOlder