Skip to content

Instantly share code, notes, and snippets.

View inlikealion's full-sized avatar

Matt Bainton inlikealion

View GitHub Profile

Keybase proof

I hereby claim:

  • I am inlikealion on github.
  • I am inlikealion (https://keybase.io/inlikealion) on keybase.
  • I have a public key whose fingerprint is E539 7DEB 5B3F 9181 CDE0 6463 86AF 0738 4294 0BB9

To claim this, I am signing this object:

@inlikealion
inlikealion / html5-snippet.html
Created July 24, 2014 21:20
Bare html5 snippet
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
</head>
<body>
@inlikealion
inlikealion / tabs.js
Last active August 29, 2015 14:16
Simple tabs.
$(document).ready(
/**
* Tabs
*/
$('.js-tabs').each(function(){
// For each set of tabs, we want to keep track of
// which tab is active and it's associated content
var $active, $content, $links = $(this).find('a');
// If the location.hash matches one of the links, use that as the active tab.
@inlikealion
inlikealion / _mixin-svgcolor.scss
Last active August 29, 2015 14:25
Mixin for colorizing svg and giving states.
// From:
// https://twitter.com/thisisroyal/status/624570142945579008
// http://jsfiddle.net/thisisroyal/mokv8hc2/
@mixin svgcolor($color: #000) {
[fill]:not([fill="none"]) {
fill: $color;
transition: fill 150ms ease-in-out;
}
@inlikealion
inlikealion / ui-dev-setup
Last active September 22, 2015 14:34
Setup for Torque UI Developers
# UI Development Setup
## Applications
+ [iTerm](https://iterm2.com/)
- Zsh instead of Bash via [Oh My Zsh](http://ohmyz.sh/)
+ [Atom](https://atom.io/)
## Environments
@inlikealion
inlikealion / Drupal 6 Body Classes
Created January 21, 2011 23:13
Body classes for almost everything in Drupal 6
<?php
function phptemplate_preprocess_page(&$vars, $hook) {
// Classes for body element. Allows advanced theming based on context
// (home page, node of certain type, etc.)
$body_classes = array($vars['body_classes']);
if (!$vars['is_front']) {
// Add unique classes for each page and website section
$path = drupal_get_path_alias($_GET['q']);
list($section, ) = explode('/', $path, 2);
@inlikealion
inlikealion / Drupal: System Customization - Company Info
Created February 21, 2011 21:09
Module creates simple custom form page for extended company contact info + social media, etc…
<?php
// $Id:
function system_custom_menu() {
$items = array();
$items['admin/settings/site-additional-info'] = array(
'title' => t('Additional Site Information'),
@inlikealion
inlikealion / CSS Setup Comments
Created March 30, 2011 15:25
Basic setup of main css file, with example sectioning, etc…
/* _________________________________________________
For:
Original Author:
URL:
Thanks to: Ethan Marcotte, HTML5BoilorPlate.com & 320andUp
____________________________________________________
`GLOSSARY`:
@inlikealion
inlikealion / hg-merge-branch.txt
Created April 26, 2011 22:21
Checklist of commands for Mercurial merge branches & push to remote repo
hg in/pull // Check for updates from other devs
hg update <branch-name-to-merge-to> // Likely 'default' branch
hg merge <my-dev-branch> // Where changes are coming from
hg commit
hg in/pull
hg push
hg update <my-dev-branch> // Go back to my branch to keep working
@inlikealion
inlikealion / windowshosts.txt
Created June 13, 2011 15:23
Windows hosts file location
c:\windows\system32\drivers\etc\hosts