Skip to content

Instantly share code, notes, and snippets.

@lastmaj
lastmaj / favicon-interceptor.js
Created October 3, 2019 21:17 — forked from kentbrew/favicon-interceptor.js
How to short-circuit those annoying favicon requests in node.js
// early experiments with node had mysterious double requests
// turned out these were for the stoopid favicon
// here's how to short-circuit those requests
// and stop seeing 404 errors in your client console
var http = require('http');
http.createServer(function (q, r) {
// control for favicon
@lastmaj
lastmaj / gradient.json
Last active November 26, 2018 21:14 — forked from wking-io/gradient.json
API for Codepen | Gradients.
{
"data": [
{
"name": "warmFlame",
"direction": "to right",
"colors": ["#ff9a9e", "#fad0c4"],
"positions": ["0%", "100%"]
},
{
"name": "youngPassion",