Skip to content

Instantly share code, notes, and snippets.

View emamut's full-sized avatar
💭
💎Harder. 🏆Better. ⚡Faster. 💪🏾Stronger

Faber Andrés Vergara Holguín emamut

💭
💎Harder. 🏆Better. ⚡Faster. 💪🏾Stronger
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@emamut
emamut / embedded-file-viewer.md
Created February 11, 2019 17:20 — forked from tzmartin/embedded-file-viewer.md
Embedded File Viewer: Google Drive, OneDrive

Office Web Apps Viewer

('.ppt' '.pptx' '.doc', '.docx', '.xls', '.xlsx')

http://view.officeapps.live.com/op/view.aspx?src=[OFFICE_FILE_URL]

<iframe src='https://view.officeapps.live.com/op/embed.aspx?src=[OFFICE_FILE_URL]' width='px' height='px' frameborder='0'>
</iframe>

OneDrive Embed Links

@emamut
emamut / functions.php
Created January 17, 2019 12:13
WP Resume Manager issue
<?php
require_once dirname( __FILE__ ) . '/helpers/resume-manager-extra.php';
@emamut
emamut / README.md
Last active November 27, 2018 16:00
Handlebars.js helpers collection
@emamut
emamut / map.js
Last active August 16, 2018 15:14
Get leaflet map center
mapAt.on('dragend', function (e) {
var center = mapAt.getCenter()
console.log('center', center)
});
@emamut
emamut / reset_mysql_root_password.sh
Last active April 24, 2018 14:12
Reset MySQL 5 root password - Ubuntu
# Stop MySQL
sudo service mysql stop
# Make MySQL service directory.
sudo mkdir /var/run/mysqld
# Give MySQL user permission to write to the service directory.
sudo chown mysql: /var/run/mysqld
# Start MySQL manually, without permission checks or networking.
{
"scripts": {
"build-css": "node-sass-chokidar --include-path ./node_modules src/assets/sass -o src/assets/css",
"watch-css": "npm run build-css && node-sass-chokidar src/assets/sass -o src/assets/css --watch --recursive",
"start-js": "react-scripts start",
"start": "npm-run-all -p watch-css start-js",
"build-js": "react-scripts build",
"build": "npm-run-all build-css build-js",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
@emamut
emamut / foo.html
Last active January 24, 2018 22:09
Whatsapp link example
<a href="https://web.whatsapp.com/send?l=es&amp;phone=5215581852761&amp;text=Quiero Informacion del Curso en" class="whatsapp_1 float float-right float-floatingButtonCenter" style="background-color: #25d366;" target="_blank">
<i class="whatsapp_1 fa fa-whatsapp whatsapp "></i>
</a>
@emamut
emamut / 1-elementary-os-apps.md
Last active January 19, 2018 19:11 — forked from ankurk91/1-elementary-os-apps.md
elementary OS 0.4.1 Loki

elementaryOS Apps and Configs

Enbale PPA support

sudo apt-get update
sudo apt-get -y install software-properties-common

Install original plank dock

@emamut
emamut / primera-pagina.html
Created January 4, 2018 13:44
Curso Basico HTML
<html>
<head>
<title>Mi primera pagina HTML</title>
<style>
td {
border: 1px solid;
background: red;
width: 70px
}
h1 {