$ cd /path/to/Dockerfile
$ sudo docker build .
View running processes
<?php | |
require 'vendor/autoload.php'; | |
$culqi = new Culqi\Culqi(array('api_key' => $_ENV["API_KEY"])); | |
// Generar el token de Tarjeta |
def flatten(input) | |
if input.any? { |n| n.is_a? Array } | |
return input.reduce([]) do |b, x| | |
x.is_a?(Array) ? b + flatten(x) : b + [x] | |
end | |
else | |
return input | |
end | |
end |
import re | |
print("\n\033[38;1mCalcular +, , *, / de 2 números:\033[0m\n") | |
def solve(str_operation): | |
pattern = re.compile("([0-9]+)[\s]*([\+\-\/\*])[\s]*([0-9]+)") | |
match = pattern.match(str_operation) | |
(operator1, operation, operator2) = match.groups() | |
if operation == "+": |
c =0 | |
""" .""" | |
b = 34 | |
""" ###""" | |
while b > 0 \ | |
and c < 33 : | |
""" ############""" | |
print( '\33[1;32;48m' + \ | |
' '*b+'*'+'*'*c+'\33[0m') |
numbers = [8, 42, 38, 111, 2, 39, 1] | |
numbers.forEach(num => { | |
setTimeout(() => { console.log(num) }, num) | |
}); | |
// ➜ ~ node sleepsort.js | |
// 1 | |
// 2 | |
// 8 |
source 'https://rubygems.org' | |
gem 'ruby-progressbar' |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using AdminLTE.Data; | |
using Microsoft.AspNetCore.Http; | |
using Microsoft.AspNetCore.Mvc; | |
using MercadoPago; | |
using MercadoPago.Resources; | |
using MercadoPago.DataStructures.Payment; |