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 / .gitignore
Created August 7, 2017 07:06
Default .gitignore for my project
# Development folders and files #
#################################
.tmp/
dist/
node_modules/
# Folder config file #
######################
Desktop.ini
@alexdevero
alexdevero / gist:bf89343a13b9564f47c4a18cef05eb41
Created August 5, 2017 09:39 — forked from AliMD/gist:3344523
All github Emoji (Smiles)

All github Emoji (Smiles)

ali.md/emoji

:bowtie: | 😄 | 😆 | 😊 | 😃 | ☺️ | 😏 | 😍 | 😘 | :kissing_face: | 😳 | 😌 | 😆 | 😁 | 😉 | :wink2: | 👅 | 😒 | 😅 | 😓

😩 | 😔 | 😞 | 😖 | 😨 | 😰 | 😣 | 😢 | 😭 | 😂 | 😲 | 😱 | :neckbeard: | 😫 | 😠 | 😡 | 😤 | 😪 | 😋 | 😷

😎 | 😵 | 👿 | 😈 | 😐 | 😶 | 😇 | 👽 | 💛 | 💙 | 💜 | ❤️ | 💚 | 💔 | 💓 | 💗 | 💕 | 💞 | 💘 | ✨

@alexdevero
alexdevero / Readme.md
Created July 22, 2017 08:01 — forked from mxstbr/Readme.md
Enable tab completion for JSX with Emmet in Atom

Enable tab completion for JSX with Emmet in Atom

This guide assumes you have the emmet and language-babel packages already installed in Atom

Gif of the tab completion working

  1. Open the keymap.cson file by clicking on Atom -> Keymap… in the menu bar
  2. Add these lines of code to your keymap:
'atom-text-editor[data-grammar~="jsx"]:not([mini])':
@alexdevero
alexdevero / BrowserDetect.js
Created May 13, 2017 11:21
Script for detecting browsers
const BrowserDetect = {
init: () => {
BrowserDetect.browser = BrowserDetect.searchString(BrowserDetect.dataBrowser) || 'Other';
BrowserDetect.version = BrowserDetect.searchVersion(navigator.userAgent) || BrowserDetect.searchVersion(navigator.appVersion) || 'Unknown';
},
searchString: (data) => {
for (let i = 0; i < data.length; i++) {
let dataString = data[i].string;
BrowserDetect.versionSearchString = data[i].subString;
@alexdevero
alexdevero / print-blinkist.js
Last active May 18, 2022 18:15
print-blinkist.js
/**
* Simple snippet for printing free book summaries on https://www.blinkist.com/nc/daily
* Open the book and use following code via browser console.
*/
$('.page main header, main .daily__top-menu, .reader__container > .reader__container__left, .reader__container__content .chapter.promotion, .reader__container__content .reader__container__buttons, .reader__container .reader__container__full__bottom_bar, .reader__container .reader__container__partial__bottom_bar').remove();
$('.reader__container__right .reader__container__content .chapter').css('display', 'block');
$('.chapter.supplement h1').css('margin-top', '0');