Skip to content

Instantly share code, notes, and snippets.

View sturobson's full-sized avatar
:atom:
coding things

Stuart Robson sturobson

:atom:
coding things
View GitHub Profile
// touch event skullduggery
jQuery.event.special.touchclick = {
setup: function (data, namespaces) {
var elem = this, $elem = jQuery(elem);
var ua = navigator.userAgent.toLowerCase();
var isAndroid = ua.indexOf("android") > -1;
if (window.Touch || isAndroid) {
$ echo '@media screen {@media (min-width: 200px) {a: b}}' | scss
@media screen and (min-width: 200px) {
a: b; }
@sturobson
sturobson / style.scss
Created October 25, 2012 19:38
A CodePen by Stuart Robson.
@import "compass";
/* sizes in human readable format. */
/* --- whole --- */
%one-whole { width:100%; }
/* --- half --- */
/*
* @description: /
*
* @author: / Stuart Robson
* @version: / 0.1
* @date: / dd/mm/yyyy
*
*
* @example: /
*
@sturobson
sturobson / user preferences
Last active March 31, 2021 11:36
My current sublime text 2 user preferences
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_indent": true,
"auto_match_enabled": true,
"bold_folder_labels": true,
"caret_style": "wide",
"color_scheme": "Packages/Color Scheme - Default/Blackboard.tmTheme",
"detect_slow_plugins": false,
"draw_minimap_border": true,
@sturobson
sturobson / codepen
Created February 11, 2013 11:38
codepen styles
// Set-up page
/* apply a natural box layout model to all elements */
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* reset all the things as this is for trying stuff */
* {
margin: 0 auto;
@sturobson
sturobson / contract
Last active December 13, 2015 20:39
My current contract, taken and edited from Andy Clarkes 'contract killer'
Revised date: 17/02/2013
Between me, Stuart Robson (always twisted)
and you [customer name]
## Summary:
I’ll always do my best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. I’ve no desire to trick you into signing something that you might later regret. What I do want is what’s best for both parties, now and in the future.
So in short;
@sturobson
sturobson / gist:5237974
Created March 25, 2013 15:32
Alfred workflow for creating a new todo in Wunderlist how do I run this in the background so I don't lose focus to Wunderlist (if that makes sense)? Essentially running the script in the bacground.
on alfred_script(q)
set the clipboard to q
tell application "Wunderlist" to activate
tell application "System Events"
keystroke "n" using {Command down} --Command-N
end tell
// Configuration
$rtl: true;
// Implementation
@function _($left, $right) {
@if $rtl {
@return $right;
} @else {
@return $left;
}
// Note: This file is dependent on Sass and Compass.
// Sass = http://sass-lang.com
// Compass = http://compass-style.org
@import "compass/css3"
// `Form Element Reset.
//----------------------------------------------------------------------------------------------------
input[type="search"]::-webkit-search-decoration