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
| html { min-height: 100%; } | |
| body { | |
| width: 600px; | |
| margin: auto; | |
| background: #1e1e1e; | |
| background-image: url('textura.png'); | |
| background-image: url('textura.png'), -webkit-gradient(linear, left top, left bottom, from(rgba(100, 100, 100, 0.2)), to(rgba(0, 0, 0, 0.5))); /* Saf4+, Chrome */ | |
| background-image: -webkit-linear-gradient(top, rgba(100, 100, 100, 0.2), rgba(0, 0, 0, 0.5)), url('textura.png'); /* Chrome 10+, Saf5.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
| // PS: Datasets: | |
| // http://dl.dropbox.com/u/3545192/cep.zip | |
| // http://dl.dropbox.com/u/3545192/consultas.txt | |
| /* SCE-183 - Algoritmos e estruturas de dados II | |
| * Professora: Prof.a Dr.a Hosiane M. Bueno | |
| * | |
| * Trabalho 2: ¡rvore-B | |
| * | |
| * Autor: VinÌcius Baggio Fuentes |
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
| ;; I have a sequence and I want to double all the numbers up to a limit. The following works, but looks awful! | |
| ;; (defn double-all [numbers limit] | |
| ;; (for [val numbers :when (< (* 2 val) limit) ] (* 2 val))) | |
| (defn double-all [numbers limit] | |
| (filter #(> limit %) (map #(* 2 %) numbers))) | |
| (double-all (range 20) 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
| ;; The input is: | |
| ;; first line: the number of test cases | |
| ;; next lines are the limits m n such as prime numbers are in [m;n] | |
| ;; Algorithm used: Sieve of Erasthotenes | |
| (use '[clojure.set :only (difference)]) | |
| (defn mark | |
| ([all n limit] | |
| (mark all n n limit)) |
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 AkibaPlataformer(object) { | |
| object.jump = function() { | |
| return "Pula danada"; | |
| } | |
| } | |
| function Akiba(object) { | |
| object.bla = function() { | |
| return "Vai danada"; | |
| } |
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
| defined?(a) | |
| a = 1 | |
| puts a.inspect |
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 pless { | |
| pygmentize -O encoding=UTF-8 $1 | less -r | |
| } |
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
| bla = 1 | |
| # => 1 | |
| proc = -> { bla = bla + 1; bla } | |
| # => #<Proc:0x007fb67b276b98@(irb):2 (lambda)> | |
| bla = 5 | |
| # => 5 |
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
| bloco = -> { | |
| vai_danada = 1 | |
| retorno = -> { | |
| vai_danada += 1 | |
| } | |
| vai_danada = 5 |
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
| diff --git a/lib/rbraspag.rb b/lib/rbraspag.rb | |
| index 1e5dfdc..512705e 100644 | |
| --- a/lib/rbraspag.rb | |
| +++ b/lib/rbraspag.rb | |
| @@ -4,7 +4,7 @@ require 'bundler' | |
| Bundler.setup | |
| -require "cs-httpi" | |
| +require "httpi" |