This file contains 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-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6GunhrNaK+f3KIAnT7LPs78ZGcVsiNcCkIEXwTeIsmS67zORkwpwBcdD93UqXbJK1aWKWTO0gqMAdJ6jOF3drCAN9UhSf2xfO1rU9jaXv2EmPoFdV/BoE9vDwrDWwZ8058w5OYttPVbZfkrbUUfIi5aGqCuv3IOjzlFbD75NffyHzv64/AfCqQV+ROIAxN7o13eKtNIrv+OyUkvM/BUg8rUslNl/exnzHORadTUjhhyhoZOJPnPp1Yk6Bc/JUcJFMQ4tMTmNz26cm9hIK6DEhaTqtbUJw0gv6sEfC2/fn8cpQKBuydpraqMym0IpYZdq95kEKtOP1EkTBajjykJNP [email protected] |
This file contains 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
String.prototype.replaceAll = function(s1, s2){ | |
var s = this; | |
while (s.indexOf(s1) > -1){ | |
s = s.replace(s1, s2); | |
} | |
return s; | |
}; |
This file contains 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
# A | |
## A | |
### A | |
#### A | |
##### A | |
###### A | |
1. a | |
* b | |
* c | |
* d |
This file contains 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
class CampoMinado: | |
def __init__(self, linha, coluna): | |
self.linha = linha | |
self.coluna = coluna | |
self.matriz = [[0 for i in range(self.coluna)] for x in range(self.linha)] | |
def insere_bomba(self, linha, coluna): | |
if self._celula_existe(linha,coluna): | |
self.matriz[linha][coluna] = -1 | |
else: | |
return False |
This file contains 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
public class Campo { | |
int linha; | |
int coluna; | |
int[][] matriz; | |
public Campo(int m, int n){ | |
linha = m; | |
coluna = n; | |
matriz = new int[linha][coluna]; | |
} | |
void insereBombas(int linha, int coluna) { |
This file contains 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
<?php | |
class CampoMinado{ | |
private $linha; | |
private $coluna; | |
private $matriz; | |
public function __construct($linha, $coluna){ | |
$this->linha = (int) $linha; | |
$this->coluna = (int) $coluna; | |
foreach(range(0,$this->linha-1) as $_linha){ | |
foreach(range(0,$this->coluna-1) as $_coluna) |
This file contains 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
#enconding: utf-8 | |
''' | |
Calculadora de expressao | |
testes: | |
2+2 = 4 | |
2-2 = 0 | |
2*2 = 4 | |
2/2 = 1 | |
2^2 = 4 |
NewerOlder