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
require('colors') | |
Class('Flow').includes(CustomEventSupport, NodeSupport)({ | |
prototype: { | |
/** | |
holder for the name of the flow | |
@property name <public> [String] | |
**/ | |
name: '', |
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
function foo(){ | |
return Promise.resolve('resuelta') | |
} | |
for (var i=0; i<10; i++) { | |
(function(){ | |
var index = i; | |
foo().then(function(){ | |
console.log(index) |
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
{"lastUpload":"2020-03-09T21:38:36.518Z","extensionVersion":"v3.4.3"} |
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
{ | |
"text": [ | |
{ | |
"allowedFonts": [], | |
"visible": true, | |
"contents": "tacos", | |
"tag": "TEXT1", | |
"color": "#1c1c1c" | |
}, | |
{ |
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
# CUSTOM PROMPT http://ezprompt.net/ | |
# get current branch in git repo | |
function parse_git_branch() { | |
BRANCH=`git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
if [ ! "${BRANCH}" == "" ] | |
then | |
STAT=`parse_git_dirty` | |
echo "[${BRANCH}${STAT}]" | |
else |
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 | |
: ${pm2_user="root"} | |
command="/usr/local/lib/node_modules/pm2/bin/pm2" | |
pidfile="/home/${pm2_user}/.pm2/${name}.pid" | |
super() { |
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
#Autor: Daniel Nieto | |
preguntas = ["como te llamas?", "cual es tu edad?", "estudias o trabajas", "eres hombre o mujer?" , "iOS o Android?", "Pepsi o Coca Cola?", "donde vives?", "sabes programar con Ruby?", "fumas?", "bebes alcohol?"] | |
respuesta = nil | |
until respuesta.eql? "bye" | |
puts preguntas.sample | |
respuesta = gets.chomp.downcase |