Skip to content

Instantly share code, notes, and snippets.

View edinsoncs's full-sized avatar
🤖
Working from home

Edinson CS edinsoncs

🤖
Working from home
View GitHub Profile
@edinsoncs
edinsoncs / GraphicsMagick.sh
Created April 17, 2016 00:18 — forked from paul91/GraphicsMagick.sh
How to install GraphicsMagick on CentOS 6.4
#!/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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Nodos in javascript</title>
</head>
<body>
<button id="abc">
<span>hola</span>
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);
git remote set-url origin https://username:userpwd@github.com/user/repo.git
var arr = ['edinson', 'richard', 'luis', 'ashly'];
function modeQuestion() {
var question = prompt('Iteration Mode');
return question
}
function iteration(mode){
if(mode == 'for'){
try {
//Set del problema
throw "Funciono in throw";
//function_a
}
catch(parametro){
if(parametro) {
console.log(parametro);
}
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
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);
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
@edinsoncs
edinsoncs / gist:4c67347c57dee241476aceff37550861
Created June 11, 2016 20:02 — forked from learncodeacademy/gist:ebba574fc3f438c851ae
Nginx Node Frontend / Load Balancer / Static Assets Caching
upstream project {
server 22.22.22.2:3000;
server 22.22.22.3:3000;
server 22.22.22.5:3000;
}
server {
listen 80;
location / {