warmcommunity.space Code of Conduct
Please read this before joining our Slack chat:
Music and sound design attract a wide audience. Let's all be friendly and warm. :-)
# System: | |
# OSX 10.7.4 | |
# Qt 4.8.0 | |
# PySide 1.1.1 | |
from enaml.stdlib.radio_group import RadioGroup | |
DEFAULT_TRIGGER_METHOD_NAME = 'request_refresh_task' | |
from functools import partial | |
def tracecalls(cls): | |
def my__getattribute__(self, name): | |
attr = super(cls, self).__getattribute__(name) | |
return attr if not callable(attr) else partial(whencalled, attr) | |
cls.__getattribute__ = my__getattribute__ |
# This could be called a "function factory". | |
# It is a function that creates, then returns, new functions. | |
def generic_site_fn(url_template): | |
# Define an inner function ... | |
def generic_site_submit(url): | |
generic_site_url = url_template.format(url=url) | |
requests.get(generic_site_url) | |
# ... that is returned by the factory function. | |
return generic_site_submit |
ufw: | |
pkg.installed | |
enable ufw: | |
cmd.run: | |
- name: ufw enable | |
- require: | |
- pkg: ufw | |
enable ssh: |
{% if 'servmon' in grains['roles'] %} | |
f2bpath: /var/log/httpd/error_log | |
{% elif 'webserver' in grains['roles'] %} | |
f2bpath: /home/*/log/error_log | |
{% endif %} |
class Plantuml < SimpleDelegator | |
end | |
module IRuby | |
module Display | |
module Registry | |
type { Plantuml } | |
format 'image/svg+xml' do |obj| | |
Tempfile.open('uml') do |uml| | |
uml.write(obj) |
Please read this before joining our Slack chat:
Music and sound design attract a wide audience. Let's all be friendly and warm. :-)