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.contrib import admin | |
from .models import Gallery, Image | |
class ImageInline(admin.StackedInline): | |
model = Image | |
extra = 0 | |
fields = ('image',) | |
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> | |
<head> | |
<title>Responsive Ads</title> | |
</head> | |
<body> | |
<div class="728x90"> | |
</div> |
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
frutas = ['maΓ§Γ£', 'pera', 'laranja'] | |
for fruta in frutas: | |
print(fruta) |
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
.galeria{position:relative;margin:10px 0px}.galeria .pika-stage{width:625px;min-height:455px;padding-top:133px}.galeria .pika-stage .pika-aniwrap{position:absolute;top:10px;left:10px;z-index:9;display:none}.galeria .caption{position:relative}.galeria .pika-thumbs li{width:189px;height:133px;cursor:pointer;float:left;list-style:none;overflow:hidden;margin:0px 1px}.galeria .pika-thumbs .clip{position:relative;width:189px;height:133px;overflow:hidden}.galeria .pika-stage{text-align:center}.galeria .pika-stage .caption{font:normal 12px Arial,sans-serif;font-style:italic;padding:10px 5px;color:#000;text-align:left;background:#dbd8ed;display:block;clear:both;margin-top:-3px}.galeria .pika-stage .caption a{color:black}.galeria .pika-imgnav a{position:absolute;top:0px;text-indent:-5000px;height:61px;width:42px;display:block;z-index:11;cursor:pointer}.galeria .pika-imgnav .next,.galeria .pika-imgnav .previous{top:154px}.galeria .pika-imgnav .previous{display:none}.galeria .pika-imgnav .next{display:none}.galeria .pika |
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
import com.gargoylesoftware.htmlunit.BrowserVersion; | |
import com.gargoylesoftware.htmlunit.WebClient; | |
import com.gargoylesoftware.htmlunit.html.*; | |
import java.io.IOException; | |
public class CorreiosCep { | |
private static final String URL = "http://www.buscacep.correios.com.br/"; | |
private static final String CEP = "64011010"; |
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
%% Copyright (C) 2011 Claudemiro Feitosa <[email protected]> | |
%% | |
%% Fortemente baseado no abnt-UFPR.sty | |
%% | |
\NeedsTeXFormat{LaTeX2e} | |
\usepackage[utf8]{inputenc} | |
%% http://www.terminally-incoherent.com/blog/2006/12/17/latex-numbered-subsubsections/ |
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
#!/usr/bin/env ruby | |
# | |
# Passenger management script | |
# By James Smith http://loopj.com | |
# Based heavily on a similar script by Jon Bettcher | |
# | |
# Check memory usage of all paseenger child process and kill if grows | |
# too large. | |
# |
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
require 'ramaze/gestalt' | |
module Ramaze | |
module Helper | |
# Helper for pagination and pagination-navigation. | |
# | |
# See {Ramaze::Helper::Paginate#paginate} for more information. | |
# | |
module Paginate | |
include Traited |
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
build_package_stdout_patch() { | |
wget 'http://bugs.ruby-lang.org/attachments/download/1931/stdout-rouge-fix.patch' | |
patch -p1 < stdout-rouge-fix.patch | |
} | |
require_gcc | |
install_package "ruby-1.8.7-p358" "http://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p358.tar.gz" stdout_patch standard | |
install_package "rubygems-1.6.2" "http://production.cf.rubygems.org/rubygems/rubygems-1.6.2.tgz" ruby | |