Skip to content

Instantly share code, notes, and snippets.

@i-like-robots
i-like-robots / SassMeister-input.scss
Last active January 4, 2016 16:09
Generated by SassMeister.com.
// ----
// libsass (v3.3.2)
// ----
// Full range of available breakpoints
$global-breakpoints: (
'XS': 300px,
'S': 490px,
'M': 740px,
'L': 980px,
@i-like-robots
i-like-robots / icons.md
Last active December 18, 2015 15:39
Comparison of SVG and font based icons

Webfont vs. SVG icons

Comparison

Font icons

Positives Negatives
Great browser support _
Easy for end users to implement _
@i-like-robots
i-like-robots / SassMeister-input.scss
Created December 1, 2015 12:29
Generated by SassMeister.com.
// ----
// Sass (v3.4.14)
// Compass (v1.0.3)
// ----
////
/// @group o-ft-icons
/// @link http://registry.origami.ft.com/components/o-ft-icons
////
@i-like-robots
i-like-robots / animation_frame_queue.js
Last active August 29, 2015 14:14
Animation frame queue utility
/*
# Animation Frame Queue
A utility to ensure all queued requestAnimationFrame callbacks
are cancelled to prevent nasty surprises.
## The problem:
@i-like-robots
i-like-robots / SassMeister-input.scss
Last active January 31, 2022 22:19
Managing responsive typography with Sass
// ----
// libsass (v3.5.0.beta.2)
// ----
// config/_breakpoints.scss
$breakpoints: (
small: 480px,
medium: 720px,
large: 960px,
x-large: 1280px
@i-like-robots
i-like-robots / SassMeister-input.scss
Last active November 27, 2017 13:31
Generated by SassMeister.com.
// ----
// libsass (v3.5.0.beta.2)
// ----
// Neutral color palette
$palette-neutral--xdark: #2C3643;
$palette-neutral--dark: #3B444F;
$palette-neutral--base: #67747C;
$palette-neutral--light: #99A9B3;
$palette-neutral--xlight: #DBE6EC;
@i-like-robots
i-like-robots / data.js
Last active July 16, 2020 14:10
TfL API network data
exports.lines = {
"bakerloo": "Bakerloo",
"central": "Central",
"circle": "Circle",
"district": "District",
"hammersmith-city": "Hammersmith & City",
"jubilee": "Jubilee",
"metropolitan": "Metropolitan",
"northern": "Northern",
"piccadilly": "Piccadilly",
@i-like-robots
i-like-robots / my-component.js
Created April 29, 2014 13:39
React unit test component with Jasmine
/** @jsx React.DOM */
var MyComponent = React.createClass({
render: function () {
return (
<p ref="p">{this.props.children}</p>
);
}
});
@i-like-robots
i-like-robots / handlebars-loop.js
Created June 18, 2013 08:43
Handlebars helper to repeat a chunk of encapsulated output an arbitrary number of times.
// {{#loop 12}}
// <output>
// {{/loop}}
handlebars.registerHelper('loop', function(count, options) {
var out = "";
while (count--) {
out+= options.fn();
}
@i-like-robots
i-like-robots / _config.scss
Last active December 18, 2015 01:48
SCSS skeleton grids with support for fluid or fixed units.
$layout-max-width: 64em;
$layout-break-point: 48em;
$layout-min-width: 20em;
$layout-column-count: 12;
$layout-column-width: 60;
$layout-gutter-width: 20;