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 June 4, 2024 07:48
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 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;
@joyrexus
joyrexus / README.md
Last active June 19, 2024 09:35 — forked from liamcurry/gist:2597326
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

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