Skip to content

Instantly share code, notes, and snippets.

View kennethormandy's full-sized avatar

Kenneth Ormandy kennethormandy

View GitHub Profile
@tatianamac
tatianamac / tatiana-mac-speaker-rider.md
Last active March 24, 2024 12:22
Tatiana Mac's Speaker Rider

Speaker Rider

by Tatiana Mac

Last updated 14 April 2021

What is a speaker rider?

As speaking comes with immense privilege, I have crafted a speaker rider to set expectations and boundaries around my engagement. I am grateful to all the conference organisers who have brilliantly hosted me. I would love to continue to exercise this privilege to speak at conferences, and use this privilege to make the landscape more accessible and beneficial to tech's most historically excluded and marginalised communities.

Considerations

😫 I provide a lot of explanations for those of you who never had to consider these things. Most thoughtful conferences I've attended check most of these boxes intrinsically, particularly when conference runners are experienced speakers. They get it.

@mattdesl
mattdesl / animated-grid.js
Created July 27, 2018 15:45
animated grid lines
const canvasSketch = require('canvas-sketch');
const { lerp } = require('./util/math');
const settings = {
animate: true,
duration: 3,
dimensions: [ 640, 640 ],
scaleToView: true,
playbackRate: 'throttle',
fps: 24
@bendc
bendc / randomInterval.js
Created March 9, 2017 21:55
rAF-based random interval
const randomInterval = (() => {
const random = (min, max) => Math.random() * (max - min) + min;
return (callback, min, max) => {
const time = {
start: performance.now(),
total: random(min, max)
};
const tick = now => {
if (time.total <= now - time.start) {
time.start = now;
@JayPanoz
JayPanoz / all_iBooks.css
Last active May 26, 2016 10:47
Setting "all : keyword" in iBooks
/* Testing initial and unset in iBooks
All those styles are applied.
Comments in .unset if different value */
/* all : initial */
.initial {
-webkit-animation-delay: 0s;
-webkit-animation-direction: normal;
-webkit-animation-duration: 0s;
@MadeByMike
MadeByMike / highlight-words-in-html.js
Last active February 15, 2018 05:24
Highlighting a sentence in HTML without destroying the markup around it is exceptionally hard!!!
/*!
* Highlight words in html - v0.0.1 - 2015-04-29
* http://madebymike.com.au
* Copyright (c) 2015 Mike Riethmuller; Licensed MIT
*/
/*
* It turns out that annotating a phrase within HTML is exceptionally hard. I've done it so you don't have to.
* The function accepts a phrase (string), HTML (string), and optionally a classname (string)
* It returns the same HTML with <mark> elements surrounding the phrase
@paulirish
paulirish / bling.js
Last active May 1, 2024 19:56
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;
@sintaxi
sintaxi / surge.js
Last active August 29, 2015 14:18
surge library interface
var surge = require("surge")
var readableStream = surge.createReadableStream("path/to/project")
surge.publish(readableStream, { domain: "foobar.com", email: "brock@sintaxi.com", password: "bigsecret" }, function(errors, deployment){
if (errors) return "invalid arguments. cant deploy."
deployment.on("error", function(err){
console.log("Oops! something went wrong")
})
@lrytz
lrytz / z-automator.png
Last active February 4, 2023 21:20
Shortcut for Syntax Highlighting in Keynote
from fontTools.pens.basePen import BasePen
def pointOnCurve(p1, c1, c2, p2, value):
dx = p1[0]
cx = (c1[0] - dx) * 3.0
bx = (c2[0] - c1[0]) * 3.0 - cx
ax = p2[0] - dx - cx - bx
dy = p1[1]
cy = (c1[1] - dy) * 3.0
@typemytype
typemytype / getCreationModDate.py
Created June 25, 2014 12:02
get file creation and mod date
path = u"path/to/file"
from AppKit import *
fm = NSFileManager.defaultManager()
attr, error = fm.attributesOfItemAtPath_error_(path, None)
print attr[NSFileCreationDate]
print attr[NSFileModificationDate]