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
// Decompiled by Jad v1.5.8c. Copyright 2001 Pavel Kouznetsov. | |
// Jad home page: http://www.geocities.com/kpdus/jad.html | |
// Decompiler options: packimports(3) | |
// Source File Name: culture.java | |
import java.applet.Applet; | |
import java.awt.*; | |
import java.text.DecimalFormat; | |
import java.text.NumberFormat; |
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
# Jogo dos 8 - Busca em extensão | |
# Rafael Polo | |
# 01 Mai 2011 | |
class Jogo8 | |
# lê estado inicial e final de arquivos | |
def initialize() | |
estado_inicial = to_array(File.open("inicio.txt").read) |
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
if($.browser.msie && parseInt($.browser.version)<=9){ | |
$("#inside").hide(); | |
$("#container").append("<p class='warn'>Website melhor visualizado nos browsers <a href='http://windows.microsoft.com/pt-BR/internet-explorer/products/ie/home'>IE9</a>, <a href='http://www.google.com/chrome/'>Chrome</a> e <a href='http://www.getfirefox.net/'>Firefox</a>."); | |
} |
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
http://www.filesonic.com/file/907284011/Palestine_1950-1991.avi |
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
http://www.filesonic.com/file/907284011/Palestine_1950-1991.avi |
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
package traildentes; | |
import processing.core.*; | |
import processing.video.*; | |
import java.util.ArrayList; | |
public class Traildentes extends PApplet { | |
private static final long serialVersionUID = 1L; | |
int rastroSize = 10; |
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 'torrent_info.rb' | |
total_size = 0 | |
total_files = 0 | |
total_torrents = 0 | |
Dir.glob('files/*.torrent') do |f| | |
total_torrents += 1 | |
t = TorrentInfo.new(open(f).read) | |
size = t.size.to_f/1024/1024/1024 # resultado em giga |
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 'open-uri' | |
def html(wiki) | |
open("http://en.wikipedia.org/wiki/#{wiki}", 'User-Agent' => 'bot').read | |
end | |
def links(html) | |
html.scan(/<a href=\"\/wiki\/.+\" title=\"(\w+)\">/)[0].uniq | |
end |
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 previous | |
Arquivo.where('arquivos.ordem < ?', self.ordem).order('ordem ASC').last | |
end | |
def next | |
Arquivo.where('arquivos.ordem > ?', self.ordem).order('ordem ASC').first | |
end |
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 image_tag_size i | |
path = CGI::unescape(i.image.url :medium, false) | |
size = Paperclip::Geometry.from_file("#{Rails.root}/public#{path}").to_s | |
image_tag path, :size=>size | |
end |