Skip to content

Instantly share code, notes, and snippets.

View adamsalves's full-sized avatar
:octocat:
Focusing

Adams Alves adamsalves

:octocat:
Focusing
View GitHub Profile
@Akryum
Akryum / vue.config.js
Last active April 26, 2020 14:18
Auto-import styles with vue-cli 3
const path = require('path')
module.exports = {
chainWebpack: config => {
const types = ['vue-modules', 'vue', 'normal-modules', 'normal']
types.forEach(type => addStyleResource(config.module.rule('stylus').oneOf(type)))
},
}
function addStyleResource (rule) {
@RyanNutt
RyanNutt / isBase64.js
Created June 16, 2017 14:53
Check if a String is base64 encoded using JavaScript - from https://stackoverflow.com/a/34068497/1561431
function isBase64(str) {
try {
return btoa(atob(str)) == str;
} catch (err) {
return false;
}
}
@alanhoff
alanhoff / README.md
Last active June 21, 2020 19:57
Pré NodeConf

Pré NodeConf

Não é segredo para ninguém que nos dias 4 e 5 de Julho acontecerá em São Paulo a primeira NodeConf da América Latina. Pensando nisso resolvemos criar um pré evento que consiste em uma série de eventos ao vivo e 100% gratuito no YouTube para que os participantes possam aprender um pouco mais sobre a plataforma e participar da NodeConf com uma boa base de conhecimento.

Os assuntos apresentados serão complementares aos assuntos que os palestrantes abordarão durante a NodeConf Brazil, portanto não perca tempo e adicione um

@mxstbr
mxstbr / Readme.md
Last active October 20, 2024 20:44
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])':
@claudiosanches
claudiosanches / install.sh
Last active September 3, 2021 15:48
Ubuntu - Install Strem.io
#!/usr/bin/env bash
sudo su
curl -SO# http://178.62.254.47/Stremio3.5.1.linux.tar.gz
mkdir -p /opt/stremio
tar -xvzf Stremio3.5.1.linux.tar.gz -C /opt/stremio
curl -SO# http://www.strem.io/3.0/stremio-white-small.png
mv stremio-white-small.png /opt/stremio/
curl -SO# https://gist.githubusercontent.com/claudiosmweb/797b502bc095dabee606/raw/52ad06b73d90a4ef389a384fbc815066c89798eb/stremio.desktop
mv stremio.desktop /usr/share/applications/
@gokulkrishh
gokulkrishh / media-query.css
Last active November 4, 2024 09:18
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
/* CSS */

Hexo with Google search bar

@fdaciuk
fdaciuk / 01 - Sublime Configurations.md
Last active March 11, 2021 00:56
Sublime Configurations