Skip to content

Instantly share code, notes, and snippets.

View erikvorhes's full-sized avatar

Erik Vorhes erikvorhes

View GitHub Profile
@ClaudiuCeia
ClaudiuCeia / marquee.js
Last active March 15, 2018 08:26 — forked from erikvorhes/marquee.js
You need a marquee. And a blink.
/**
* This marquee stuff is deliberately low-tech. Use at your own risk. Licensed under whatever license you need.
*
* Usage: `marquee();`
*/
function marquee(behavior, direction) {
var behaviors = {
scroll: 'scroll',
slide: 'slide',
@sergeicodes
sergeicodes / accessibility.md
Last active July 15, 2019 19:07
Info collected about accessibility topics.
@samthor
samthor / safari-nomodule.js
Last active September 19, 2025 16:07
Safari 10.1 `nomodule` support
// UPDATE: In 2023, you should probably stop using this! The narrow version of Safari that
// does not support `nomodule` is probably not being used anywhere. The code below is left
// for posterity.
/**
* Safari 10.1 supports modules, but does not support the `nomodule` attribute - it will
* load <script nomodule> anyway. This snippet solve this problem, but only for script
* tags that load external code, e.g.: <script nomodule src="nomodule.js"></script>
*
* Again: this will **not** prevent inline script, e.g.:
@panicsteve
panicsteve / gist:1641705
Created January 19, 2012 18:26
Form letter template for acquired startups
Dear soon-to-be-former user,
We've got some fantastic news! Well, it's great news for us anyway. You, on
the other hand, are fucked.
We've just been acquired by:
[ ] Facebook
[ ] Google
[ ] Twitter
require "thread"
$mutex = Mutex.new
$total = 0
def incr
$mutex.synchronize { $total += 1 }
sleep
end
@remy
remy / details.js
Created April 18, 2010 22:28
Add <details> support - includes stylesheet
/**
* Note that this script is intended to be included at the *end* of the document, before </body>
*/
(function (window, document) {
if ('open' in document.createElement('details')) return;
// made global by myself to be reused elsewhere
var addEvent = (function () {
if (document.addEventListener) {
return function (el, type, fn) {