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
<html> | |
<head><script type="text/javascript">window.NREUM||(NREUM={}),__nr_require=function t(n,e,o){function r(a){if(!e[a]){var i=e[a]={exports:{}};n[a][0].call(i.exports,function(t){var e=n[a][1][t];return r(e?e:t)},i,i.exports,t,n,e,o)}return e[a].exports}for(var a=0;a<o.length;a++)r(o[a]);return r}({D5DuLP:[function(t,n){function e(t,n){var e=o[t];return e?e.apply(this,n):(r[t]||(r[t]=[]),void r[t].push(n))}var o={},r={};n.exports=e,e.queues=r,e.handlers=o},{}],handle:[function(t,n){n.exports=t("D5DuLP")},{}],G9z0Bl:[function(t,n){function e(){var t=d.info=NREUM.info;if(t&&t.agent&&t.licenseKey&&t.applicationID){d.proto="https"===c.split(":")[0]||t.sslForHttp?"https://":"http://",i("mark",["onload",a()]);var n=u.createElement("script");n.src=d.proto+t.agent,u.body.appendChild(n)}}function o(){"complete"===u.readyState&&r()}function r(){i("mark",["domContent",a()])}function a(){return(new Date).getTime()}var i=t("handle"),s=window,u=s.document,p="addEventListener",l="attachEvent",c=(""+location).split("?" |
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
ruby \ | |
-e "$(curl https://gist.githubusercontent.com/unRob/0a76d3dad38812a82a16/raw/484aaba23e0e312f57e6f82d40c52b76d332cc20/validatimbre)" \ | |
cfdi.xml |
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
zoquete | |
sagaz | |
inconsistente |
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
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
require 'csv' | |
meses = 1..12 | |
valores = [0]*12 | |
data = Hash[meses.zip valores] | |
dpm = Hash[meses.zip valores] |
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
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# Saves files in dropbox, at ~/Dropbox/SharedFolder/Invoices/YYYY/MM/Rackspace #{invoice-no}.pdf | |
require 'httparty' | |
require 'open-uri' | |
require 'json' | |
require 'dropbox_sdk' |
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
#!/usr/bin/env bash | |
# Checa si cambiaron (Gemfile|.e?rb|css|js) y reinicia/compila/instala madres | |
# guárdame como .git/hooks/post-merge | |
HOOKDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
GITDIR="$(dirname $HOOKDIR)" | |
REPODIR="$(dirname $GITDIR)" | |
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | |
# changed_files="$(git diff-tree -r --name-only --no-commit-id HEAD HEAD^)" |
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
String.prototype.toTitleCase = function(){ | |
// Usaría Array.prototype.map, pero ie :/ | |
return jQuery.map(this.toLocaleLowerCase().split(/\s/), function(word){ | |
return word[0].toLocaleUpperCase()+word.slice(1); | |
}).join(' '); | |
}; | |
(function(){ | |
var callback = function(hardcore){ |
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
# encoding: utf-8 | |
require 'sinatra' | |
require 'mongo' | |
require 'json' | |
$mongo = Mongo::MongoClient.new | |
$db = $mongo['wifi'] |
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
{ | |
"struts.token.name": { | |
"type": "input", | |
"value": "token" | |
}, | |
"token": { | |
"type": "input", | |
"value": "un token" | |
}, | |
"cboTipoSolicitud": { |
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> | |
<script src="jquery.js" type="application/javascript"></script> | |
</head> | |
<body> | |
<div id="hide" style="display:none"><img src="1.jpg" /></div> | |
<script type="application/javascript"> | |
$(document).ready(function(){ |
OlderNewer