This file contains hidden or 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
| #!/bin/bash | |
| # Install build dependencies | |
| yum install -y gcc libpng libjpeg libpng-devel libjpeg-devel ghostscript libtiff libtiff-devel freetype freetype-devel | |
| # Get GraphicsMagick source | |
| wget ftp://ftp.graphicsmagick.org/pub/GraphicsMagick/1.3/GraphicsMagick-1.3.9.tar.gz | |
| tar zxvf GraphicsMagick-1.3.9.tar.gz | |
| # Configure and compile |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Nodos in javascript</title> | |
| </head> | |
| <body> | |
| <button id="abc"> | |
| <span>hola</span> |
This file contains hidden or 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
| function readDoc(doc) { | |
| var descovery = doc.doctype; | |
| console.log('Document is: ' + ' <!DOCTYPE html>'); | |
| console.log(descovery); | |
| console.log(descovery.name + ' IS NAME HTML'); | |
| } | |
| readDoc(document); |
This file contains hidden or 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
| git remote set-url origin https://username:userpwd@github.com/user/repo.git | |
This file contains hidden or 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 arr = ['edinson', 'richard', 'luis', 'ashly']; | |
| function modeQuestion() { | |
| var question = prompt('Iteration Mode'); | |
| return question | |
| } | |
| function iteration(mode){ | |
| if(mode == 'for'){ |
This file contains hidden or 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
| try { | |
| //Set del problema | |
| throw "Funciono in throw"; | |
| //function_a | |
| } | |
| catch(parametro){ | |
| if(parametro) { | |
| console.log(parametro); | |
| } |
This file contains hidden or 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 isObject = {} | |
| function objeto(obt) { | |
| obt.question = 'What is your name?'; | |
| obt.resultquestion = 'My name is edinson, and you?'; | |
| obt.questionother = 'My name is katia'; | |
| var result = obt || 'No hay objecto'; | |
| showName(result); | |
| return result |
This file contains hidden or 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
| function initializeReact() { | |
| var corriendoEnReact = React.createClass({ | |
| render: function(){ | |
| var time = Math.round(this.props.elapsed / 100); | |
| var segundos = time / 10 + (time % 10 ? '' : '.0' ); | |
| var mensaje = 'Estamos corriendo: ' + segundos + ' Segundos'; | |
| return React.DOM.h2(null, mensaje); |
This file contains hidden or 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
| npm install --save react | |
| npm install --save react-dom | |
| npm install --save babelify babel-preset-react | |
| npm install --save react react-dom babelify babel-preset-react | |
| npm install browserify | |
| libs other file in react |
This file contains hidden or 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
| upstream project { | |
| server 22.22.22.2:3000; | |
| server 22.22.22.3:3000; | |
| server 22.22.22.5:3000; | |
| } | |
| server { | |
| listen 80; | |
| location / { |