Skip to content

Instantly share code, notes, and snippets.

View iambriansreed's full-sized avatar
🏠
Working from my office at home

Brian Reed iambriansreed

🏠
Working from my office at home
View GitHub Profile
@iambriansreed
iambriansreed / command.js
Last active May 29, 2017 06:48 — forked from BacktickIO/command.js
WhatFont
(function(){var d=document,s=d.createElement('scr'+'ipt'),b=d.body,l=d.location;s.setAttribute('src','https://chengyinliu.com/wf.js?o='+encodeURIComponent(l.href)+'&t='+(new Date().getTime()));b.appendChild(s)})();
@iambriansreed
iambriansreed / README.md
Last active June 10, 2017 03:05 — forked from JoelBesada/README.md
Backtick Example Command

This is an example command for Backtick. A Backtick command consists of some executable JavaScript and a bit of metadata in JSON.

Here are the required steps to create a command:

  1. Update This readme with a brief explanation of what your command does or delete this.

  2. Create a new Gist with a command.js and command.json file, or simply fork this one.

  3. Write your JavaScript in command.js. This will be injected into and executed on the page the user is currently on when they run it.

/*
* Collapsible JSON Formatter - Formatter and colorer of raw JSON code
*
* jQuery Json Formatter plugin v0.1.3
*
* Usage
* -----
*
* $('#target').jsonFormat('#source'); // or
* $('#target').jsonFormat('#source', {options override defaults}); // see jf.config