cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript
git clone https://github.com/miksago/jade-tmbundle.git Jade
git clone https://github.com/LearnBoost/stylus.git Stylus
This file contains 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
import urllib, urllib2, pytesseract, os | |
from PIL import Image | |
f = open('/tmp/captcha.jpg', 'wb') | |
f.write(urllib.urlopen('http://www.sunat.gob.pe/cl-ti-itmrconsruc/captcha?accion=image').read()) | |
f.close() | |
codigo = pytesseract.image_to_string(Image.open('/tmp/captcha.jpg')) | |
print codigo | |
os.remove('/tmp/captcha.jpg') | |
data = [('codigo', codigo), ('accion', 'consPorRuc'), ('nroRuc', '20549949232'),] |
This file contains 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
$(window).scroll(function() { | |
if ($(".conciencia").offset().top>50) | |
$(".conciencia").addClass("complete"); | |
else | |
$(".conciencia").removeClass("complete"); | |
}); |
This file contains 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
article, | |
aside, | |
details, | |
figcaption, | |
figure, | |
footer, | |
header, | |
hgroup, | |
main, | |
nav, |
This file contains 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/sh | |
############################################################################### | |
############# CONFIGURADOR SERVER ESTANDAR LAMP UBUNTU 14.04 ################## | |
################################################################## v 0.1 ###### | |
##### ejecutar como root (sin sudo) ########################################### | |
##### requisitos: ############################################################# | |
##### *) ssh y ssh_keys instaladas ############################################ | |
##### *) particiones extras montadas (/home/mysql, swap) ###################### | |
##### *) resolv.conf contiene los dns validos (google o isp) ################## |
This file contains 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> | |
<head> | |
<style> | |
div { | |
width: 100px; | |
height: 100px; | |
float: left; | |
} | |
</style> |
This file contains 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
# Create sudo user | |
adduser <user> | |
usermod -a -G sudo <user> | |
logout | |
# Update and clean | |
sudo apt-get update | |
sudo apt-get upgrade | |
sudo apt-get dist-upgrade | |
sudo apt-get autoremove |
This file contains 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
{ | |
"name": "curso-backend", | |
"version": "0.0.1", | |
"dependencies": { | |
"express": "~3.4.0" | |
} | |
} |
This file contains 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
// module dependencies | |
var http = require('http'), | |
url = require('url'); | |
/** | |
* UrlReq - Wraps the http.request function making it nice for unit testing APIs. | |
* | |
* @param {string} reqUrl The required url in any form | |
* @param {object} options An options object (this is optional) |
This file contains 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 | |
//if lt IE 7 | |
html.no-js.lt-ie9.lt-ie8.lt-ie7 | |
//if IE 7 | |
html.no-js.lt-ie9.lt-ie8 | |
//if IE 8 | |
html.no-js.lt-ie9 | |
//[if gt IE 8]><! | |
html.no-js | |
//<![endif] |