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
#include <bits/stdc++.h> | |
using namespace std; | |
vector<string> split_string(string); | |
map<string, bool> queenMap; | |
int getSquaresInDirection(int n, int iQueen, int jQueen, pair<int, int> direction) { | |
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
const insertNewElementInOrderedArray = (orderedArray, newElement) => { | |
const size = orderedArray.length; | |
if (size === 0) { | |
return [newElement]; | |
} | |
if (newElement < orderedArray[0]) { | |
orderedArray.unshift(newElement); | |
return orderedArray; | |
} | |
for (let i=1; i < size; i++) { |
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
## Server | |
server.port=8082 | |
server.servlet.context-path=/springRestSecurity | |
## Logging | |
# Show sql statement | |
logging.level.org.hibernate.SQL=debug | |
# Show sql values | |
logging.level.org.hibernate.type.descriptor.sql=trace |
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
node('php') { | |
stage('Check Java version') { | |
sh 'java -version' | |
} | |
stage('Current time') { | |
sh 'date' | |
} | |
} |
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
=__ Gerenciamento de Ambientes __ | |
Listar os ambientes criados: | |
$ conda info --envs | |
Criar um novo ambiente: | |
$ conda create --name <nome> <pacote_1> <pacote_2> ... | |
Clonar um ambiente existente: | |
$ conda create --name <nome> --clone <ambiente_previamente_criado> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#include <bits/stdc++.h> | |
using namespace std; | |
#define huge unsigned long long | |
huge mulmod(huge a, huge b, huge c) | |
{ | |
huge x = 0, y = a%c; | |
while(b>0) | |
{ |
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
/** | |
* Regex credit card numbers test | |
* | |
* author <gusanthiagodv@gmail> | |
*/ | |
const cardCompanies = [ | |
{name: 'visa', pattern: /^4[0-9]{15}$/}, | |
{name: 'master', pattern: /^5[0-5][0-9]{14}$|2[2-6][0-9]{14}$|271[0-9]{13}$|2720[0-9]{12}/}, | |
{name: 'american_express', pattern: /^3[47][0-9]{13}$/}, | |
{name: 'diners_club', pattern: /^3(0[0-5]|[68]\d)\d{11}$/}, |
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
{ | |
"brands": [ | |
{ | |
"name":"Adriatica" | |
}, | |
{ | |
"name":"Antarctica" | |
}, | |
{ | |
"name":"Antarctica Sub Zero" |
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
#include <bits/stdc++.h> | |
using namespace std; | |
#define maxn 200010 | |
vector <int> pesos,valores; | |
int c = 0; | |
int pd[1000100][200100]; |
NewerOlder