Skip to content

Instantly share code, notes, and snippets.

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

José Wenceslao Castillo jwcastillo

🏠
Working from home
View GitHub Profile
@jwcastillo
jwcastillo / gist:c94160b4f4d52fa4c965
Last active October 30, 2015 14:25 — forked from getify/gist:7ae82fdc2e86bf66bcba
List of ES6 books either out or in progress...

// please comment if you know of other BOOKS (not considering blogs just yet) on ES6 that are out or coming out

@jwcastillo
jwcastillo / gist:8529a545ada93b392572
Created November 20, 2015 16:00 — forked from jelcaf/gist:5045907
Backup de repositorios Git
#!/bin/bash
###########################################
# Backup de aplicaciones git del servidor #
###########################################
#################
# Configuración #
#################
# Servidor
SERVER_IP=X.X.X.X
@jwcastillo
jwcastillo / C++ Install gSOAP.txt
Created November 20, 2015 16:00 — forked from callemall/C++ Install gSOAP.txt
Install gSOAP for using C++ programs to access a SOAP API. Install from an account that has appropriate system privileges.
wget http://sourceforge.net/projects/gsoap2/files/gSOAP/gsoap_2.8.1.zip/download
unzip gsoap_2.8.1.zip
cd gsoap-2.8/
./configure --prefix=/usr
make
make install
@jwcastillo
jwcastillo / C++ Pull Definitions From Web Service.txt
Created November 20, 2015 16:00 — forked from callemall/C++ Pull Definitions From Web Service.txt
Commands to pull the Call-Em-All SOAP API web service definitions from the server.
mkdir /usr/local/src/CEAAPI
cd /usr/local/src/CEAAPI
cp /usr/local/src/gsoap-2.8/gsoap/typemap.dat .
wsdl2h -o CEAAPI.h http://staging-api.call-em-all.com/webservices/CEAAPI_v2.asmx?WSDL
soapcpp2 -i CEAAPI.h -I/usr/share/gsoap/import/
INSERTING TEXT
ESC command mode
i Insert before cursor
I Insert before line
a Append after cursor
A Append after line
o Open blank line below the cursor
O Open blank line above the cursor
@jwcastillo
jwcastillo / Readme.md
Created November 24, 2015 20:26 — forked from mrgcohen/Readme.md
Twitter Bootstrap Typeahead autocomplete example

Requirements

  • bootstrap with typeahead
  • jquery

Explanation

This will use bootstrap with typeahead to create an autocomplete search.

@jwcastillo
jwcastillo / gist:d9f5e7bae99daa980cbe
Created November 25, 2015 21:29
install brother printer ubuntu 15.10
find drivers on http://support.brother.com/
sudo mkdir /var/spool/lpd
sudo dpkg -i --force-all mfc*.deb
Para sistemas de 64 Bits Importante que estén instalados los siguientes paquetes: ia32-libs y lib32stdc++ .
@jwcastillo
jwcastillo / nodejs-tcp-example.js
Created November 27, 2015 19:58 — forked from tedmiston/nodejs-tcp-example.js
Node.js tcp client and server example
/*
In the node.js intro tutorial (http://nodejs.org/), they show a basic tcp
server, but for some reason omit a client connecting to it. I added an
example at the bottom.
Save the following server in example.js:
*/
var net = require('net');
@jwcastillo
jwcastillo / SOLID.markdown
Created November 30, 2015 00:03 — forked from emaraschio/SOLID.markdown
SOLID Principles with ruby examples

#SOLID Principles with ruby examples

##SRP - Single responsibility principle A class should have only a single responsibility.

Every class should have a single responsibility, and that responsibility should be entirely encapsulated. All its services should be narrowly aligned with that responsibility, this embrace the high cohesion.

##OCP - Open/closed principle Software entities should be open for extension, but closed for modification.