Skip to content

Instantly share code, notes, and snippets.

@rmateu
rmateu / OWC_5typos-clippings
Created December 16, 2024 01:59
Obsidian Web Clipper formatting for 5typos Snippet Clipping
<! --- {{meta:property:og:title}} {{meta:property:og:author}} {{schema:author[0].name}} {{"article author or page owner"}} -->
{{author}}, on [{{domain}}]({{url}}):
{{content|blockquote}}
@rmateu
rmateu / omniobsidian.css
Created November 2, 2024 16:55
Omnivore Obsidian Article Template
<! -- {{{title}}} -->
{{{author}}}, on [{{{siteName}}}]({{{originalUrl}}}):
{{#highlights.length}}
{{#highlights}}
> {{{text}}}
{{#note}}
{{{note}}}
{{/note}}
@rmateu
rmateu / contenteditable.html
Created October 19, 2022 16:42
data:text/html, <html contenteditable> with some extra styling to make it easier to use. Just copy/paste the code in your browser and type away. Or make it a bookmarklet.
data:text/html;charset=utf-8,<title>TextEditor</title><style>body{background:#fbfbfb;color:#333;margin:0%50auto;width:100%}textarea{background:#fbfbfb;border:0;color:#333;font-family:Roboto;font-size:1rem;height:98%;line-height:1.4;margin:0%20auto;outline:0;padding:2rem;width:100%}button{background-color:#fbfbfb;border:1px%20#ccc%20solid;color:#999;cursor:pointer;float:right;margin:10px%200;padding:5px%2010px}@media%20(max-width:100%){body{width:100%;padding:0}textarea{padding:10px}button{float:none}}</style><body><button%20onclick="sM();%20return%20false">Draft%20this</button><textarea%20contenteditable%20id=TE%20spellcheck=false%20placeholder=Notes...%20autofocus></textarea><script>function%20sM(){var%20a="drafts://x-callback-url/create?tag=BrowserNotes&text="+escape(document.getElementById("TE").value);window.location.href=a};</script>
@rmateu
rmateu / markplace_guia.md
Created March 19, 2021 23:13
Guía para venta en Facebook Marketplace

Acuerdo de Intercambio

Equipos

  • Todos los equipos a la venta fueron de uso personal, y me esfuerzo para tener una descripción lo más precisa de:
    • Estado del mismo.
    • Accesorios incluidos.

Precio

  • Mi metodología de precios es buscar un equipo comparable en EEUU en la página Swappa.
  • Por lo cual considero que los precios son competitivos y no estoy abierto a negociación.
javascript:a=1;/** Copy & paste your event name and key over there. --> **/ d={event:' my_event_name ',key:' abcdefghijklmnopqrstuvwxyz '}; /** --> Please don't touch this --> **/ u='https://maker.ifttt.com/trigger/'+d.event.trim()+'/with/key/'+d.key.trim()+'?t='+(new Date()).getTime();window.open(u).close();/** Go to the very beginning **/
@rmateu
rmateu / BearMD.js
Last active December 14, 2018 18:12
Bookmarklet to copy link to Bear.app
// Reference // Reference ulysses://x-callback-url/new-sheet?text=document.title sheet&index=2
// Bookmarklet Maker: https://caiorss.github.io/bookmarklet-maker/
var url = document.URL;
title = document.title;
text = window.getSelection().toString();
mdLink = '[' + title + ']' + '(' + url + ')';
@rmateu
rmateu / ASIN_Scrapper.md
Created February 6, 2018 21:59
Herramienta para extraer ASINs por página de Amazon

ASIN Scrapper

Install (Chrome)

  • In Chrome, click Bookmarks->Bookmark Manager.
  • You should see a new tab with the bookmarks and folders listed.
  • Select the “Bookmarks Tab” folder on the left.
  • Click the “Organize” link, then “Add Page” in the drop down.
  • You should see two input fields. Type the name of the bookmark you would like (i.e., ASIN Scrapper) in the first field. Paste the javascript code below into the second field.
@rmateu
rmateu / Amazon_MD.js
Last active September 10, 2018 11:06 — forked from mokkunp/bookmarklet.md
Amazon Books Title, author and image bookmarklet.
var title = document.getElementById("ebooksProductTitle");
if (title == null) {
title = document.getElementById("productTitle")
};
title = title.innerText;
var imageUrl = document.getElementById("ebooksImgBlkFront");
if (imageUrl == null) {
imageUrl = document.getElementById("imgBlkFront")
};
imageUrl = imageUrl.src;
prompt("Title:" , ebooksProductTitle.outerText)
@rmateu
rmateu / mdProCore.js
Last active June 28, 2017 01:41
Core Markdown JS code based/ripped off on Pinboard Particular bookmarklet
(function() {
/******************* begin configuration options ***************************/
// Change `read` to true to invoke the promptless, self-closing
// version of the bookmarklet.
var readlater = false;
var appUrl = null;
// when set to true selected text is quoted using markdown quote syntax
var quoteSelectionAsMarkdown = true;