Skip to content

Instantly share code, notes, and snippets.

View montchr's full-sized avatar
🎢

chris montgomery montchr

🎢
View GitHub Profile
#!/bin/bash
# works with a file called VERSION in the current directory,
# the contents of which should be a semantic version number
# such as "1.2.3"
# this script will display the current version, automatically
# suggest a "minor" version update, and ask for input to use
# the suggestion, or a newly entered value.
@montchr
montchr / README.md
Created March 11, 2014 02:47
Webdev Resources

Web development on a Mac

Requirements

  • Mac OS X 10.8.4+

Prep

  1. Install the latest version of Xcode 5 (currently 5.0.2) from Downloads for Apple Developers or,
@montchr
montchr / 0_reuse_code.js
Created March 9, 2014 17:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@montchr
montchr / nowplaying-textexpander.applescript
Last active December 3, 2024 11:25
A script for TextExpander that displays info about the currently playing track in iTunes. Borrowed and modified from Andrew Harrison's script: http://andrew.harrison.org/uploads/2008/12/itunes.txt
-- A nice applescript for displaying what's playing in iTunes as follows:
-- Song by Artist on Album
-- 00:00/00:00
-- Original by Andrew Harrison • [email protected] • http://andrew.harrison.org
-- Modified slightly by Chris Montgomery <[email protected]>
-- Some parts from Doug's Applescript for iTunes. see below.
-- First things first, we're going to check if iTunes is running:
@montchr
montchr / gist:6773291
Last active December 24, 2015 08:49
Inline block CSS grid system in PHP loop http://codepad.viper-7.com/MdpMjx
<?php
$list = array("foo", "bar", "baz");
?>
<div class="grid">
<!--
<?php foreach ($list as $item) { ?>
--><span class="grid__item one-third"><?php echo $item; ?></span><!--
<?php } ?>
-->
@montchr
montchr / readme.md
Last active December 21, 2015 11:28
Enqueuing styles for WP child theme

Parent

Line 9 of lib/enqueue-sass.php:

Currently:

wp_register_style( 'esemci-stylesheet', get_template_directory_uri() . '/css/style.css', array(), '', 'all' );