Skip to content

Instantly share code, notes, and snippets.

@julianrichen
julianrichen / Bullseye.bookmarklet
Created January 31, 2017 21:59 — forked from ttscoff/Bullseye.bookmarklet
A bookmarklet for grabbing just a piece of a web page and converting it to Markdown using heckyesmarkdown.com.
javascript:(function(){var p=document.createElement("p");p.innerHTML="<strong>Loading&hellip;</strong>";p.id="loadingp";p.style.padding="20px";p.style.background="#fff";p.style.left="20px";p.style.top=0;p.style.position="fixed";p.style.zIndex="9999999";p.style.opacity=".85";document.body.appendChild(p);document.body.appendChild(document.createElement("script")).src="https://gist.github.com/ttscoff/6109434/raw/Bullseye.js?x="+(Math.random());})();
@julianrichen
julianrichen / timeAgo.php
Created September 2, 2015 02:09
Take a Date, Time or DateTime and turns it into a human friendly time ago format.
<?php
/*
* -------------------------------------------------------
* timeAgo
* -------------------------------------------------------
* @Version: 1.0.0
* @Author: Julian
* @Link: http://firedartstudios.com/
* @GitHub: https://github.com/julianrichen/
* @License: The MIT License (MIT)