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
sudo add-apt-repository ppa:ondrej/php | |
sudo apt-get update | |
sudo apt-get install php7.1 | |
sudo apt-get install php7.1-cli php7.1-common php7.1-json php7.1-opcache php7.1-mysql php7.1-mbstring php7.1-mcrypt php7.1-zip php7.1-fpm php7.1-intl php7.1-simplexml | |
sudo a2dismod php7.2 | |
sudo a2enmod php7.1 | |
sudo service apache2 restart | |
sudo update-alternatives --set php /usr/bin/php7.1 | |
sudo update-alternatives --set phar /usr/bin/phar7.1 | |
sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.1 |
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
<?php | |
namespace App\Providers; | |
use Illuminate\Support\Collection; | |
use Illuminate\Pagination\LengthAwarePaginator; | |
class AppServiceProvider extends ServiceProvider | |
{ | |
public function boot() |
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
/* | |
Converting a BST to TBT [Two way - Predecessor & Successor] | |
- Ajinkya Sonawane [AJ-CODE-7] | |
*/ | |
#include<iostream> | |
#include<list> | |
using namespace std; | |
class node |
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
# -*- coding: utf-8 -*- | |
""" | |
Upload folder to Google Drive | |
""" | |
# Enable Python3 compatibility | |
from __future__ import (unicode_literals, absolute_import, print_function, | |
division) |
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
from __future__ import print_function | |
import sys | |
import io | |
import pip | |
import httplib2 | |
import os | |
from mimetypes import MimeTypes | |
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
module HW1 where | |
import Prelude hiding (Enum(..), sum) | |
import Data.List hiding(sum) | |
-- | |
-- * Part 1: Natural numbers | |
-- |
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
INSERT INTO `bancos` (`cod`, `banco`) VALUES (001,'001 - BANCO DO BRASIL S/A'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (002,'002 - BANCO CENTRAL DO BRASIL'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (003,'003 - BANCO DA AMAZONIA S.A'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (004,'004 - BANCO DO NORDESTE DO BRASIL S.A'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (007,'007 - BANCO NAC DESENV. ECO. SOCIAL S.A'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (008,'008 - BANCO MERIDIONAL DO BRASIL'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (020,'020 - BANCO DO ESTADO DE ALAGOAS S.A'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (021,'021 - BANCO DO ESTADO DO ESPIRITO SANTO S.A'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (022,'022 - BANCO DE CREDITO REAL DE MINAS GERAIS SA'); | |
INSERT INTO `bancos` (`cod`, `banco`) VALUES (024,'024 - BANCO DO ESTADO DE PERNAMBUCO'); |
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
var request = require('request'); | |
var xml2js = require('xml2js'); | |
/* | |
código do serviço. | |
40010 SEDEX | |
41106 PAC |