Skip to content

Instantly share code, notes, and snippets.

View vaporic's full-sized avatar
🏠
Working from home

Hugo Epinosa vaporic

🏠
Working from home
View GitHub Profile
@vaporic
vaporic / index.html
Created June 3, 2017 05:41
visualizar thumbnail de youtube
<iframe width="420" height="315" src="//www.youtube.com/embed/1sIWez9HAbA" frameborder="0" allowfullscreen></iframe>
<div>Click the thumbnail</div>
@vaporic
vaporic / uploadFile.php
Created March 23, 2017 19:42
Upload File Laravel
<?php
public function uploadFile(Request $request)
{
$file = $request->file;
$extension = $file->getClientOriginalExtension();
$file_name = md5(time()).".".$extension;
$id_user = $request->id;
if(!empty($file)) {
@vaporic
vaporic / parseVideo.php
Created January 28, 2017 02:29
Parse Video Youtube & Vimeo
<?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:
@vaporic
vaporic / cloud9-php5.6.md
Created January 25, 2017 22:20
Update Cloud9 php5.6
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
@vaporic
vaporic / remote.txt
Last active January 18, 2017 20:53
Remote Jobs
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
@vaporic
vaporic / sanear_string.php
Last active December 20, 2016 16:20
Función para remplazar caracteres especiales
<?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
@vaporic
vaporic / update-php5.6.md
Last active October 24, 2022 21:04
Update php5.6 Ubuntu
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
@vaporic
vaporic / webpack.config.js
Created October 27, 2016 23:42 — forked from jerolan/webpack.config.js
Sample Basic Webpack Config
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"