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
| ssh-keygen -t rsa -b 4096 -C "[email protected]" | |
| eval "$(ssh-agent -s)" | |
| ssh-add ~/.ssh/id_rsa | |
| cat id_rsa.pub | |
| # Add in github config the id_rsa.pub |
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
| // Carlos Eduardo Cuzik | |
| // Marlon Henry Schweigert | |
| [ | |
| { | |
| "value": "place", | |
| "synonyms": [ | |
| "rua", | |
| "estrada", | |
| "avenida" |
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 'unionf' | |
| include Unionf | |
| nodes = [ | |
| :vinho, | |
| :vermelho, | |
| :preto, | |
| :laranja, | |
| :verde, | |
| :amarelo, |
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 'unionf' | |
| include Unionf | |
| nodos = [:udesc, :matheus, :marlon, :exemplo_man] | |
| conjunto = UnionFind.new nodos | |
| # Curtem a página UDESC | |
| conjunto.union :udesc, :matheus | |
| conjunto.union :udesc, :marlon | |
| conjunto.union :udesc, :exemplo_man |
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 'unionf' | |
| include Unionf | |
| nodos = [1,2,3,4,5] | |
| conjunto = UnionFind.new nodos | |
| lista_adj = { | |
| 1 => [2], | |
| 2 => [1,3], | |
| 3 => [2], | |
| 4 => [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
| require 'unionf' | |
| include Unionf | |
| nodos = [1,2,3,4,5] | |
| conjunto = UnionFind.new nodos | |
| lista_adj = { | |
| 1 => [2,4], | |
| 2 => [1,3,5], | |
| 3 => [2], | |
| 4 => [1,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
| # Factorial function | |
| def fat n | |
| puts("buscando fat(#{n})") | |
| return 1 if n == 1 or n == 0 | |
| f = findFat(n) | |
| if f == nil | |
| f = fat(n-1)*n | |
| insertFat n, f | |
| return f | |
| 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
| # Factorial function | |
| def fat n | |
| puts("buscando fat(#{n})") | |
| return 1 if n == 1 or n == 0 | |
| f = findFat(n) | |
| if f == nil | |
| f = fat(n-1)*n | |
| insertFat n, f | |
| return f | |
| 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 fat n | |
| return 1 if n == 0 | |
| return n*fat(n-1) | |
| end | |
| def sfat n | |
| return 1 if n == 0 | |
| return fat(n)*sfat(n-1) | |
| 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
| CREATE SCHEMA `superfactorial` ; | |
| CREATE TABLE `superfactorial`.`fat` ( | |
| `n` INT NOT NULL, | |
| `f` LONGTEXT NOT NULL, | |
| PRIMARY KEY (`n`)); | |
| CREATE TABLE `superfactorial`.`sfat` ( | |
| `n` INT NOT NULL, | |
| `f` LONGTEXT NULL, |