By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
prompt_test = True | |
@click.group() | |
@click.option('--mode', is_flag=True) | |
def cli(mode): | |
prompt_test = True if mode else False | |
print "prompt_test value in cli: %s" % prompt_test | |
@cli.command() | |
@click.option('--name', |
# This works as expected: | |
# Prompting can be controlled with prompt_test | |
prompt_test = True # Works with correctly with both True or False | |
@click.command() | |
@click.option('--name', prompt=prompt_test, required=True) | |
def cli(name): | |
print "test %s" % name | |
if __name__ == '__main__': |
def title_case(title, options = {}) | |
return title if title.empty? | |
head, *tail = title.split(' ') | |
head.capitalize! << ' ' << tail.collect { |x| options[:minors] && options[:minors].downcase.split(' ').include?(x) ? x : x.capitalize! }.join(' ') | |
end | |
===================== |