@components/CountryFlagsPolyfill.tsx
"use client"
import { polyfillCountryFlagEmojis } from "country-flag-emoji-polyfill"
import { useEffect } from "react"
export function CountryFlagsPolyfill() {
--- | |
import type { ImageMetadata, ImageTransform } from "astro"; | |
import { getImage } from "astro:assets"; | |
import LoadableImage from "./LoadableImage.astro"; | |
type Props = { | |
src: ImageMetadata; | |
alt: string; | |
/** | |
* Array of screens to generate the image for i.e [320, 480, 1200] |
Pre requisitos: USB formateado en NTFS Live CD de alguna distro de linux (probe con macOS, pero no parece funcionar) f680 v2 o v4 con version de firmware T18 o anterior (no se si funcionará con futuras versiones)
Al lio:
Formateamos el USB en NTFS y desde linux creamos un symlink con el siguiente comando: ln -s /var/samba/lib/smb.conf .
Lo enchufamos al USB del router y nos metemos en la interfaz web, en el apartado de aplicaciones nos aseguramos de que el servidor samba este activado y funcionando, ahi mismo encontraremos las instrucciones para conectarnos
Credits to https://developer.apple.com/forums/thread/702220
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport
E.g.
mkdir -p ./ios-dd/ && wget -qO- https://github.com/iGhibli/iOS-DeviceSupport/raw/master/DeviceSupport/15.4(FromXcode_13.3(13E113)).zip | bsdtar -xvf- -C ./ios-dd/ && mv ./ios-dd/* /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/ && rm -rf ./ios-dd
#--------------------------------------------------------------------------------- | |
#The sample scripts are not supported under any Microsoft standard support | |
#program or service. The sample scripts are provided AS IS without warranty | |
#of any kind. Microsoft further disclaims all implied warranties including, | |
#without limitation, any implied warranties of merchantability or of fitness for | |
#a particular purpose. The entire risk arising out of the use or performance of | |
#the sample scripts and documentation remains with you. In no event shall | |
#Microsoft, its authors, or anyone else involved in the creation, production, or | |
#delivery of the scripts be liable for any damages whatsoever (including, | |
#without limitation, damages for loss of business profits, business interruption, |
# Watermarking image with another image using Imagemagick 'composite', 'watermark' and 'dissolve'. | |
require "RMagick" | |
# Read the image in the memory with RMagick | |
img = Magick::Image.read("/home/aditya/Pictures/old_england_pic.jpg").first | |
# the original image was in jpg format | |
# need to make the white background color transparent | |
# also changed the format to png since JPG does not support transparency. | |
# run the command below to create an image with transparent background using ImageMagick |
This is a helper function that will convert a given PDF file blob into text, as well as offering options to save the original PDF, intermediate Google Doc, and/or final plain text files. Additionally, the language used for Optical Character Recognition (OCR) may be specified, defaulting to 'en' (English).
Note: Updated 12 May 2015 due to deprecation of DocsList. Thanks to Bruce McPherson for the getDriveFolderFromPath()
utility.
// Start with a Blob object
var blob = gmailAttchment.getAs(MimeType.PDF);
<!-- Example #1 - no styling --> | |
Made with ❤ in Switzerland | |
Made with ♥ in Switzerland | |
Made with ♡ in Switzerland | |
Made with ❤️ in Switzerland | |
Made with ♥️ in Switzerland | |
<!-- Example #2 - inline-styled ❤ --> | |
Made with <span style="color: #e25555;">♥</span> in Switzerland | |
Made with <span style="color: #e25555;">♥</span> in Switzerland |
Just a really simple guide on using S3 aws-sdk-js-v3 / @aws-sdk/client-s3
Assuming @aws-sdk/client-s3
is installed:
How to stream file from S3 to Express
import { S3 } from "@aws-sdk/client-s3"
express.get(`/file/:id`, async (req, res) => {
const s3 = new S3({