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
/* | |
* ALGORITHM: MAX-HEAP SORT | |
* | |
* @author Serrato Guerrero Michael Brandon <mikebsg01@gmail.com> | |
*/ | |
#include <iostream> | |
#include <vector> | |
#include <algorithm> | |
#include <sstream> | |
using namespace std; |
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
sudo apt-get update | |
sudo apt-get install nodejs | |
sudo apt-get install npm | |
## Use n module from npm in order to upgrade node | |
sudo npm cache clean -f | |
sudo npm install -g n | |
sudo n stable |
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
["Africa/Algiers", "West Central Africa"], | |
["Africa/Cairo", "Cairo"], | |
["Africa/Casablanca", "Casablanca"], | |
["Africa/Harare", "Harare"], | |
["Africa/Johannesburg", "Pretoria"], | |
["Africa/Monrovia", "Monrovia"], | |
["Africa/Nairobi", "Nairobi"], | |
["America/Argentina/Buenos_Aires", "Buenos Aires"], | |
["America/Bogota", "Bogota"], | |
["America/Caracas", "Caracas"], |
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
Note: This just aligns the position of the textblock, not the text itself. |
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> | |
#define X first | |
#define Y second | |
#define sz size | |
using namespace std; | |
typedef long long int lli; | |
int C,N; | |
lli Limite = 0; | |
lli AC = 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
#include <cstdio> | |
#include <algorithm> | |
#include <iostream> | |
#include <map> | |
#include <vector> | |
#include <utility> | |
#define optimize ios_base::sync_with_stdio(0);cin.tie(0); | |
#define all(v) v.begin(), v.end() | |
#define first(v, n) v.begin(), v.begin()+n | |
#define second(v, n) v.begin()+n, v.begin()+(2*n) |
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 | |
/** | |
* @author: Michael Aguiar <mike@aliasproject.com> | |
* @desc: An array of PostgreSQL Error Codes' => Descriptions | |
*/ | |
$PGError = array( | |
'00000' => 'SUCCESSFUL COMPLETION', | |
'01000' => 'WARNING', | |
'0100C' => 'DYNAMIC RESULT SETS RETURNED', |