Skip to content

Instantly share code, notes, and snippets.

@juanpabloaj
juanpabloaj / slideshow.md
Last active August 29, 2015 14:13
Create a slideshow from github gist, http://platon.io/gist/8f231e0003db50c1fcb7
@juanpabloaj
juanpabloaj / creando_paquetes_para_npm.md
Created February 9, 2015 00:43
Creando paquetes para npm

class: center, middle

Creando paquetes para npm

Juan Pablo AJ

github.com/juanpabloaj


#npm Gestionador de paquetes de nodejs

@juanpabloaj
juanpabloaj / tabnext_or_buffernext.vim
Created February 17, 2015 00:55
tabnext or buffernext
nnoremap <silent>gt : exec tabpagenr('$') == 1 ? 'bn' : 'tabnext'<CR>
nnoremap <silent>gT : exec tabpagenr('$') == 1 ? 'bp' : 'tabprevious'<CR>
@juanpabloaj
juanpabloaj / poly_fill.vba
Last active August 29, 2015 14:16
excel vba, polygon fill from range
Sub poly_fill()
Dim cht As Chart
Dim builder As FreeformBuilder
Dim shp As Shape
Dim xmin As Double, xmax As Double
Dim ymin As Double, ymax As Double
Dim xleft As Double, ytop As Double
Dim xwidth As Double, yheight As Double
exports.addition = function(a,b) {
return a + b;
};
exports.multiplication = function(a,b) {
return a * b;
};
def main():
intervalos = [
[0,25, 'aaa'],
[26,50, 'bbb'],
[51,75, 'ccc'],
[52,100, 'ddd']
]
#!/usr/bin/python
# -*- coding: utf-8 -*-
import xlrd
from string import Template
import random
salida_template = Template('\
Para analizar\n\
Nombre: ${nombre}\n\
Edad: ${edad}\n\
@juanpabloaj
juanpabloaj / 20150323_python_archivos_excel_desde_python.md
Created March 22, 2015 16:19
20150323_python_archivos_excel_desde_python

class: center, middle

Accediendo a archivos excel desde python

github.com/juanpabloaj


class: middle

  • Solicitar datos a usuarios, sin tener que invertir mucho tiempo en desarrollo de aplicaciones web o de escritorio.

  • Excel puede ser una interfaz más conocida.

app.filter('capitalize', function() {
return function(input, scope) {
if (input!=null)
input = input.toLowerCase();
return input.substring(0,1).toUpperCase()+input.substring(1);
}
});
app.filter('capitalize', function() {
return function(input, scope){
if ( input ) {
input = input.toLowerCase();
return input.substring(0,1).toUpperCase() + input.substring(1);
}
};
});