Skip to content

Instantly share code, notes, and snippets.

@fouad
fouad / cloudflare.json
Created October 12, 2015 06:42
Purge CloudFlare cache on deploy
View cloudflare.json
{
"email": "me@email.com",
"zone": "CLOUDFLARE_ZONE",
"token": "CLOUDFLARE_TOKEN"
}
@PurpleBooth
PurpleBooth / README-Template.md
Last active March 30, 2023 21:49
A template to make good README.md
View README-Template.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

@branneman
branneman / better-nodejs-require-paths.md
Last active March 27, 2023 09:17
Better local require() paths for Node.js
View better-nodejs-require-paths.md

Better local require() paths for Node.js

Problem

When the directory structure of your Node.js application (not library!) has some depth, you end up with a lot of annoying relative paths in your require calls like:

const Article = require('../../../../app/models/article');

Those suck for maintenance and they're ugly.

Possible solutions

View adams-heroku-values.md

Make it real

Ideas are cheap. Make a prototype, sketch a CLI session, draw a wireframe. Discuss around concrete examples, not hand-waving abstractions. Don't say you did something, provide a URL that proves it.

Ship it

Nothing is real until it's being used by a real user. This doesn't mean you make a prototype in the morning and blog about it in the evening. It means you find one person you believe your product will help and try to get them to use it.

Do it with style

@nebjak
nebjak / serbia_zip_codes.json
Last active February 22, 2021 11:04
List of Serbia zip codes with cities in form of JSON array
View serbia_zip_codes.json
[
{ "city" : "Beograd", "_id" : 11000 },
{ "city" : "Beograd Vozdovac", "_id" : 11010 },
{ "city" : "Beograd Čukarica", "_id" : 11030 },
{ "city" : "Beograd Zvezdara", "_id" : 11050 },
{ "city" : "Beograd Palilula", "_id" : 11060 },
{ "city" : "Novi Beograd", "_id" : 11070 },
{ "city" : "Beograd Zemun", "_id" : 11080 },
{ "city" : "Beograd Rakovica", "_id" : 11090 },
{ "city" : "Kaluđerica", "_id" : 11130 },