Skip to content

Instantly share code, notes, and snippets.

@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;
@rmateu
rmateu / product.md
Created May 26, 2017 20:03
Testing Product

This product is unique. It’s amazing. It’s one of a kind. It actually doesn’t exist. You have found a product we use to test our systems. Yes, you can buy it. But you won’t received anything other than the gratitud of the ghost in the shell and, an evil eye from the person who has to check why our weekly reports of orders and packages don’t match anymore.

In conclusion:

  • This is real product page.
  • This isn’t a real product.
  • Please don’t buy it
  • But do buy anything else from the site.
@rmateu
rmateu / rm_quix.txt
Last active October 18, 2019 17:24
Quix Command File for rmateu
> TITLE: rm_quix.txt
> MORE: https://quixapp.com
> UPDATED: 2018-07-06 / w27
> SYNTAX FILE: https://gist.githubusercontent.com/rmateu/37af5055e821fdd1f655e8440e4a010e/raw/rm_quix.txt
#kill-defaults
@ Quix
edit https://gist.github.com/rmateu/37af5055e821fdd1f655e8440e4a010e/edit Edit my Quix Commands
host http://quixapp.com/host/%d/%s Host info for the current domain.
myip http://quixapp.com/ip/ Your current IP & homepage.