Skip to content

Instantly share code, notes, and snippets.

@dagadbm
dagadbm / mj.txt
Last active February 20, 2026 20:01
mj
javascript:(()=>{const CFG={compareSelector:'[id="123"]',intervalSeconds:5};const AC=window.AudioContext||window.webkitAudioContext;let ac=null;if(AC){try{ac=new AC();ac.resume().catch(()=>{});}catch(_){ac=null;}}const valOf=el=>(el?.value??el?.textContent??"").trim();const beep=()=>{try{if(!ac)return;if(ac.state==="suspended")ac.resume().catch(()=>{});const o=ac.createOscillator();const g=ac.createGain();o.frequency.value=880;g.gain.value=5;o.connect(g);g.connect(ac.destination);o.start();setTimeout(()=>{try{o.stop();}catch(_){}},220);}catch(_){}};const sameOrigin=w=>{try{void w.document;return true;}catch(_){return false;}};const chainToTopSameOrigin=()=>{let w=window;let cur=window;while(true){let p=null;try{p=cur.parent;}catch(_){break;}if(!p||p===cur)break;if(!sameOrigin(p))break;w=p;cur=p;}return w;};const scanSameOriginFrames=(root)=>{const out=[];const seen=new Set();const add=w=>{if(!w||seen.has(w))return;seen.add(w);out.push(w);let d=null;try{d=w.document;}catch(_){return;}const ifs=d.querySelectorA
{
"basics": {
"name": "David Maia",
"label": "Senior Software Engineer",
"image": "https://raw.githubusercontent.com/dagadbm/cv/master/picture.jpeg",
"email": "david.barbosa.maia@gmail.com",
"phone": "+351 913 387 023",
"summary": "I love learning and programming using VIM key bindings.\nI am passionate about technology, functional programming, design patterns, best practices, software development and design.\nApart from that I also love going to the gym, jumping rope, listening to classical music and playing piano. I am also a classically trained pianist and I have been playing piano since I was 16 years old.\n\n\"There is nothing noble in being superior to your fellow man;\ntrue nobility is being superior to your former self.\"\nErnest Hemingway\n___\n\nMost used languages:\nJavaScript\n\nProgramming Languages:\nJavaScript, Java, C#, Python\n\nFrontend: \n=> HTML5/CSS3 (SCSS, bootstra/bulma), JS (ES6), $, _, react, redux(redux-saga), recompose, styled-components, vue (vueX) \n=> Te
@dagadbm
dagadbm / remove_git_submodules
Last active March 6, 2019 07:29
Git Submodules (how to remove)
Remove the submodule entry from .git/config
`git submodule deinit -f path/to/submodule`
Remove the submodule directory from the superproject's .git/modules directory
`rm -rf .git/modules/path/to/submodule`
Remove the entry in .gitmodules and remove the submodule directory located at path/to/submodule