The spec has moved to a repo: https://github.com/defunctzombie/package-browser-field-spec to facilitate collaboration.
It can be hard to know where to start. Here are a few places.
- Nicole Fenton's Tiny Content Framework
- Tiffany Jones Brown on the discovery process: Making Things Hard
- Whitney Hess on user interviews: My Best Advice for Conducting User Interviews
- Kevin M. Hoffman in A List Apart: Kick Ass Kickoff Meetings
- Corey Vilhauer in A List Apart: Audiences, Outcomes, and Determining User Needs
- Kristina Halvorson in the Brain Traffic blog: The Content Inventory is Your Friend
| function gitupdate(){ | |
| repo=~/src | |
| old_wd=`pwd` | |
| gitroots=`for path in $repo/*/.git; do echo $path; done | sed 's/\/\.git//g'` | |
| for gitroot in $gitroots; do | |
| echo -e "\033[1;30m\nUpdating $gitroot:\033[0m" | |
| cd $gitroot | |
| branch=`git branch | sed -n 's/^\* //p'` |
A lot of times you are developing a web application on your own laptop or home computer and would like to demo it to the public. Most of those times you are behind a router/firewall and you don't have a public IP address. Instead of configuring routers (often not possible), this solution gives you a public URL that's reverse tunnelled via ssh to your laptop.
Because of the relaxation of the sshd setup, it's best used on a dedicated virtual machine just for this (an Amazon micro instance for example).
The question: how can we use ES6 modules in Node.js, where modules-as-functions is very common? That is, given a future in which V8 supports ES6 modules:
- How can authors of function-modules convert to ES6
exportsyntax, without breaking consumers that dorequire("function-module")()? - How can consumers of function-modules use ES6
importsyntax, while not demanding that the module author rewrites his code to ES6export?
@wycats showed me a solution. It involves hooking into the loader API to do some rewriting, and using a distinguished name for the single export.
This is me eating crow for lots of false statements I've made all over Twitter today. Here it goes.
| #!/bin/bash | |
| # git-cleanup-repo | |
| # | |
| # Author: Rob Miller <rob@bigfish.co.uk> | |
| # Adapted from the original by Yorick Sijsling | |
| git checkout master &> /dev/null | |
| # Make sure we're working with the most up-to-date version of master. | |
| git fetch |
| // Font Smoothie copyright 2013,14,15 Torben Haase <http://pixelsvsbytes.com> | |
| // Source-URL <https://gist.github.com/letorbi/5177771> | |
| // | |
| // Font Smoothie is free software: you can redistribute it and/or modify it under | |
| // the terms of the GNU Lesser General Public License as published by the Free | |
| // Software Foundation, either version 3 of the License, or (at your option) any | |
| // later version. | |
| // | |
| // Font Smoothie is distributed in the hope that it will be useful, but WITHOUT | |
| // ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS |
I use tmux splits (panes). Inside one of these panes there's a Vim process, and it has its own splits (windows).
In Vim I have key bindings C-h/j/k/l set to switch windows in the given direction. (Vim default mappings for windows switching are the same, but prefixed with C-W.) I'd like to use the same keystrokes for switching tmux panes.
An extra goal that I've solved with a dirty hack is to toggle between last active panes with C-\.
Here's how it should work:
| #!/usr/bin/env python | |
| """ | |
| Downloads and cleans up a CSV file from a Google Trends query. | |
| Usage: | |
| trends.py google.username@gmail.com google.password /path/to/filename query1 [query2 ...] | |
| Requires mechanize: | |
| pip install mechanize | |
| """ |
