Skip to content

Instantly share code, notes, and snippets.

View felipebernardes's full-sized avatar
👋
Available for quick chats

Felipe Bernardes felipebernardes

👋
Available for quick chats
View GitHub Profile
@DariuszLuber
DariuszLuber / Webpack config for Sass+ES6+LiveReload.md
Last active July 29, 2022 10:10
Webpack + ES6 + Sass + Live reload

#Webpack + ES6 + Sass + Live reload

Basic example of webpack config to work with sass, es6 and live reload.

To get live reload working you need:

  • get package.json and webpack.config.js to your project foldee
  • run in terminal npm install
  • add this script <script src="http://localhost:35729/livereload.js"></script> to your index.html
  • create src folder and src files
  • run in terminal webpack
@fmasanori
fmasanori / Ordena Salarios USP.py
Last active May 22, 2021 18:59
Ordena Salários USP
#feito por https://twitter.com/guilhermeslcs
class Professor:
def __init__(self, nome, instituto, funcao, salario):
self.nome = nome
self.instituto = instituto
self.funcao = funcao
self.salario = salario
f = open("salarios.txt", "r")
@rochacbruno
rochacbruno / a.md
Last active August 2, 2017 04:10
F12 to open anything

Use F12 to toggle visibility of any app, not only guake|yaquake

Save the toggle_visibility.sh in your home directory

$ chmod +x toggle_visibility.sh

go to XFCE -> settings -> Keyboard -> Application shortcuts (or equivalent in your window manager)

const createLogger = (backgroundColor, color) => {
const logger = (message, ...args) => {
if (logger.enabled === false) {
return;
}
console.groupCollapsed(
`%c${message}`,
`background-color: ${backgroundColor}; color: ${color}; padding: 2px 4px;`,
...args