Skip to content

Instantly share code, notes, and snippets.

@jackmcdade
jackmcdade / kitchen_sink.yaml
Last active September 5, 2021 23:36
Statamic Fieldset Kitchen Sink
title: Fieldset Kitchen Sink
fields:
status:
type: status
_template:
type: templates
@orderedlist
orderedlist / labels.scss
Created July 9, 2012 18:42
Simple Label Colors with SCSS
$start-color:#2B73A2;
$number: 12;
@for $i from 1 through $number {
.label-#{$i} {
color:adjust_hue($start-color, ($i - 1) * (360 / $number));
}
}
@panuta
panuta / gist:1852087
Last active April 8, 2020 16:46
How to setup Django/Postgresql on OS X Mountain Lion using Homebrew

Command Line Tools for Xcode

Command line tools comes bundle with Xcode prior to 4.3 version. After 4.3, you need to install a separated command line tools yourself.

First, go to this url and login using Apple Developer account (Free to register)

https://developer.apple.com/downloads/index.action
@thejefflarson
thejefflarson / scrape.js
Created December 20, 2011 18:53
For andy
[].slice.call(document.getElementsByTagName('a')).forEach(function(e){
var x = new XMLHttpRequest();
x.open("HEAD", e.href, true);
x.onreadystatechange = function(){
if(x.status === 200) e.style.setProperty('background-color', 'papayaWhip');
};
x.send();
});
@danott
danott / pi.post_to_tumblr.php
Created June 14, 2010 01:32
Post to Tumblr from Expression Engine using the Tumblr API
<?php
/* Daniel Ott
* 13 June 2010
* A plugin that you can use to send stuff to Tumblr from Expression Engine
* using Tumblr's API
*
* Very minimal for right now. You could expand it to send categories using
* the API's "tags" option, send different types of posts, etc.
*