Some raw ideas from a Jet neophyte...
In writing my first Jet roles, I find myself wanting constructs like
get_url(url: <>, dest: <>), make_symlink(src: <>, tgt: <>),
expand_tarfile(path: <>, dest: <>).
| R = React.DOM | |
| nations = ['britain', 'ireland', 'norway', 'sweden', 'denmark', 'germany', | |
| 'holland', 'belgium', 'france', 'spain', 'portugal', 'italy', 'switzerland'] | |
| Typeahead = React.createClass | |
| getInitialState : -> {input: ""} | |
| handleChange : -> @setState input: @refs.field.getDOMNode().value | |
| handleClick : (nation)-> @setState input: nation | |
| matches : (input)-> |
| module Kernel | |
| def err_log(*msgs) | |
| base_log(*(msgs.map(&:to_s)), char: '>', color: 'red') | |
| end | |
| def info_log(*msgs) | |
| base_log(*(msgs.map(&:to_s)), char: '*', color: 'blue') | |
| end | |
| def green_log(*msgs) |
| #!/usr/bin/env bash | |
| # This script mounts the encrypted directoy "./.encdata" on the plain-text | |
| # directory "./data". | |
| # It was written for use with `ledger-cli`, in response to a thread on the | |
| # ledger mailing list. | |
| # See https://groups.google.com/forum/#!topic/ledger-cli/7yM9GMhHqyY |
| const vscode = require('vscode'); | |
| const shelljs = require('shelljs'); | |
| // This extension is a hack to explore a possible VsCode way to search | |
| // for a directory name. | |
| // | |
| // In IntelliJ you can search for a directory by ending the search string with '/'. | |
| // In Vim, you can `:call fzf#run({'source': 'fd -t d', 'sink': 'NERDTreeFind'})` | |
| // | |
| // But VsCode doesn't seem to provide an API to open the current |
| const vscode = require('vscode'); | |
| const shelljs = require('shelljs'); | |
| // This extension is a hack to explore a possible VsCode way to search | |
| // for a directory name. | |
| // | |
| // In IntelliJ you can search for a directory by ending the search string with '/'. | |
| // In Vim, you can `:call fzf#run({'source': 'fd -t d', 'sink': 'NERDTreeFind'})` | |
| // | |
| // But VsCode doesn't seem to provide an API to open the current |