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
#include <stdio.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#define SECTOR_SIZE 512 | |
#define MBR_SIZE SECTOR_SIZE | |
#define MBR_DISK_SIGNATURE_OFFSET 440 | |
#define MBR_DISK_SIGNATURE_SIZE 4 |
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
/* ============================================================================= * | |
* COMPUTE AND DRAW A BICUBIC SURFACE PATCH USING FORWARD DIFFERENCES * | |
* * | |
* This code implements and provides corrections to the algorithm named * | |
* DrawSurfaceFwdDif presented in Fig.11.46 at page 525 of the book * | |
* Computer Graphics - Principles and Practice 2.ed in C by Jamed D.Foley et.al. * | |
* This algorithm was neither corrected nor repeated in the 3rd (present) * | |
* edition of Foley et.al.'s book. * | |
* * | |
* The algorithm, as stated in the book, does not work: There is one error and * |
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
#!/bin/bash | |
# Script | |
# Download things in a numeric pattern of links | |
# Author: Lucas Tonussi <[email protected]> | |
# Usage | |
# bash download.sh <cota_inferior> <cota_superior> <regex> <output_name> | |
# $1 $2 $3 $4 | |
link="" |
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
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
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
1 | |
00:00:00,906 --> 00:00:08,457 | |
Grandes Descobertas! | |
2 | |
00:00:12,079 --> 00:00:16,012 | |
Desvende! | |
3 | |
00:00:16,461 --> 00:00:19,039 |
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
.text | |
.globl main | |
main: | |
# int fib (int n) | |
# if (n == 0) return 0; | |
# elif (n == 1) return 1; | |
# else return fib(n - 1) + fib(n - 2); |
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 Filho(nodo_filho, filho_esquerda, filho_direita) { | |
this.nodo_filho = nodo_filho; | |
this.filho_esquerda = filho_esquerda; | |
this.filho_direita = filho_direita; | |
} | |
Filho.class_filho.prototype.constroiAutomatoFND = function () { | |
var nodo_filho = new Parenteses(0, -1, 1024, this.nodo_filho); | |
if (!this.filho_esquerda) { |
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
captura_simbolos: function () { | |
var simbolos = []; | |
for (var i = 0; i < this.transicoes.length; i++) { | |
var tr = this.transicoes[i]; | |
for (var j = tr.lb; j < tr.ub; j++) { | |
simbolos.push(j); | |
} | |
} | |
} |
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
[lucastonussi:/home/lucastonussi/git/lyrebird] master(+155/-64,9) 16 ± foreman start | |
10:45:22 web.1 | started with pid 3736 | |
10:45:23 web.1 | Example app listening at http://0.0.0.0:5000 | |
10:45:27 web.1 | {} | |
10:45:28 web.1 | GET / 200 795.521 ms - 818 | |
10:45:28 web.1 | GET /stylesheets/style.css 200 4.069 ms - 2794 | |
10:45:31 web.1 | {} | |
10:45:31 web.1 | GET /regex 200 40.046 ms - 1686 | |
10:45:31 web.1 | GET /stylesheets/style.css 200 1.375 ms - 2794 |
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
Not Found | |
404 | |
Error: Not Found | |
at app.use.res.render.message (/home/lucastonussi/git/lyrebird/app.js:69:15) | |
at Layer.handle [as handle_request] (/home/lucastonussi/git/lyrebird/node_modules/express/lib/router/layer.js:82:5) | |
at trim_prefix (/home/lucastonussi/git/lyrebird/node_modules/express/lib/router/index.js:270:13) | |
at /home/lucastonussi/git/lyrebird/node_modules/express/lib/router/index.js:237:9 | |
at Function.proto.process_params (/home/lucastonussi/git/lyrebird/node_modules/express/lib/router/index.js:312:12) | |
at /home/lucastonussi/git/lyrebird/node_modules/express/lib/router/index.js:228:12 |