Skip to content

Instantly share code, notes, and snippets.

View jotafeldmann's full-sized avatar
🐙
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn

Jota Feldmann jotafeldmann

🐙
Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn
  • São Paulo, SP, Brazil
View GitHub Profile
@jotafeldmann
jotafeldmann / MusicPlayerNotification.js
Last active February 3, 2023 18:35
Music Player Notification: add desktop tracks transitions notifications for Spotify and Youtube Music web player.
/*
# Music Player Notification
Notifications for tracks transitions
- Author: Jorge Feldmann (https://github.com/jotafeldmann)
- Last update: see the gist update date
- Feel free to manipulate and add more music players notifications
## Instructions:
@jotafeldmann
jotafeldmann / handlebars-print-keys.html
Last active July 8, 2019 17:29
Print Handlebars Keys
########### REMOVE AFTER USE<br /><br />
{{#each}}
<hr>
Key: {{@key}}<br />
Value: {{.}}<br/>
<hr>
{{/each}}<br /><br />
########### REMOVE AFTER USE<br /><br />
@jotafeldmann
jotafeldmann / git-global-ignore.txt
Created April 15, 2017 05:39
Git global ignore
git config --global core.excludesfile ~/.gitignore_global
From: https://help.github.com/articles/ignoring-files/
@jotafeldmann
jotafeldmann / javascript.js
Last active February 27, 2019 18:33
JavaScript: prints the current called function name and arguments from inside the function. VS Code snippet.
{
/*
// Place your snippets for JavaScript here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, ${id} and ${id:label} and ${1:label} for variables. Variables with the same id are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
"console.log('$1');",
@jotafeldmann
jotafeldmann / get-exit-signal-for-traps.sh
Last active February 17, 2017 19:53
How to get EXIT SIGNAL in bash for TRAPS
#!/bin/bash
trap_with_arg() {
func="$1" ; shift
for sig ; do
trap "$func $sig" "$sig"
done
}
func_trap() {
@jotafeldmann
jotafeldmann / regex_to_find_all_non_ascii_characters.js
Created September 16, 2015 21:43
Regex to find all non-ASCII characters
[^\x00-\x7F]