Skip to content

Instantly share code, notes, and snippets.

View derpycoder's full-sized avatar
🚧
Working on DerpyTools

Abhijit Kar ツ derpycoder

🚧
Working on DerpyTools
View GitHub Profile
@derpycoder
derpycoder / domain-registrar.csv
Last active January 30, 2023 18:45
Domain Registrar Comparison
Registrar Registration Renewal Transfer Multiyear Cost * Included
Porkbun $10.87 $10.87 $10.87 3 years: $32.61 - 5 years: $54.35 dns • email forwarding • ssl • whois privacy • dejigamaflipper
GoDaddy $20.17 $20.17 $20.17 3 years: $60.51 - 5 years: $100.85 dns • whois privacy
Google Domains $12.00 $12.00 $12.00 3 years: $36.00 - 5 years: $60.00 dns • email forwarding • whois privacy
Domain.com $14 $21.99 n/a 3 years: $58.97 - 5 years: $102.95 dns • email forwarding
Name.com $14.99 $16.99 $16.99 3 years: $48.97 - 5 years: $82.95 dns
Namecheap $13.16 $12.96 $17.16 3 years: $47.28 - 5 years: $81.60 dns • email forwarding • whois privacy
101domain $16.17 $19.17 $15.17 3 years: $54.51 - 5 years: $92.85 dns
Hover $16.17 $16.17 $16.17 3 years: $48.51 - 5 years: $80.85 dns • whois privacy
Gandi.net $16.39 $16.39 $16.39 3 years: $49.17 - 5 years: $81.95 dns • email account • email forwarding • ssl • whois privacy
@derpycoder
derpycoder / Taskfile.gif.yml
Last active January 27, 2023 17:22
Collection of Tasks to Crop, Resize & Compress Images
---
version: "3"
tasks:
convert:
dir: "{{.USER_WORKING_DIR}}"
desc: Convert Animated PNGs to Gifs
summary: |
task gif:convert
cmds:
@derpycoder
derpycoder / cookie-consent.js
Last active January 16, 2023 18:11
Cookie Consent Snippet
@derpycoder
derpycoder / index.html
Created January 16, 2023 18:10
All the configuration for iframe manager.
<div
data-service="youtube"
data-id="id"
data-title="title"
data-params="start=10"
data-ratio="2:1"
data-iframe-loading="lazy"
data-autoscale
></div>
@derpycoder
derpycoder / index.html
Created January 16, 2023 18:10
Iframe Manager Config to Rick Roll by hiding the thumbnail.
<div
data-service="youtube"
data-id="dQw4w9WgXcQ"
data-thumbnail=""
data-title="Totally not a Rick Roll"
data-iframe-loading="lazy"
></div>
@derpycoder
derpycoder / cookie-settings.html
Created January 16, 2023 18:08
Cookie Setting Button to Invoke Cookie Consent Banner
@derpycoder
derpycoder / pop-up.js
Last active September 30, 2022 05:57
Opens a Pop Up & Closes it when it matches a route URL!
const POP_UP_URL = "/"
const TARGET_URL = window.location.origin
const TARGET_URL_REGEX = new RegExp(TARGET_URL)
const POP_UP_WINDOW = open(POP_UP_URL, "Pop Up Window", `scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no,width=512,height=512`);
const onPopUpClose = () => {
console.log("Pop Up Closed")
}
// Watch if Pop Up closed, repeatedly, as onclose callback doesn't work for pop ups!
@derpycoder
derpycoder / precompute-spring-css.js
Last active September 24, 2021 23:09
CSS Spring Animation Precompute
/**
* Taken From:
* Article: https://medium.com/@dtinth/spring-animation-in-css-2039de6e1a03
* By: Thai Pangsakulyanont
*/
function spring(t) {
return -0.5 * (2.71828 ** (-6 * t)) * (
-2 * (2.71828 ** (6 * t)) + Math.sin(12 * t) + 2 * Math.cos(12 * t));
}
@derpycoder
derpycoder / blueprint.svg
Last active March 18, 2020 10:37
CSS Pattern Background & Pan Using Mouse
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@derpycoder
derpycoder / access-deep-props.js
Last active March 4, 2020 13:51
Accessing Deep Properties from Objects
var obj = {
x: {
p: [
{
q: [
"Foo Bar"
]
}
]
}