Skip to content

Instantly share code, notes, and snippets.

John Manoogian III jm3

Block or report user

Report or block jm3

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jm3
jm3 / hugo-giphy-shortcode.html
Last active Jun 14, 2019
Hugo embed for Giphy (responsive)
View hugo-giphy-shortcode.html
<!-- https://todayilearned.jm3.net/learnings/hugo-shortcode-for-giphy-embeds/ -->
<div style="width:100%;height:0;padding-bottom:40%;position:relative;">
<iframe src="https://giphy.com/embed/{{ (index .Params 0) }}"
width="100%" height="100%" style="position:absolute"
frameBorder="0" allowFullScreen></iframe></div>
@jm3
jm3 / airtable-json-to-posts.rb
Created Jun 14, 2019
Airtable → Ruby → Hugo markdown converter
View airtable-json-to-posts.rb
#!/usr/bin/env ruby
require 'erb'
require 'json'
require 'pry'
# setup:
# bundle install
# extract records from Airtable:
# curl "https://api.airtable.com/v0/URBASE/til?maxRecords=100&view=learnings" -H "Authorization: Bearer YOUR_TOKEN" > til.json
View .stylelintrc.json
{
"extends": [
"stylelint-order",
"stylelint-config-rational-order/plugin"
],
"plugins": [
"stylelint-color-format",
"stylelint-config-rational-order/plugin",
"stylelint-no-unsupported-browser-features"
View folderify.rb
#! /usr/bin/env ruby
#
# Moves all the files found by the glob into a new directory of the same name
# as the file (less its extension). Useful when you have a bunch of examples
# in one language and you need to introduce multiple sibling examples to sit
# alongside the file
#
# Example usage:
# $ ruby folderify.rb "smells/**/*.js"
@jm3
jm3 / README.md
Last active Apr 29, 2019
Cognitive Bias Codex
View README.md
@jm3
jm3 / favicon-size-creator.sh
Created Jul 12, 2016
create favicon .ICO's at all the common sizes from a source image
View favicon-size-creator.sh
convert source.png -define icon:auto-resize=64,48,32,16 favicon.ico
View My back is a weapon I use to destroy my opponents.md

juniorplenty: training the back [ franco.jpg ]

My back is a weapon I use to destroy my opponents.

I place my thumbs in the small of my back and begin to spread my lats. It doesn't all come on at once. First I flex them a few times and then begin to let them extend their widest. Each time the audience and the judges think that is all, I flex harder and they come out farther. And just when everyone is gasping with surprise that a human being could

@jm3
jm3 / choropleth-README.md
Last active Sep 11, 2015 — forked from mbostock/.block
Choropleth
View choropleth-README.md

This choropleth encodes unemployment rates from 2008 with a quantize scale ranging from 0 to 15%. A threshold scale is a useful alternative for coloring arbitrary ranges.

@jm3
jm3 / uninstall-foreign-fonts.sh
Created Aug 27, 2015
uninstall the 162 non-English fonts that Apple installs that clog up Photoshop's font menu.
View uninstall-foreign-fonts.sh
#!/bin/sh
# jm3.net
# uninstall the 162 non-English fonts that Apple installs that clog up Photoshop's font menu.
# ========================
## RUN AT YOUR OWN RISK ##
# ========================
# if this formats your hard drive or deletes your fonts or changes the sex
# of your dog, I'm super sorry, but there's nothing I can do.
View get-repos.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'octokit'
client = Octokit::Client.new(:login => ENV['OCTOKIT_USER'], :password => ENV['OCTOKIT_PASS'])
repo_urls = client.organization_repositories('140proof', :per_page => 100).map(&:git_url)
urls = {:active => [], :retired => []}
You can’t perform that action at this time.