Skip to content

Instantly share code, notes, and snippets.

View danielpro4's full-sized avatar
🌴
On vacation

Daniel Pérez danielpro4

🌴
On vacation
  • Kimetrics
  • San Cristóbal Tepeteopan, Tehuacán Puebla.
  • X @daniel_pro4
View GitHub Profile
@danielpro4
danielpro4 / README.md
Created December 29, 2018 08:07 — forked from jimothyGator/README.md
Nginx configuration for Mac OS X with Homebrew, using sites-enabled directory.
mkdir -p /usr/local/etc/nginx/sites-{enabled,available}
cd /usr/local/etc/nginx/sites-enabled
ln -s ../sites-available/default.conf
ln -s ../sites-available/default-ssl.conf

File locations:

  • nginx.conf to /usr/local/etc/nginx/
  • default.conf and default-ssl.conf to /usr/local/etc/nginx/sites-available
  • homebrew.mxcl.nginx.plist to /Library/LaunchDaemons/
@danielpro4
danielpro4 / LICENCE SUBLIME TEXT
Created February 21, 2018 15:55
Sublime Text 3 Serial key build is 3143
## Sublime Text 3 Serial key build is 3103
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
@danielpro4
danielpro4 / download_egghead_videos.md
Created December 9, 2017 02:50 — forked from ldong/download_egghead_videos.md
download egghead videos

Download videos from egghead

Go to the egghead website, i.e. Building a React.js App

run

$.each($('h4 a'), function(index, video){
  console.log(video.href);
});
@danielpro4
danielpro4 / animatedScrollTo.js
Created November 30, 2017 03:47 — forked from joshbeckman/animatedScrollTo.js
ScrollTo animation using pure javascript and no jquery
document.getElementsByTagName('button')[0].onclick = function () {
scrollTo(document.body, 0, 1250);
}
function scrollTo(element, to, duration) {
var start = element.scrollTop,
change = to - start,
currentTime = 0,
increment = 20;
@danielpro4
danielpro4 / App.js
Created April 19, 2017 20:32 — forked from sergiodxa/App.js
Ejemplo de usar HOC para extender un componente de React.js
import React, { Component } from 'react';
import setIntervalHOC from './set-interval.js';
class App extends Component {
static propTypes = {
timer: PropTypes.number,
}
static defaultProps = {
timer: 500,
}
@danielpro4
danielpro4 / React To-Do List JSX.markdown
Created September 2, 2015 22:42
React To-Do List JSX
@danielpro4
danielpro4 / designer.html
Last active August 29, 2015 14:08
designer
<link rel="import" href="../paper-button/paper-button.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;
@danielpro4
danielpro4 / designer.html
Last active August 29, 2015 14:07
designer
<link rel="import" href="../yt-video/yt-search-video.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
<polymer-element name="my-element">
<?php
###############################################################################
# AdminCFD_PHP - Administra archivos de CFD en PHP
# Autor: Adan GQ
# email: [email protected]
# blog: http://adangq.blogspot.com
# twitter: @pixelead0
#
# NOTA: Existe una version similar creada en python por @rctorr (Ricardo Torres) disponible en:
# http://rctorr.wordpress.com/2012/08/16/administrar-la-recepcion-de-cfdcfdi-script-que-lee-xml-de-un-comprobante-fistal-digital/