Skip to content

Instantly share code, notes, and snippets.

View neefrehman's full-sized avatar
♻️
.reduce() reuse recycle

Neef Rehman neefrehman

♻️
.reduce() reuse recycle
View GitHub Profile
@neefrehman
neefrehman / wipe.css
Last active November 9, 2018 12:09
Wipe image in when hovering on a different element, with only HTML/CSS - as seen on https://neef.co
img.bg {
position: fixed;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 100vh;
height: 100vh;
z-index: -2;
clip-path: circle(0% at center);
transition: clip-path 0.5s cubic-bezier(0.65, 0.05, 0.36, 1);
@thevangelist
thevangelist / convert-to-kebab-case.js
Created September 21, 2016 10:11
JS: convert to kebab-case
const convertToKebabCase = (string) => {
return string.replace(/\s+/g, '-').toLowerCase();
}
@wosephjeber
wosephjeber / ngrok-installation.md
Last active November 14, 2024 09:06
Installing ngrok on Mac

Installing ngrok on OSX

For Homebrew v2.6.x and below:

brew cask install ngrok

For Homebrew v2.7.x and above:

@paulirish
paulirish / bling.js
Last active February 18, 2025 14:08
bling dot js
/* bling.js */
window.$ = document.querySelector.bind(document);
window.$$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); };
NodeList.prototype.__proto__ = Array.prototype;
NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); };
@joyrexus
joyrexus / README.md
Last active March 22, 2025 12:57 — forked from liamcurry/gist:2597326
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})