Skip to content

Instantly share code, notes, and snippets.

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

Jimmy Andrade jimmyandrade

🏠
Working from home
View GitHub Profile

Mapping input types from iOS to HTML

none

<input />

text

@jimmyandrade
jimmyandrade / Tons.mdx
Last active June 24, 2020 20:13
Tons de música e moods

Tons

Como o tom de uma música ajuda a influenciar seu mood

Tons maiores

Tom Nome Mood
C Do maior Simples, natural
C# Do sustenido maior Cheio de encanto, suave
@jimmyandrade
jimmyandrade / package.json
Created June 10, 2020 23:50
Package files example
{
"files": [
"dist"
],
"browser": "dist/index.umd.js",
"esmodule": "dist/index.esm.js",
"jsnext:main": "dist/index.esm.js",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"source": "lib/index.js",
const mockedFunction = (keys) => (key) => {
if(keys.include(key)) {
return keys[key]
}
return false
}
const fn = mockedFunction({
PARKING_REPORT: true,
CAR_PLATE_CONFIRM: true
@jimmyandrade
jimmyandrade / cosmos.txt
Created June 4, 2019 03:03
Cifra de Cosmos
INTRO
Dm F F Gm Eb Eb Cm Dm Dm
VERSOS
Dm F C
Presentes, mentiras
C Gm Eb
Me fazem acreditar
@jimmyandrade
jimmyandrade / serfeliz.txt
Last active January 19, 2019 20:54
Ser Feliz
[Intro]
C/G C/B Dm F
[Versos]
C/G C/B
B: De pé em pé
Dm F G/F
B: A gente gira o mundo
C/G C/B
@jimmyandrade
jimmyandrade / disparo-passo-1.html
Created May 16, 2018 21:47
Exemplo de código do novo passo de disparo
<div class="dispatch-page">
<div class="header-box">
<div class="header-title">
<h4>Realizar ou agendar um novo disparo
</h4>
</div>
</div>
<div class="row">
<div class="stepwizard row col-xs-12 col-sm-8 col-md-6">
@jimmyandrade
jimmyandrade / install.sh
Last active August 27, 2018 19:28
Configure Jimmy's machine
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
# Add the Google Chrome repository
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
sudo add-apt-repository ppa:atareao/telegram
sudo apt-get --assume-yes install google-chrome-stable
sudo apt-get --assume-yes install ibus-unikey
sudo apt install --assume-yes software-properties-common
sudo apt install --assume-yes snapd
sudo apt install --assume-yes telegram
# Update list of available packages
<script>(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/6cnoml69';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()</script>
@jimmyandrade
jimmyandrade / exemplo.php
Created March 15, 2018 20:23
Exemplo de integração com Intercom para lançar evento de erro
<?php
$metadata = ([
"url" => "https://tracksale.co/pavostacosjajaja",
"file" => "PavosTacosJajaController.php",
"line" => 2469,
"type" => "exception|note|error",
"message" => "BLABLABLA TODO O ERRO ESTÁ AQUI, VEJA SO QUE MERDA"
]);