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
import axios from 'axios' | |
import cheerio from 'cheerio' | |
async function getData() { | |
const data = await axios.get('https://www.worldometers.info/coronavirus/') | |
.then(res => res.data) | |
const $ = cheerio.load(data) | |
const cases = $('#maincounter-wrap > .maincounter-number span').html().trim() |
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
[{"artistName":"Tim Ferriss: Bestselling Author, Human Guinea Pig","collectionName":"The Tim Ferriss Show","artworkUrl30":"https://is3-ssl.mzstatic.com/image/thumb/Music128/v4/44/7d/df/447ddfa8-227a-6ef6-b557-e5c0fdb3303a/source/30x30bb.jpg","artworkUrl60":"https://is3-ssl.mzstatic.com/image/thumb/Music128/v4/44/7d/df/447ddfa8-227a-6ef6-b557-e5c0fdb3303a/source/60x60bb.jpg","artworkUrl100":"https://is3-ssl.mzstatic.com/image/thumb/Music128/v4/44/7d/df/447ddfa8-227a-6ef6-b557-e5c0fdb3303a/source/100x100bb.jpg","feedUrl":"https://rss.art19.com/tim-ferriss-show"},{"artistName":"Nir Eyal","collectionName":"Nir And Far: Business, Behaviour and the Brain","artworkUrl30":"https://is2-ssl.mzstatic.com/image/thumb/Music118/v4/db/4f/a5/db4fa546-82d8-dc44-12f2-2e1c37bd8a8c/source/30x30bb.jpg","artworkUrl60":"https://is2-ssl.mzstatic.com/image/thumb/Music118/v4/db/4f/a5/db4fa546-82d8-dc44-12f2-2e1c37bd8a8c/source/60x60bb.jpg","artworkUrl100":"https://is2-ssl.mzstatic.com/image/thumb/Music118/v4/db/4f/a5/db4fa546-82d8-dc4 |
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
* | |
CSS | |
::-webkit-scrollbar { | |
background-color: #0d0d0d; | |
color: #afafaf; | |
width: auto; | |
height: auto; | |
} | |
/* foreground bar */ |
Run following commands in CMD (as admin):
cd C:\cygwin
or the name of the folder where you have Cygwin installedwget -N https://cygwin.com/setup-x86_64.exe
or download the file manuallysetup-x86.exe --no-desktop --no-shortcuts --no-startmenu --quiet-mode
(it is better to disable antivirus and firewall)
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
const willSucceed =() => { | |
const mindset = [ | |
['ambition', true], | |
['confidence', true], | |
['courage', true], | |
['creativity', true], | |
['determination', true], | |
['discipline', true], | |
['grit', true], | |
['persistence', true], |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\.md] | |
@="markdown" | |
[HKEY_CLASSES_ROOT\.md\ShellNew] | |
"NullFile"="" | |
[HKEY_CLASSES_ROOT\markdown] | |
@="Blank Markdown 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
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
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
const {BrowserWindow} = require('electron'); | |
const win = BrowserWindow.getAllWindows()[0]; | |
const ses = win.webContents.session; | |
ses.clearCache(() => { | |
alert("Cache cleared!"); | |
}); |
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
(-> | |
###* | |
# Unsubscribe from the gitrefresh event for every repo in the current project | |
# A fix for issue: https://github.com/atom/atom/issues/9544 | |
### | |
disableGitRefreshOnFocus = -> | |
atom.project.repositories.forEach (repo) -> | |
if repo and repo.subscriptions and repo.subscriptions.disposables and repo.subscriptions.disposables.size | |
Array.from(repo.subscriptions.disposables).forEach (item) -> |
NewerOlder