Skip to content

Instantly share code, notes, and snippets.

View DougSisk's full-sized avatar

Doug Sisk DougSisk

View GitHub Profile
const moment = require('moment-timezone')
const Themeparks = require('themeparks')
const MagicKingdom = new Themeparks.Parks.WaltDisneyWorldMagicKingdom()
const statusChannel = MagicKingdom.FacilityStatusChannel
const startLiveMonitor = () => {
statusChannel.on('updated', ride => {
const currentTime = moment().format('LTS')
MagicKingdom.FacilityChannel.GetFacilityName(ride.id).then(rideName => {
@DougSisk
DougSisk / jquery.dropdown.js
Created January 8, 2015 15:28
jQuery Dropdown Plugin
/*
<div class="select">
<div class="selected"></div>
<select>
<option>Option</option>
</select>
</div>
*/
(function($) {
@DougSisk
DougSisk / gist:8977964
Created February 13, 2014 16:08
Saas placeholder mixin
@mixin placeholder {
&::-webkit-input-placeholder {
@content;
}
&:-moz-placeholder { /* Firefox 18- */
@content;
}
&::-moz-placeholder { /* Firefox 19+ */
@content;
}
@DougSisk
DougSisk / gist:8736171
Created January 31, 2014 16:55
Saas retina background image mixin
@mixin retina-background($image, $type, $width, $height, $position:0 0, $repeat:no-repeat) {
background-image: url("#{$image}.#{$type}");
background-position: $position;
background-repeat: $repeat;
@media (min--moz-device-pixel-ratio: 1.3),
(-o-min-device-pixel-ratio: 2.6/2),
(-webkit-min-device-pixel-ratio: 1.3),
(min-device-pixel-ratio: 1.3),
(min-resolution: 1.3dppx) {