sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install libapache2-mod-php5.6
sudo a2dismod php5
sudo a2enmod php5.6
sudo add-apt-repository ppa:ondrej/php5-compat
sudo apt-get update
apt-get install php5.6-mysql php-gettext php5.6-mbstring php-xdebug libapache2-mod-php5.6 php5.6-curl php5.6-gd php5.6-mcrypt php5.6-xml php5.6-xmlrpc
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
<iframe width="420" height="315" src="//www.youtube.com/embed/1sIWez9HAbA" frameborder="0" allowfullscreen></iframe> | |
<div>Click the thumbnail</div> |
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 | |
public function uploadFile(Request $request) | |
{ | |
$file = $request->file; | |
$extension = $file->getClientOriginalExtension(); | |
$file_name = md5(time()).".".$extension; | |
$id_user = $request->id; | |
if(!empty($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
<?php | |
function parseVideo(url) { | |
// - Supported YouTube URL formats: | |
// - http://www.youtube.com/watch?v=My2FRPA3Gf8 | |
// - http://youtu.be/My2FRPA3Gf8 | |
// - https://youtube.googleapis.com/v/My2FRPA3Gf8 | |
// - Supported Vimeo URL formats: | |
// - http://vimeo.com/25451551 | |
// - http://player.vimeo.com/video/25451551 | |
// - Also supports relative URLs: |
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
https://authenticjobs.com/#remote=true | |
https://www.wfh.io/jobs | |
https://weworkremotely.com/ | |
https://stackoverflow.com/jobs/remote-developer-jobs | |
http://jobslist.io/?q=anywhere | |
https://inbound.org/jobs/search?query=&where=Remote | |
Ofertas | |
https://www.computrabajo.com.mx/ofertas-de-trabajo/oferta-de-trabajo-de-programador.andevaspollo-worldpress-remoto-en-benito-juarez-DE8FFF33F78759FE?utm_source=opcionempleo&utm_medium=referral&utm_campaign=opcionempleo |
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 | |
private function sanear_string($text) | |
{ | |
$text = htmlentities($text, ENT_QUOTES, 'UTF-8'); | |
$text = strtolower($text); | |
$patron = array ( | |
// Espacios, puntos y comas por guion | |
'/[\., ]+/' => '-', | |
// Vocales |
sudo add-apt-repository ppa:ondrej/php -y
sudo apt-get update -y
sudo apt-get install php5.6-curl php5.6-dev php5.6-gd php5.6-intl php5.6-mcrypt php5.6-json php5.6-mysql php5.6-opcache php5.6-bcmath php5.6-mbstring php5.6-soap php5.6-xml
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
var debug = process.env.NODE_ENV !== "production"; | |
var webpack = require('webpack'); | |
module.exports = { | |
context: __dirname, | |
devtool: debug ? "inline-sourcemap" : null, | |
entry: "./js/scripts.js", | |
output: { | |
path: __dirname + "/js", | |
filename: "scripts.min.js" |