Skip to content

Instantly share code, notes, and snippets.

View daun's full-sized avatar
🕳️

Philipp Daun daun

🕳️
View GitHub Profile
@sjardim
sjardim / processire-sync-s3-images.module.php
Last active August 11, 2023 04:20
'Synchronize all the page images uploaded through ProcessWire to a specified bucket in Amazon S3 and other places using Flysystem library.
<?php namespace ProcessWire;
use Aws\S3\S3Client;
use League\Flysystem\AwsS3v3\AwsS3Adapter;
use League\Flysystem\Filesystem;
use League\Flysystem\Adapter\Local;
class ProcessSync extends WireData implements Module, ConfigurableModule {
public static function getModuleInfo() {
@Integralist
Integralist / Go vs Rust - syntax differences.md
Last active October 7, 2024 21:48
[Go vs Rust: syntax differences] #go #golang #rust #rustlang #syntax

The following examples are written from the perspective of an engineer who writes code using the Go programming language, and so you'll find that I've written notes about how Rust is different and I don't really cover the why or how of the example Go code. Additionally, the Go examples are far from exhaustive because I'm using this as a 'scratch pad' for my Rust learnings.

Error Handling

Go example