Skip to content

Instantly share code, notes, and snippets.

View mateusvahl's full-sized avatar
🏠
Working from home

Mateus Vahl mateusvahl

🏠
Working from home
View GitHub Profile
@justincy
justincy / README.md
Last active July 17, 2023 07:48
Configure Storybook to work with Next.js, TypeScript, and CSS Modules

In addition to the Storybook for React setup, you'll also need to install these packages:

npm i -D @babel/core babel-loader css-loader style-loader
@callmeloureiro
callmeloureiro / comoSerChatoNoWhatsapp.js
Last active January 15, 2024 20:44
Como fazer alguém te responder no whatsapp
/*
Hoje iremos MUDAR a vida da pessoa que não te responde no whatsappp...
Que tal enviar mensagens pra ela até obter uma resposta?!
Sensacional não acha?! Mas, somos devs, correto?! Então vamos automatizar esse paranauê!
Para utilizar:
- Abra o web.whatsapp.com;
- Selecione a conversa que você quer;
- Abra o console e cole o código que está no gist;
@reborg
reborg / rich-already-answered-that.md
Last active February 23, 2024 13:09
A curated collection of answers that Rich gave throughout the history of Clojure

Rich Already Answered That!

A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.

How to use:

  • The link in the table of content jumps at the copy of the answer on this page.
  • The link on the answer itself points back at the original post.

Table of Content

@davidalves1
davidalves1 / problema-gulp.md
Last active June 4, 2019 15:56
Resolver problema "Failed to load external module babel-core/register"

Problema

Ao executar o gulp em um projeto, é exibido o erro:

$ gulp
[19:55:52] Failed to load external module babel-register
[19:55:52] Requiring external module babel-core/register
...
@RReverser
RReverser / better-console-log.js
Last active May 9, 2019 21:07
Better console.log in Node
// UPD:
// Now available as npm module!
// Check out https://github.com/RReverser/better-log for details.
console.log = (function (log, inspect) {
return function () {
return log.apply(this, Array.prototype.map.call(arguments, function (arg) {
return inspect(arg, { depth: 1, colors: true });
}));
};
@MajorBreakfast
MajorBreakfast / broccoli
Last active August 29, 2015 14:16
Analysis of Broccoli
# Strengths
- No leftover files
- Solved by passing temporary directories between plugins (i.e. tasks)
# Weaknesses
- No parallel plugin execution
- No parallel tasks: Independent tasks could execute in parallel
- No parallel builds: Can't decouple independent parts, e.g. unit tests from rest
- Code base issues
@patarkf
patarkf / git_to_deploy
Last active August 29, 2015 14:15
GIT to deploy website
Hey, folks. Below, the steps that I followed (after a little search on the web) to deploy my application
(website) using GIT, on the cleanest and easiest way. The advantage of this method is that any small
change pushed to remote repo will be published in your live website.
Step 1: Create the local GIT repository
$ cd /var/www/project/
$ git init
$ git add *
@ericelliott
ericelliott / essential-javascript-links.md
Last active March 28, 2024 23:01
Essential JavaScript Links
@p3t3r67x0
p3t3r67x0 / pseudo_elements.md
Last active January 16, 2024 01:17
A CSS pseudo-element is used to style specified parts of an element. In some cases you can style native HTML controls with vendor specific pseudo-elements. Here you will find an list of cross browser specific pseudo-element selectors.

Styling native elements

Native HTML controls are a challenge to style. You can style any element in the web platform that uses Shadow DOM with a pseudo element ::pseudo-element or the /deep/ path selector.

video::webkit-media-controls-timeline {
  background-color: lime;
}

video /deep/ input[type=range] {
@guilu
guilu / windows terminal - Solarized Dark.reg
Created August 21, 2014 07:06
windows terminal Solarized Dark
Windows Registry Editor Version 5.00
; Registry file that maps the solarized palette to the 16 avaliable colors
; in a Windows command prompt. Note, hex values in the table are RGB but byte
; ordering of a DWORD is BGR, e.g. "ColorTable<##>"=dword:00<B><G><R>
;
; Solarized color table from http://ethanschoonover.com/solarized.
;
; NR cmd.exe PowerShell SOLARIZED HEX DWORD
; -- ------- ----------- --------- ------- --------