This uses Twitter Bootstrap classes for CodeIgniter pagination.
Drop this file into application/config
.
#include <iostream> | |
#include<string> | |
using namespace std; | |
class Base | |
{ | |
public: | |
virtual string print() const | |
{ |
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
int x = 0; | |
x = printf("Engifest 2k19!"); | |
printf(" %d", x); | |
return 0; | |
} |
#include <iostream> | |
using std::cout; | |
int main() | |
{ | |
int i = 0; | |
cout << (i = 0 ? 1 : 2 ? 3 : 4); | |
return 0; | |
} |
int findLeastDistance(vector<vector<int>> &A, int i, int j){ | |
int I = A.size(); | |
int J = A[0].size(); | |
if (i >= I || j >= J) return Integer_Max //Infinity | |
if (i == I - 1 && j == J - 1) return 0; | |
return A[i][j] + min(findLeastDistance(A, i+1, j), findLeastDistance(A,i, j+1)); | |
} |
int j = 0; | |
for(int i=0;i<n; ++i){ | |
while(j<n && arr[i]<arr[j]) { | |
j++; | |
} | |
} |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" | |
php composer-setup.php --install-dir=/usr/local/bin --filename=composer | |
php -r "unlink('composer-setup.php');" |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/* | |
| ------------------------------------------------------------------------- | |
| Hooks | |
| ------------------------------------------------------------------------- | |
| This file lets you define "hooks" to extend CI without hacking the core | |
| files. Please see the user guide for info: | |
| | |
| http://codeigniter.com/user_guide/general/hooks.html | |
| |
{ | |
"require": { | |
"vlucas/phpdotenv": "^2.2" | |
} | |
} |
DB_HOST="localhost" | |
DB_USER="root" | |
DB_PASS="admin123" |
This uses Twitter Bootstrap classes for CodeIgniter pagination.
Drop this file into application/config
.