Skip to content

Instantly share code, notes, and snippets.

@ryanseddon
ryanseddon / urls.txt
Created July 26, 2022 23:35
All the possible URL combinations for https://emoji.supply/kitchen/
This file has been truncated, but you can view the full file.
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f600/u1f600_u2615.png
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f603/u1f603_u2615.png
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f604/u1f604_u2615.png
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f601/u1f601_u2615.png
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f606/u1f606_u2615.png
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f605/u1f605_u2615.png
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f602/u1f602_u2615.png
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f923/u1f923_u2615.png
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f62d/u1f62d_u2615.png
https://www.gstatic.com/android/keyboard/emojikitchen/20201001/u1f617/u1f617_u2615.png
@ryanseddon
ryanseddon / html5-airplay
Created January 12, 2011 23:01
Add airplay attribute to HTML5 video containers
(function(doc){
if("querySelectorAll" in doc) {
var vids = doc.querySelectorAll("video"),
len = vids.length,
cvid;
while(len--) {
cvid = vids[len];
if("setAttribute" in cvid) {
@ryanseddon
ryanseddon / NanoMCE.html
Created June 24, 2011 05:39
Worlds smallest WYSIWYG with live preview
<!-- Paste it in your address bar -->
data:text/html,<pre onkeyup="(function(d,t){d[t]('iframe')[0].contentDocument.body.innerHTML = d[t]('pre')[0].textContent;})(document,'getElementsByTagName')" style="width:100%;height:48%;white-space:pre-wrap;overflow:auto;" contenteditable></pre><iframe style="width:100%;height:48%">
@ryanseddon
ryanseddon / curried.es5.js
Created November 6, 2013 02:46
ES5 vs ES6 function currying
function curried(fn) {
var args = Array.prototype.slice.call(arguments, 1);
return function() {
return fn.apply(this, args.concat(Array.prototype.slice.call(arguments, 0)));
}
}
const tooltipRef = React.useRef(null);
const { isVisible, getTooltipProps, getTriggerProps } = useTooltip({
tooltipRef
});
// render
<div
{...getTooltipProps({
ref: tooltipRef
})}
<button {...getTriggerProps({ onMouseEnter: e => e.preventDefault() })}>
Trigger
</button>
class Tabs extends React.Component {
render() {
return (
<TabsContainer vertical={true}>
{({
selectedItem,
focusedItem,
getTabProps,
getTabListProps,
getTabPanelProps
const {
selectedItem,
focusedItem,
getTabProps,
getTabListProps,
getTabPanelProps
} = useTabs({ rtl: true });
const {
selectedItem,
focusedItem,
getTabProps,
getTabListProps,
getTabPanelProps
} = useTabs({ vertical: true });
<button {...getTabProps({
item: 'tab 1',
index: 0,
focusRef: React.createRef(null)
})>
tab 1
</button>