Copian el archivo pre-push.js
a repo/.git/hooks/pre-push
. Y cada ves que le dan push
le cambia la versión del patch
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
#!/bin/env node | |
const fs = require('fs'); | |
const path = require('path'); | |
const childProcess = require('child_process'); | |
const async = require('async'); | |
const RUNTIME = { | |
android : function (dir, values, call) { | |
var master = []; |
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
const entra = "10+62*7*+"; | |
function flaten (input, carch) { | |
var a = 0, output = []; | |
if(!carch) | |
return input; | |
var last = input[ input.length - 1 ]; | |
var past = input[ input.length - 2 ]; |
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
const um =/(^|\s)(3([0-9]|\-){9,10})($|\s)/gim; | |
const search = 'lo que buscamos basico'; | |
const _ = require('underscore'); | |
var Twitter = require('twitter'); | |
var client = new Twitter({ | |
consumer_key: , | |
consumer_secret: , |
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
{ | |
"name": "OpenShift-Sample-App", | |
"version": "1.0.0", | |
"description": "OpenShift Sample Application", | |
"author": { | |
"name": "alejonext", | |
"email": "[email protected]", | |
"url": "http://www.alejonext.co/" | |
}, | |
"repository": { |
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
package org.nativescript.vibration; | |
import android.content.Context; | |
import android.os.Vibrator; | |
/** | |
* This class provides access to vibration on the device. | |
*/ | |
public class Vibration { |
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
// Tu modelo... bla... bla.. | |
module.exports = { | |
attributes: { | |
// Los Atributos.... | |
}, | |
damePlantas: function (){ | |
try { | |
var pl = JSON.parse(this.plantas); | |
return pl; |
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
function fal (input) { | |
var output = [], value; | |
for (var i = input.length - 1; i >= 0; i--) { | |
if (Array.isArray(input[i]) && input[i].length > 0) { | |
value = fal(input[i]); | |
for (var f = 0; f < value.length; f++) | |
output.push(value[f]); | |
} else if( !Array.isArray(input[i]) ){ | |
output.push(input[i]); | |
} |
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
TEST! |
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
To: "[email protected]" <[email protected]> | |
Subject: prueba | |
X-PHP-Originating-Script: 0:class.phpmailer.php | |
Date: Tue, 30 Dec 2014 19:43:59 -0500 | |
From: Alejandro Next <[email protected]> | |
Reply-To: Alejandro Next <[email protected]> | |
Message-ID: <[email protected]> | |
X-Priority: 3 | |
MIME-Version: 1.0 | |
Content-Type: text/html; charset=UTF-8 |