Skip to content

Instantly share code, notes, and snippets.

View renestalder's full-sized avatar

René Stalder renestalder

View GitHub Profile
@renestalder
renestalder / 0_reuse_code.js
Last active August 29, 2015 14:08
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<?php
// Variables used in this script:
// $summary - text title of the event
// $datestart - the starting date (in seconds since unix epoch)
// $dateend - the ending date (in seconds since unix epoch)
// $address - the event's address
// $uri - the URL of the event (add http://)
// $description - text description of the event
// $filename - the name of this file for saving (e.g. my-event-name.ics)
//
function inferInputModel() {
if (window.navigator.msPointerEnabled) {
return 'pointer';
} else if (window.ontouchstart !== undefined) {
return 'touch';
} else {
return 'unknown';
}
}
@import "compass/css3/background-size";
// $sprites: sprite-map("../images/sprite/normal/*.png");
// $sprites-retina: sprite-map("../images/sprite/retina/*.png");
// $sprite-width: 363px;
@mixin sprite-background($name) {
$sprite-url: sprite-url($sprites);
$sprites-retina-url: sprite-url($sprites-retina);
background-image: url(sprite-path($sprites));