This file contains hidden or 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
| {% macro form_maker(form, title) -%} | |
| <div class='content_block_title'>{{ _("Form") }} {{title}}</div> | |
| <div class="form "> | |
| <form method="post" class="contact {% if form_class %}{{form_class}}{% endif %}" action="{{form.action}}" enctype="multipart/form-data" > | |
| {% for field in form %} | |
| {% if field.type == 'CSRFTokenField' %} | |
| {{field}} | |
| {% elif field.type == 'FieldList' %} | |
| <h3>{{field.label}}</h3> | |
| {{field}} |
This file contains hidden or 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
| !------------------------------------------------------------------------------- | |
| ! Xft settings | |
| !------------------------------------------------------------------------------- | |
| Xft.dpi: 96 | |
| Xft.antialias: false | |
| Xft.rgba: rgb | |
| Xft.hinting: true | |
| Xft.hintstyle: hintslight | |
This file contains hidden or 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
| for file in *.less; do | |
| lessc "$files" "${files%.less}.css" | |
| done |
This file contains hidden or 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
| setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,ir |
This file contains hidden or 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
| #!/bin/bash | |
| xrandr --output VGA1 --left-of HDMI1 | |
| setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,ir | |
| feh --bg-fill ~/Pictures/background/wallpaper-base.jpg |
This file contains hidden or 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 optparse import OptionParser | |
| import time | |
| import sys | |
| def show_lcd(text): | |
| print text | |
| if __name__ == '__main__': | |
| parser = OptionParser() |
This file contains hidden or 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
| [uwsgi] | |
| socket = /tmp/app.sock | |
| chdir = /opt/www/app/ | |
| processes = 8 | |
| master = true | |
| touch-reload = /opt/www/app/reload | |
| plugins = python | |
| module = deploy | |
| callable = application | |
| #virtualenv = /opt/www/app/env |
This file contains hidden or 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 optparse import OptionParser | |
| import time | |
| def fn1(): | |
| print 'test' | |
| if __name__ == '__main__': | |
| parser = OptionParser() |
This file contains hidden or 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
| # Filename: /etc/zsh/zshrc | |
| # Purpose: config file for zsh (z shell) | |
| # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org> | |
| # Bug-Reports: see http://grml.org/bugs/ | |
| # License: This file is licensed under the GPL v2. | |
| ################################################################################ | |
| # This file is sourced only for interactive shells. It | |
| # should contain commands to set up aliases, functions, | |
| # options, key bindings, etc. | |
| # |
This file contains hidden or 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
| router = {}; | |
| router.hashchange = { | |
| "requstables": [], | |
| 'add': function (regex, requstable) { | |
| router.hashchange.requstables.push({'regex': regex, 'requstable': requstable}); | |
| }, | |
| 'handler': function () { | |
| for (var i = 0; i < router.hashchange.requstables.length; i++) { | |
| var r = router.hashchange.requstables[i]; |
OlderNewer