Skip to content

Instantly share code, notes, and snippets.

@vancluever
vancluever / tfr-provider-downloads-ranked.sh
Last active June 3, 2021 20:39
Get Terraform Registry providers, sort by most downloads (use --community to get community providers only)
#!/usr/bin/env bash
getproviders() {
for (( PAGE=1; ; PAGE++ )); do
if [ "$1" == "--community" ]; then
DATA="$(curl -fs "https://registry.terraform.io/v2/providers?filter[tier]=community&page[number]=$PAGE")"
else
DATA="$(curl -fs "https://registry.terraform.io/v2/providers?page[number]=$PAGE")"
fi
@derekr
derekr / medium-article.md
Last active October 4, 2016 15:18
What it's like to build a web project in 2016

Hey I want to build a site; fetch some data and renders it in to a filterable list. Could I use jQuery for that?

Yeah sounds simple enough. You could even ditch jQuery and use native DOM APIs. They've come a long way in the past few years.

Chill.

@lukekarrys
lukekarrys / readme.md
Last active December 21, 2017 10:38
Deploy a subdirectory in your NodeJS Git project to GitHub pages.

Deploy a subdirectory in your NodeJS Git project to GitHub pages.

  1. Make sure node build outputs some static files to _built.
  2. npm run deploy.

This eventually became this blog post and this module

@monokrome
monokrome / bread_crumbs.coffee
Created July 24, 2013 22:03
Bread crumbs in Marionette.
# This is a bread crumb. It stores the URL, view
# state, whatever.
class BreadCrumb extends Model
class BreadCrumbs extends Collection
model: BreadCrumb
# Views for displaying it
class BreadCrumbView extends Marionette.ItemView
template: 'breadcrum/templates/crumb'
@ragingwind
ragingwind / Backend Architectures Keywords and References.md
Last active April 17, 2024 10:51
Backend Architectures Keywords and References
@dypsilon
dypsilon / frontendDevlopmentBookmarks.md
Last active May 7, 2024 01:27
A badass list of frontend development resources I collected over time.

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

@jescalan
jescalan / instructions.md
Last active December 13, 2015 19:29
I often run php apps alongside ruby, node, etc. MAMP drives me crazy because it's slow, doesn't work with pow, and only uses it's own mysql install, when i already have a system mysql install for everything else. This is how to get php apps running without MAMP on OSX Lion.

Running PHP Apps Without MAMP on OSX Lion

  1. Create a ~/Sites folder if you don’t already have one
  2. Enable PHP by uncommenting the php5_module line in /etc/apache2/httpd.conf
  3. Find the line that read User _www and change the _www to your username (whoami)
  4. Find the DirectoryIndex line and change it to DirectoryIndex index.php index.html index.htm
  5. Change the DocumentRoot line to DocumentRoot "/Users/yourusername/Sites/"
  6. Change the <Directory line to <Directory "/Users/yourusername/Sites/">
  7. Run sudo apachectl restart
  8. Restart your computer (yes, this is necessary)
@mxriverlynn
mxriverlynn / marionette.gauntlet.js
Last active September 25, 2018 18:13
Marionette.Gauntlet - an event based "state machine" of sorts, used for building wizard, breadcrumb and tab UI and navigation systems
// Marionette.Gauntlet v0.0.0
// --------------------------
//
// Build wizard-style workflows with an event-emitting state machine
// Requires Backbone.Picky (http://github.com/derickbailey/backbone.picky)
//
// Copyright (C) 2012 Muted Solutions, LLC.
// Distributed under MIT license
Marionette.Gauntlet = (function(Backbone, Picky, Marionette, $, _){
@ndarville
ndarville / business-models.md
Last active January 13, 2024 17:27
Business models based on the compiled list at http://news.ycombinator.com/item?id=4924647. I find the link very hard to browse, so I made a simple version in Markdown instead.

Business Models

Advertising

Models Examples
Display ads Yahoo!
Search ads Google