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
| var masterTile = document.querySelectorAll('div[jsname="v2aOce"]')[0]; | |
| var masterVideoContainerTile = document.querySelectorAll('div[jsname="v2aOce"] div[jscontroller="jb5WPb"]')[0]; | |
| var videoContainerTile = document.querySelectorAll('div[jsname="v2aOce"] div[jsname="Nl0j0e"]')[0]; | |
| var videoTile = document.querySelectorAll('div[jsname="v2aOce"] div[data-ssrc="146904037"]')[0]; | |
| var width = 15; | |
| var height = 15; | |
| masterTile.style.right = 0; | |
| masterTile.style.top = `calc(100vh - ${height * 0.55 + height}vh)`; |
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
| git submodule add --name "nickname" -b "master" https://bitbucket.org/yourrepo/cool.git custom/path |
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
| const original = { | |
| a: 1, | |
| b: 2, | |
| c: 3, | |
| d: 4 | |
| }; | |
| const updated = { | |
| a: 1, | |
| b: 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
| async doSomethingWithBigArray(bigArray) { | |
| const arrayBatch = []; | |
| const batchSize = 30; | |
| while (bigArray.length > 0) arrayBatch.push(bigArray.splice(0, batchSize)); | |
| for (let i = 0; i < arrayBatch.length; i++) { | |
| const batch = arrayBatch[i]; | |
| await Promise.all(batch.map(async (arrayItem) => { | |
| await this.doSomethingWithItem(arrayItem); | |
| })); |
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
| sudo killall VDCAssistant |
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
| #!/bin/bash | |
| # <bitbar.title>Binance Prices</bitbar.title> | |
| # <bitbar.version>v1.0</bitbar.version> | |
| # <bitbar.author>Gabriel Age</bitbar.author> | |
| # <bitbar.author.github>agezao</bitbar.author.github> | |
| # <bitbar.dependencies>bash, python</bitbar.dependencies> | |
| bitcoin_icon='iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAQAAABLCVATAAAACXBIWXMAABYlAAAWJQFJUiTwAAABY0lEQVRIx2P4z0AdyEBzg1DAdIYfQJgCZHmCWdsYMAFRBs0BC2UAWT5g1p6hbZAggwIcrgALVQNZSWDWAQY24g3qwRtJ/xgeMqxkCGJgotQgGLzAoEUdg/4zvGQQIxzYLAyODF/gQv0MlgwWDK4MOQxbgV5DKG0nLtZ2wIUykII2EMmoU8QZtAWrQQwMB+HiDygzaDNc/CQlBskwfIKLN5JrkAxDFsMTuOh9BiFSDXoHDI2HDB9RlJ1kECc2r20hkI5OMXhQxyAQzCTNoDJgaAgAvaLLEMkwn+EbkuLvDBLkR78yUoD/Z0gn3yAGhnwk5V2UGBRGLYNmICkvIGzQLqwG8TA0oJQAVvgMymcoYehg+AUXWgoM0kygWC/DbpQ4+89wjYERt0FiRNeNX4GlFJ505EykMacZDPGn7HwCBnxiOMcwjcGJcOEvzqADh2vBQk1AVhaYdZCBc7TKpqJBA9ZiAwDMH49EXcmY2QAAAABJRU5ErkJggg==' |
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
| # Create | |
| virtualenv xpto | |
| #Activate | |
| source mypython/bin/activate | |
| pip3 install -r requirements.txt | |
| #Deactivate | |
| deactivate |
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
| #After cloning | |
| git submodule update --init --recursive | |
| #On pull | |
| git submodule update --recursive |
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
| git push --delete <remote_name> <branch_name> | |
| git branch -d <branch_name> |
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 run --name mongo36 -e MONGO_INITDB_ROOT_USERNAME=root -e MONGO_INITDB_ROOT_PASSWORD=noice -v c:\dev\mdb:/data/db -d -p 27017:27017 mongo:3.6.6 |
NewerOlder