Skip to content

Instantly share code, notes, and snippets.

<?php
$countries =
array(
"AF" => "Afghanistan",
"AL" => "Albania",
"DZ" => "Algeria",
"AS" => "American Samoa",
"AD" => "Andorra",
"AO" => "Angola",
@sheedy
sheedy / countries.json
Created October 16, 2013 01:31
JSON List of countries (original from https://gist.github.com/djaiss/2938259 in PHP format)
{
"AF": "Afghanistan",
"AL": "Albania",
"DZ": "Algeria",
"AS": "American Samoa",
"AD": "Andorra",
"AO": "Angola",
"AI": "Anguilla",
"AQ": "Antarctica",
"AG": "Antigua and Barbuda",
/* global module: false, process: false */
module.exports = function (grunt) {
var isDev = grunt.option('dev') || process.env.GRUNT_ISDEV === '1',
singleRun = grunt.option('single-run') !== false,
env = grunt.option('env') || 'code',
screenshotsDir = './screenshots',
staticTargetDir = 'static/target/',
testConfDir = 'common/test/assets/javascripts/conf/';
if (isDev) {
@sheedy
sheedy / Gruntfile-split.js
Created December 30, 2013 17:14
Loading tasks and task options from individual files (http://www.thomasboyt.com/2013/09/01/maintainable-grunt.html) and loading modules as needed
'use strict';
// # Globbing
// for performance reasons we're only matching one level down:
// 'test/spec/{,*/}*.js'
// use this if you want to recursively match all subfolders:
// 'test/spec/**/*.js'
module.exports = function (grunt) {
@sheedy
sheedy / task-server.js
Created December 30, 2013 17:17
Load modules per-task from within the task itself for performance https://github.com/gruntjs/grunt/issues/975
module.exports = function(grunt) {
grunt.registerTask('server', function (target) {
if (target === 'build') {
return grunt.task.run([
'build',
'open',
'connect:build:keepalive'
%vertical-align {
position: relative;
top: 50%;
-webkit-transform: translateY(-50%);
-ms-transform: translateY(-50%);
transform: translateY(-50%);
}
.element p {
@extend %vertical-align;
@sheedy
sheedy / sync-sublime.md
Created January 30, 2014 05:00
sync-sublime.md

If your Dropbox folder is not in the default location, you'll need to change ~/Dropbox to your location.

  1. Close Sublime Text
  2. Open Terminal

First Machine

On your first machine, use the following instructions.

/* Theme Name: Flat Pinboard */
/* Theme URL: http://tackk.com/flat-pinboard */
/* Version: v1.0 */
/* Created by: Dan Klammer */
/* Broswer: Chrome + Stylish Extension */
html {
-webkit-font-smoothing:antialiased;
height:100%;
}
@sheedy
sheedy / SassMeister-input-HTML.html
Created March 10, 2014 14:49
Generated by SassMeister.com.
<div class="button">wireframe button</div>
<div class="button button--cancel">cancel</div>
<div class="button button--primary">
submit <span>now</span>
</div>
<div class="button button--big button--cancel">cancel</div>