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 | |
use Illuminate\Support\Facades\Storage; | |
$public = Storage::disk('public'); | |
$s3 = Storage::disk('s3'); | |
$files = $public->files(null, true); | |
foreach ($files as $file) { |
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
# Backup | |
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql | |
# Restore | |
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE | |
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
FROM php:7.2-apache | |
RUN apt-get update \ | |
&& apt-get install -y vim \ | |
&& apt-get install -y git zlib1g-dev \ | |
&& apt-get install -y libxml2-dev \ | |
&& apt-get install -y libpng-dev | |
# Getting | |
WORKDIR /var/www/ |
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
# Use root/example as user/password credentials | |
# docker-compose up | |
version: '3.1' | |
services: | |
adminer: | |
image: adminer | |
restart: always | |
ports: | |
- 8099:8080 |
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
install.packages("readxl") | |
library("readxl") | |
data <- read_excel("BASE_ALERTAS_2.xlsx",sheet=2) | |
table(data$TARGET) | |
#Se elimina la columna del codigo del cliente | |
data$ID_CLIENTE <- NULL | |
#Se eliminan las columnas que contienen valores en 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
<?php | |
/** | |
* Generar nuevo documentos | |
* | |
* @param serviceLocator $serviceLocator | |
* @param string $preDocumento | |
* @param string $nroDocumento | |
* @param string $rucEmpresa | |
* @param string $razEmpresa |
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 | |
$technorati = new Zend_Rest_Client('http://api.technorati.com/bloginfo'); | |
$technorati->key($key); | |
$technorati->url('http://pixelated-dreams.com'); | |
$result = $technorati->get(); | |
echo $result->firstname() .' '. $result->lastname(); | |
$technorati->getHttpClient()->setHeaders( | |
array('user' => 'uewirydjfhkjds22VVhdhZhd', |
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 | |
$client = new Zend_Http_Client(); | |
$client->setMethod(Zend_Http_Client::POST); | |
$client->setUri('http://www.example.com/api/type/'); | |
$client->setParameterPost(array( | |
'useremail' => '******@*****.***', | |
'apikey' => 'secretkey', | |
'description' => 'TEST WEB API', | |
'amount' => '5000.00' |
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 <iostream> | |
using std::cout; | |
using std::endl; | |
class Increment { | |
public: | |
Increment( int c = 0, int i = 1 ); // default constructor | |
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 <iostream> | |
#include <string> | |
using namespace std; | |
class Mascota | |
{ | |
public: | |
Mascota(string nombre, int patas); | |
string hablar(); |
NewerOlder