This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This playbook has been removed as it is now very outdated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Blueprint | |
import converters # module containing the custom converter classes | |
def add_app_url_map_converter(self, func, name=None): | |
""" | |
Register a custom URL map converters, available application wide. | |
:param name: the optional name of the filter, otherwise the function name | |
will be used. | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
# This script prints a bell character when a command finishes | |
# if it has been running for longer than $zbell_duration seconds. | |
# If there are programs that you know run long that you don't | |
# want to bell after, then add them to $zbell_ignore. | |
# | |
# This script uses only zsh builtins so its fast, there's no needless | |
# forking, and its only dependency is zsh and its standard modules | |
# |
This is a bash script that will automatically turn your wifi off if you connect your computer to an ethernet connection and turn wifi back on when you unplug your ethernet cable/adapter. If you decide to turn wifi on for whatever reason, it will remember that choice. This was improvised from this mac hint to work with Yosemite, and without hard-coding the adapter names. It's supposed to support growl, but I didn't check that part. I did, however, add OSX notification center support. Feel free to fork and fix any issues you encounter.
Most the credit for these changes go to Dave Holland.
- Mac OSX 10+
- Administrator privileges
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// model backed form validation for ember.js using the ember-cli-simple-validation addon | |
// jsbin to demo the user experience http://emberjs.jsbin.com/fovolu/2/ | |
// 1) add the input and validation-error-field component to your template | |
{{input value=model.name placeholder="name"}} | |
{{#validation-error-field field="name" submitted=submitted model=model validation=nameValidation}}invalid name{{/validation-error-field}} | |
<button {{action "save"}}>Save</button> | |
// 2) add the mixin to your controller and setup the validation rules (optional 2nd argument supports regex/function) |