...by Natacha Marins
...translated to Portuguese and converted to website by Gustavo Rehermann
You know you're being Brazilian when...
| #!/bin/bash | |
| #------------ | |
| # This script installs Arch User Repository packages automatically. | |
| # Learn more here: | |
| # https://wiki.archlinux.org/index.php/Arch_User_Repository | |
| # | |
| # (C)2018 Gustavo R. Rehermann. The MIT License. | |
| #------------ |
| class RightTriangle | |
| constructor: (@angle) -> | |
| @angle = (@angle % 90) * Math.PI / 180 | |
| print: (size) => | |
| res = "" | |
| last = 0 | |
| ot = Math.tan(@angle) | |
| for i in [0...size] |
| var a, b, brightness, checked, e, g, getBrightnessOf, icanvas, ictx, j, l, margin, pixels, r, ref, ref1, ref2, rx, ry, threshold, weight, x, y; | |
| try | |
| { | |
| icanvas = document.createElement('canvas'); | |
| icanvas.width = img.naturalWidth; | |
| icanvas.height = img.naturalHeight; | |
| chunkSize *= renderer.canvas.height / 1000; | |
| ictx = icanvas.getContext('2d'); | |
| ictx.drawImage(img, 0, 0, Math.floor(renderer.canvas.height * icanvas.width / icanvas.height / chunkSize), Math.floor(renderer.canvas.height / chunkSize)); | |
| map.clearResize(Math.floor(renderer.canvas.width / chunkSize), Math.floor(renderer.canvas.height / chunkSize)); |
| // Generated by CoffeeScript 1.12.6 | |
| var AbstractClassError, AbstractFunction, AbstractionError, BadInheritanceError, abstractClass, | |
| bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, | |
| extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }, | |
| hasProp = {}.hasOwnProperty, | |
| indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; | |
| AbstractFunction = (function() { | |
| function AbstractFunction(name) { | |
| this.name = name; |
| package usr.gustavo6046.sponge.sickle; | |
| import java.io.File; | |
| import java.io.IOException; | |
| import java.nio.charset.Charset; | |
| import java.nio.file.Files; | |
| import java.nio.file.NoSuchFileException; | |
| import java.nio.file.Paths; | |
| import java.util.LinkedList; |
| //============================================================================= | |
| // BSPNode. | |
| //============================================================================= | |
| class BSPNode expands Info; | |
| struct TriPlane | |
| { | |
| var Vector points[3]; | |
| }; |
| #ifndef RENDERER_H | |
| #define RENDERER_H | |
| #include <SFML/Graphics.hpp> | |
| #include <vector> | |
| #include <string> | |
| #include <functional> | |
| #include "Vector.hpp" | |
| using std::function; |
| #include "Renderer.hpp" | |
| #include <vector> | |
| #include <SFML/Graphics.hpp> | |
| #include <SFML/Window.hpp> | |
| #include <SFML/System.hpp> | |
| #include <string> | |
| #include <iostream> | |
| #include <memory> | |
| #include <thread> |