Skip to content

Instantly share code, notes, and snippets.

@thomasthesecond
thomasthesecond / dotted-border.svg
Last active December 17, 2015 21:19
Create a dotted border with SVG.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@thomasthesecond
thomasthesecond / SASS-fixed-to-fluid.scss
Created May 27, 2013 16:55
Useful SASS functions to convert pixel values to percentages or ems.
@function ems($target, $context)
{
@return $target / $context * 1em
}
@function percent($target, $context)
{
@return $target / $context * 100%
}
@mixin breakpoint($breakpoint)
{
@if $breakpoint == tablet {
@media (max-width: $breakpoint-tablet) { @content; }
}
@else if $breakpoint == mobile {
@media (max-width: $breakpoint-mobile) { @content; }
}
}
@thomasthesecond
thomasthesecond / arrival-departure-datepicker.js
Last active December 14, 2015 16:49
jQuery datepicker with arrival/departure fields.
// Arrival Field
$('input.datepicker.arrival').datepicker(
{
dateFormat: 'mm/dd/yy',
minDate: 0
});
// Departure Field
$('input.datepicker.departure').datepicker(
{