myApp.factory('Excel',function($window){
var uri='data:application/vnd.ms-excel;base64,',
template='<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns="http://www.w3.org/TR/REC-html40"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>',
base64=function(s){return $window.btoa(unescape(encodeURIComponent(s)));},
format=function(s,c){return s.replace(/{(\w+)}/g,function(m,p){return c[p];})};
return {
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
| set listchars=tab:→\ ,trail:␣,extends:…,eol:⏎ | |
| set listchars=tab:→\ ,trail:␣,precedes:«,extends:»,eol:⏎ | |
| set listchars=tab:→\ ,trail:·,precedes:«,extends:»,eol:¶ | |
| set listchars=tab:‣\ ,trail:·,precedes:«,extends:»,eol:¬ | |
| set listchars=tab:␋\ ,trail:␠,precedes:«,extends:»,eol: | |
| set listchars=tab:>-,trail:.,precedes:<,extends:>,eol:$ |
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
| openssl pkcs7 -print_certs -in old.p7b -out new.crt | |
| # openssl pkcs7 -print_certs -in old.p7b -out new.cer |
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
| # encoding=utf-8 | |
| # Obtener el dígito verificador del RUT en Python. | |
| # | |
| # La función recibe el RUT como un entero, | |
| # y entrega el dígito verificador como un entero. | |
| # Si el resultado es 10, el RUT es "raya k". | |
| from itertools import cycle |
NewerOlder