This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media (prefers-color-scheme: dark) { | |
scrollbar, scrollbar *, scrollcorner { | |
-moz-appearance: none !important; | |
--scrollbar-width: 10px; | |
--scrollbar-height: var(--scrollbar-width); | |
} | |
scrollbar, scrollcorner { | |
background: #282828 !important; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Climbs up the DOM up to but not including the limit element (or | |
* `body` if not specified) looking for and returning the first | |
* element that passes the predicate, or `null` if nothing does. | |
* | |
* @param {HTMLElement} start | |
* @param {function} predicate | |
* @param {HTMLElement} limit | |
* @returns {*} | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function (options) { | |
return new Promise(function (resolve, reject) { | |
var req = new XMLHttpRequest(); | |
req.open(options.method || 'GET', options.url, true); | |
// Set request headers if provided. | |
Object.keys(options.headers || {}).forEach(function (key) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Sub AutoDeclineInvitation(Item As Outlook.MailItem) | |
Dim cAppt As AppointmentItem | |
Dim oResponse | |
Set cAppt = GetCurrentItem.GetAssociatedAppointment(False) | |
If cAppt.ReminderSet Then | |
Set oResponse = cAppt.Respond(olMeetingDeclined, True) | |
Else | |
GetCurrentItem.GetAssociatedAppointment(True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author alteredq / http://alteredqualia.com/ | |
*/ | |
define(function(require, exports, module){ | |
var THREE = require('three'); | |
function RenderPass ( scene, camera, overrideMaterial, clearColor, clearAlpha ) { |
States. The final frontier. These are the voyages of an enterprising developer. Her eternal mission: to explore strange new techniques, to seek out better ways to engineer for mental models and new design patterns. To boldly go where a few awesome devs have gone before.
So you’ve found our poignant guide to SCXML and surely you’re wondering “Why should I want to go out of my way to use formal state machines?” or something like that. Hopefully this introduction addresses that kind of question.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html> | |
<head> | |
<style> | |
body { | |
/* put the URL of the image you want to use in this rule: */ | |
background-image: url('http://imgs.xkcd.com/comics/loop.png'); | |
/* put the color you want to use for the negative space in this rule: */ | |
background-color: #ccc; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var touchViewport = new Hammer(document.documentElement); | |
touchViewport.on('swipeleft', navRight); | |
touchViewport.on('swiperight', navLeft); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var moment = require('moment'); | |
module.exports = function(/* orbit, [Date, time String], [format String], [etc] */){ | |
// Takes an orbit definition of the kind used in GEOF stellar-objects and | |
// remaining arguments as moment arguments, returning heliocentric | |
// rectangular coordinates in α's unit (probably AU). | |
// TODO: Does not yet take into account changes in orbit over time. | |
// TODO: Converts between degrees and radians too often, I think. |
NewerOlder