Aquí tienes un script en Python que realiza todas las tareas que has descrito:
import os
import sys
import datetime
from PIL import Image
import zipfile
def process_image(image_path, my_image_width):| /* | |
| go get -v labix.org/v2/mgo | |
| */ | |
| package main | |
| import ( | |
| "fmt" | |
| "labix.org/v2/mgo" | |
| "labix.org/v2/mgo/bson" | |
| "log" |
| //_LAMBDA_SERVER_PORT=3000 go run main.go | |
| package main | |
| import ( | |
| "encoding/json" | |
| "github.com/aws/aws-lambda-go/lambda" | |
| ) | |
| type Data struct { |
| # Dockerfile References: https://docs.docker.com/engine/reference/builder/ | |
| # Start from golang v1.11 base image | |
| FROM golang:1.11 | |
| #RUN apk add git | |
| # Add Maintainer Info | |
| LABEL maintainer="Santo <hectorgool@gmail.com>" |
| openssl req -new -newkey rsa:4096 -days 365 -x509 -subj "/CN=Kafka-Security-CA" -keyout ca-key -out ca-cert -nodes | |
| # ca-cert publico | |
| # ca-key privado | |
| #ssl port 9093 | |
| export SRVPASS=serversecret | |
| #para crear un kafka broker certificate | |
| #CN callname => el dns publico |
| import 'dart:convert'; | |
| void main() { | |
| final rawJson = '{"nombre": "Logan", "poder": "Regeneración"}'; | |
| Map parsedJson = json.decode(rawJson); | |
| //print(parsedJson); | |
| final wolverine = new Heroe.fromJson(parsedJson); |
| {% capture email_title %}Thank you for your purchase! {% endcapture %} | |
| {% capture email_body %} | |
| {% if requires_shipping %} | |
| Hi {{ customer.first_name }}, we're getting your order ready to be shipped. We will notify you when it has been sent. | |
| {% endif %} | |
| {% endcapture %} | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> |
| package main | |
| import ( | |
| "github.com/auth0/go-jwt-middleware" | |
| "github.com/dgrijalva/jwt-go" | |
| "gopkg.in/gin-gonic/gin.v1" | |
| ) | |
| func main() { | |
| startServer() |
Aquí tienes un script en Python que realiza todas las tareas que has descrito:
import os
import sys
import datetime
from PIL import Image
import zipfile
def process_image(image_path, my_image_width):import os
import sys
import shutil
from datetime import datetime
from PIL import Image
def get_timestamped_directory():
# Obtiene la fecha y hora actual| "use client"; | |
| import { useEffect, useState, FormEvent } from "react"; | |
| import { createClient } from "@/lib/supabase/client"; | |
| import toast, { Toaster } from "react-hot-toast"; | |
| import Swal from "sweetalert2"; | |
| import "sweetalert2/dist/sweetalert2.min.css"; | |
| import { useRouter } from "next/navigation"; | |
| interface Business { |