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
# Filename: /etc/zsh/zshrc | |
# Purpose: config file for zsh (z shell) | |
# Authors: grml-team (grml.org), (c) Michael Prokop <[email protected]> | |
# 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 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]; |
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 functools import wraps | |
def title(title=None): | |
def decorator(f): | |
@wraps(f) | |
def decorated_function(*args, **kwargs): | |
g.page_title = title | |
return f(*args, **kwargs) | |
return decorated_function |
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
$("body td").each(function(){ | |
$(this).html( | |
$(this).html().replace(/\d/g, function(v) { | |
return String.fromCharCode(v.charCodeAt(0) + 0x06C0); | |
}) | |
); | |
}) |
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
import os | |
x = os.listdir('.') | |
result = [] | |
for item in x: | |
if item.startswith("a"): | |
result.append(item) | |
print result |
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
. | |
├── deploy.py | |
├── project | |
│ ├── application.py | |
│ ├── apps | |
│ │ ├── articles | |
│ │ │ ├── forms.py | |
│ │ │ ├── __init__.py | |
│ │ │ ├── models.py | |
│ │ │ └── views.py |
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 functools import wraps | |
from flask import current_app, render_template, g, jsonify, redirect | |
def title(title=None): | |
def decorator(f): | |
@wraps(f) | |
def decorated_function(*args, **kwargs): | |
g.page_title = title | |
return f(*args, **kwargs) |
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 file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout somewhen, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see http://i3wm.org/docs/userguide.html for a complete reference! |
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
{% 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 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 | |
OlderNewer