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
| input{ height:25px; line-height:25px; } |
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 django.conf import settings | |
| from django.contrib import admin | |
| from django.utils.safestring import mark_safe | |
| from django.utils.text import capfirst | |
| site = admin.site | |
| def applist(request): | |
| app_dict = {} | |
| user = request.user |
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
| def response_mimetype(request): | |
| tridentEngine = 'Trident' in request.META['HTTP_USER_AGENT'] or 'MSIE' in request.META['HTTP_USER_AGENT'] | |
| if tridentEngine: | |
| return 'text/html' | |
| else: | |
| return 'application/json' |
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
| # coding: utf-8 | |
| import os | |
| from fabric.api import run, env, local | |
| # local | |
| env.local_root = os.path.abspath( os.path.dirname(__file__) ) | |
| # remote | |
| env.hosts = [ | |
| '[email protected]', |
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
| _fab() | |
| { | |
| local cur | |
| COMPREPLY=() | |
| # Variable to hold the current word | |
| cur="${COMP_WORDS[COMP_CWORD]}" | |
| # Build a list of the available tasks using the command 'fab -l' | |
| local tags=$(fab -l 2>/dev/null | grep "^ " | awk '{print $1;}') |
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
| # folders | |
| app/media/uploads | |
| static/site/css | |
| .sass-cache | |
| CACHE | |
| .DS_Store | |
| .svn | |
| # extensions | |
| *.pyc |
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
| $(function() { | |
| // Released under MIT license: http://www.opensource.org/licenses/mit-license.php | |
| if(!Modernizr.input.placeholder) { | |
| $('[placeholder]').focus(function() { | |
| var input = $(this); | |
| if (input.val() == input.attr('placeholder')) { | |
| input.val(''); | |
| input.removeClass('placeholder'); | |
| } | |
| }).blur(function() { |
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
| <!DOCTYPE HTML> | |
| <html lang="pt-br"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>App</title> | |
| <link rel="stylesheet" href="main.css"> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script> | |
| <script src="main.js"></script> | |
| </head> | |
| <body> |
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
| $(function(){ | |
| var image = $('.background'); | |
| function resize(){ | |
| resizeBackground(image, 640, 480); | |
| } | |
| $(window).resize(resize); | |
| }); |
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
| var ie = (function(){ | |
| var undef, v = 3, div = document.createElement('div'); | |
| while ( | |
| div.innerHTML = '<!--[if gt IE '+(++v)+']><i></i><![endif]-->', | |
| div.getElementsByTagName('i')[0] | |
| ); | |
| return v > 4 ? v : undef; | |
| }()); | |
| var msie = typeof ie !== "undefined" ? true : false; |