Skip to content

Instantly share code, notes, and snippets.

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Clip-path triangle</title>
</head>
<body>
@pritam-patil
pritam-patil / cloudSettings
Last active July 7, 2021 07:47
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-07-07T07:47:49.183Z","extensionVersion":"v3.4.3"}
@pritam-patil
pritam-patil / vscode_shorts.md
Created December 25, 2019 15:13
Another awesome set of shortcuts

VSCode Shortcuts

List of helpful shortcuts for faster coding

If you have any other helpful shortcuts, feel free to add in the comments of this gist :)

New ones to learn/use:

@pritam-patil
pritam-patil / GIF-Screencast-OSX.md
Created September 2, 2019 06:47 — forked from dergachev/GIF-Screencast-OSX.md
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@pritam-patil
pritam-patil / listAllEventListeners.js
Created April 2, 2019 14:31
Lists all event listeners on a page
const listeners = (function listAllEventListeners() {
let elements = [];
const allElements = document.querySelectorAll('*');
const types = [];
for (let ev in window) {
if (/^on/.test(ev)) types[types.length] = ev;
}
for (let i = 0; i < allElements.length; i++) {
const currentElement = allElements[i];