Skip to content

Instantly share code, notes, and snippets.

billti / favicon.js
Last active Aug 12, 2020
Create inline GIF favicons
View favicon.js
/* Bill Ticehurst, 2020
Emits a minimal 16 x 16 gif suitable for use as an inline favicon
GIF spec at for the structure
Favicon formats supported at
For a transparent GIF (color_table = false, depend_on_background = true) this emits:
<link rel="icon" href="data:image/gif;base64,R0lGODlhEAAQAAAAACwAAAAAAQABAAACASgAOw==">
erikig / common-domain-prefix-suffix-list.tsv
Last active Feb 10, 2021
Top 5000 Most Common Domain Prefix/Suffix List - Courtesy LeanDomainSearch -
View common-domain-prefix-suffix-list.tsv
Rank Type Prefix/Suffix
1. Prefix my+
2. Suffix +online
3. Prefix the+
4. Suffix +web
5. Suffix +media
6. Prefix web+
7. Suffix +world
8. Suffix +net
9. Prefix go+
CoreyRab / customAtrributes.swift
Last active Apr 28, 2020
Save custom attributes in RevenueCaat
View customAtrributes.swift
// 2.
Purchases.shared.setAttributes(["favorite_workout" : "cycling"])
tomhicks / plink-plonk.js
Last active Feb 15, 2021
Listen to your web pages
View plink-plonk.js
dominictarr /
Created Nov 26, 2018
statement on event-stream compromise

Hey everyone - this is not just a one off thing, there are likely to be many other modules in your dependency trees that are now a burden to their authors. I didn't create this code for altruistic motivations, I created it for fun. I was learning, and learning is fun. I gave it away because it was easy to do so, and because sharing helps learning too. I think most of the small modules on npm were created for reasons like this. However, that was a long time ago. I've since moved on from this module and moved on from that thing too and in the process of moving on from that as well. I've written way better modules than this, the internet just hasn't fully caught up.


otherwise why would he hand over a popular package to a stranger?

If it's not fun anymore, you get literally nothing from maintaining a popular package.

One time, I was working as a dishwasher in a restu

ouelletv / socialSharePopups.js
Created Aug 1, 2018 — forked from josephabrahams/socialSharePopups.js
Facebook & Twitter Share Popup Windows
View socialSharePopups.js
export default function() {
el.addEventListener('click', function(e){
var href =;
e.preventDefault();, "Facebook", "toolbar=no,location=0,status=no,menubar=no,scrollbars=yes,width=600,height=400,resizable=1");
pauliusef / gist:c7bcc96481fb3113cc78ae1246901e6f
Created Aug 15, 2017
Select every second line in Sublime
View gist:c7bcc96481fb3113cc78ae1246901e6f
Search for : (.*(\n|$)){2}
alt+R - to toggle regular expression search
alt+ENTER - to select all results

Additional notes

Original blog post -

How do I rebuild the image from scratch?

This will take several hours on a Raspberry Pi Zero - but less time on a Pi 2 or Pi 3. You can edit the Dockerfile for a Pi 2/3 and change RUN make to RUN make -j 4 to take advantage of the quad-core processor.

$ git clone
WadeShuler /
Last active Feb 28, 2021
Mac Bash script to kill Adobe Create Cloud and other processes that Adobe forces on us.
echo "\n\n--- Killing Stupid Adobe Auto Load Crap ---\n\n"
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
launchctl unload -w /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist
echo "\n\n--- Done! ---\n\n"
View gist:96a1f554c3f88eef2f9d0024fc42940f
var cameraZ = camera.position.z;
var planeZ = 5;
var distance = cameraZ - planeZ;
var aspect = viewWidth / viewHeight;
var vFov = camera.fov * Math.PI / 180;
var planeHeightAtDistance = 2 * Math.tan(vFov / 2) * distance;
var planeWidthAtDistance = planeHeightAtDistance * aspect;
// or