Skip to content

Instantly share code, notes, and snippets.

View rowe-morehouse's full-sized avatar
👋
… hi!

Rowe Morehouse rowe-morehouse

👋
… hi!
View GitHub Profile
@zwily
zwily / sortable_table.js
Last active August 29, 2015 14:03
simple sortable table react component
/** @jsx React.DOM */
var React = require('react'),
types = React.PropTypes,
_ = require('underscore');
module.exports = React.createClass({
propTypes: {
columns: types.arrayOf(
types.shape({
@budparr
budparr / jekyll-amazon-convert-isbn-to-asin.js
Last active April 12, 2016 05:50
Convert a Jekyll site's front matter from a 13 digit ISBN, to a 10 digit ASIN and create a direct link to the book's page on Amazon.
<script type="text/javascript">
function ISBN13toISBN10(isbn13) {var start = isbn13.substring(3, 12);var sum = 0;var mul = 10;var i;for(i = 0; i < 9; i++) {sum = sum + (mul * parseInt(start[i]));mul -= 1;}var checkDig = 11 - (sum % 11);if (checkDig == 10) {checkDig = "X";} else if (checkDig == 11) {checkDig = "0";}return start + checkDig;}document.getElementById("isbn10_{{ isbn }}").innerHTML='<a href="http://www.amazon.com/dp/' + ISBN13toISBN10("{{ isbn }}") +'" title="Amazon" target="_blank" >Amazon</a>';
</script>
@colintoh
colintoh / table.css
Created October 27, 2014 05:42
Table CSS
table { display: table }
tr { display: table-row }
thead { display: table-header-group }
tbody { display: table-row-group }
tfoot { display: table-footer-group }
col { display: table-column }
colgroup { display: table-column-group }
td, th { display: table-cell }
caption { display: table-caption }
@benjamine
benjamine / screen-record.sh
Last active March 27, 2018 01:06
record screen (with webcam overlay)
#!/bin/sh
# brew install ffmpeg
ffmpeg -thread_queue_size 50 \
-f avfoundation -framerate 30 -i "1" \
-thread_queue_size 50 -f avfoundation -framerate 30 -video_size 640x480 -i "0" \
-c:v libx264 -crf 18 -preset ultrafast \
-filter_complex 'overlay=main_w-overlay_w-10:main_h-overlay_h-10' -r 30 screen-capture.mkv
@davidhund
davidhund / pragmatic-touch-icons.md
Last active September 4, 2020 15:42
Pragmatic Touch Icons

NOTE I'm trying to find the most optimal fav/touch icon setup for my use-cases. Nothing new here. Read Mathias Bynens' articles on re-shortcut-icon and touch icons, a FAQ or a Cheat Sheet for all the details.

I'd like to hear how you approach this: @valuedstandards or comment on this gist.

The issue

You have to include a boatload of link elements pointing to many different images to provide (mobile) devices with a 'favicon' or 'touch icon':

![Touch Icon Links](https://o.twimg.com/2/proxy.jpg?t=HBj6AWh0dHBzOi8vcGhvdG9zLTYuZHJvcGJveC5jb20vdC8yL0FBRGFGY1VRN1dfSExnT3cwR1VhUmtaUWRFcWhxSDVGRjNMdXFfbHRJWG1GNFEvMTIvMjI3OTE2L3BuZy8xMDI0eDc2OC8yL18vMC80L1NjcmVlbnNob3QlMjAyMDE1LTA0LTE0JTIwMTYuNTYuMjYucG5nL0NNejBEU0FCSUFJZ0F5Z0JLQUkvNGR1eDZnMzZmYnlzYWI3

@metaskills
metaskills / gist:6414713
Created September 2, 2013 16:30
Jekyll tasks/post to help create a new post.
#!/usr/bin/env bash
if [ -z "$1" ]; then
echo "Usage: provide a title argument."
exit -1
else
title="$@"
fi
d=$(date +"%Y-%m-%d")
// Based on [Eric Meyer's reset 2.0](http://meyerweb.com/eric/tools/css/reset/index.html)
// Global reset rules.
// For more specific resets, use the reset mixins provided below
@mixin global-reset {
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
@jakejarvis
jakejarvis / config.toml
Created October 31, 2019 01:02
hugo netlify _redirects _headers files
# add redirects/headers
[outputs]
home = ["HTML", "RSS", "REDIRECTS", "HEADERS"]
# remove .{ext} from text/netlify
[mediaTypes."text/netlify"]
suffixes = [""]
delimiter = ""
@CivBase
CivBase / index.html
Created March 12, 2021 04:46
Make Your Photo 16x9 (plus other aspect ratios)
// Original code from einaregilsson:
// https://github.com/einaregilsson/photo16x9/tree/6ae29823e8bc57e15627795ce9c056197d8eb98f
<!DOCTYPE html>
<html>
<head>
<title>Make Your Photo 16x9</title>
<meta charset="utf8">
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="apple-mobile-web-app-title" content='Make Your Photo 16x9' />
@danielnjoo
danielnjoo / apminterviewprep.md
Last active March 13, 2022 14:55
PM Interview Prep

Broad outline of things used in preparation, potentially helpful to others.

The Interview

Expected Areas of Expertise

  • Product Design
  • Product Strategy
  • Analytical Skills
  • Technical Skills

General Tips/Process

  • Explain