Skip to content

Instantly share code, notes, and snippets.

View alexdevero's full-sized avatar
👨‍💻
The more I learn [about JS], the more there is to learn [about JS].

Alex Devero alexdevero

👨‍💻
The more I learn [about JS], the more there is to learn [about JS].
View GitHub Profile
@alexdevero
alexdevero / README.md
Created May 4, 2020 13:39 — forked from gbraad/README.md
Buy me a coffee
We couldn’t find that file to show.
@alexdevero
alexdevero / worldometers-covid-scrapper.js
Created April 26, 2020 12:26
Simple script for scrapping covid data from worldometers.info/coronavirus
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()
@alexdevero
alexdevero / poddycast-favorite_podcasts.json
Created June 17, 2019 04:57
Poddycast - My favorite podcasts
[{"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
@alexdevero
alexdevero / darkreader-lighter-scrollbar
Created April 6, 2019 09:43
darkreader - make dark scrollbar on dark sites lighter
*
CSS
::-webkit-scrollbar {
background-color: #0d0d0d;
color: #afafaf;
width: auto;
height: auto;
}
/* foreground bar */
@alexdevero
alexdevero / update-cygwin.md
Created June 10, 2018 08:03
Update Cygwin and its packages

Update Cygwin and its packages

Run following commands in CMD (as admin):

  • cd C:\cygwin or the name of the folder where you have Cygwin installed
  • wget -N https://cygwin.com/setup-x86_64.exe or download the file manually
  • setup-x86.exe --no-desktop --no-shortcuts --no-startmenu --quiet-mode (it is better to disable antivirus and firewall)
@alexdevero
alexdevero / willSucceed.js
Created March 27, 2018 13:13
Will you succeed?
const willSucceed =() => {
const mindset = [
['ambition', true],
['confidence', true],
['courage', true],
['creativity', true],
['determination', true],
['discipline', true],
['grit', true],
['persistence', true],
@alexdevero
alexdevero / markdown.reg
Last active January 3, 2024 08:48
Add markdown as an item to “New” context menu in Windows 10 (https://superuser.com/questions/638755/add-item-to-new-context-menu-in-windows-8#640486).
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.md]
@="markdown"
[HKEY_CLASSES_ROOT\.md\ShellNew]
"NullFile"=""
[HKEY_CLASSES_ROOT\markdown]
@="Blank Markdown file"
@alexdevero
alexdevero / gist:8cc4e1384678aa4ddc490304c6ecb107
Created March 1, 2018 08:34 — forked from lttlrck/gist:9628955
rename git branch locally and remotely
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
@alexdevero
alexdevero / clear-cache.js
Created February 24, 2018 12:08 — forked from akashnimare/clear-cache.js
Clear cach in electron
const {BrowserWindow} = require('electron');
const win = BrowserWindow.getAllWindows()[0];
const ses = win.webContents.session;
ses.clearCache(() => {
alert("Cache cleared!");
});
@alexdevero
alexdevero / init-script.coffee
Created February 15, 2018 07:40
Atom - Unsubscribe from the gitrefresh event for every repo in the current project
(->
###*
# 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) ->