Put this shell script somewhere in your path and run it by feeding it value/label pairs like this:
$ bars
10 one
20 two
30 three
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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.
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.
This simple script will take a picture of a whiteboard and use parts of the ImageMagick library with sane defaults to clean it up tremendously.
The script is here:
#!/bin/bash
convert "$1" -morphology Convolve DoG:15,100,0 -negate -normalize -blur 0x1 -channel RBG -level 60%,91%,0.1 "$2"
$('#hax').off('.hax').remove(); | |
var $videoSettings = $('<input id="hax" type="range" min="200" max="1000"/>'); | |
$videoSettings.appendTo($('#mysettings .content')); | |
var inputChange = function() { | |
var windowSize = $(this).val(); | |
$('.video').css('min-width', windowSize); | |
$('.video').css('min-height', windowSize * (3/4)); | |
$('#playerzone.largevideo object, #playerzone.largevideo .OT_root, .OT_widget-container').attr('style', 'width: ' + windowSize + 'px !important; height: ' + windowSize * (3/4) + 'px !important;'); | |
$('.playername').css('max-width', '100%'); |