How to use:
./wordle.sh
Or try the unlimit mode:
package com.sunrun.fi.ingestion.input | |
import java.io.ByteArrayOutputStream | |
import java.nio.file.Paths | |
import java.util.zip.ZipInputStream | |
interface Step<I, O> { | |
fun process(input : I) : O | |
} |
package com.sunrun.fi.ingestion.input | |
import java.io.ByteArrayOutputStream | |
import java.nio.file.Paths | |
import java.util.zip.ZipInputStream | |
interface Step<I, O> { | |
fun process(input : I) : O | |
} |
functions: | |
hello: | |
handler: handler.hello | |
events: | |
- http: | |
path: users | |
method: get | |
integration: lambda | |
request: | |
template: |
sealed class Result<A, E> { | |
fun <B> map(mapping: (A) -> B): Result<B, E> = | |
when (this) { | |
is Success -> Success(mapping(value)) | |
is Failure -> Failure(reason) | |
} | |
fun <B> bind(mapping: (A) -> Result<B, E>): Result<B, E> = | |
when (this) { | |
is Success -> mapping(value) |
# multiprocessing_producer_consumer.py | |
# https://pymotw.com/3/multiprocessing/communication.html | |
import multiprocessing | |
import time | |
class Consumer(multiprocessing.Process): |
This notes is written by Sheldon. You can find me with #iOSBySheldon in Github, Youtube, Facebook, etc.
Convert .mov/.MP4 to .gif
As a developer, I feel better to upload a short video when I create the pull request to show other viewers what I did in this PR. I tried .mov format directly got after finishing recording screen using Quicktime, however, gif offers preview in most web pages, and has smaller file size.
This is not limited to developer, anyone has this need can use this method to convert the files.
<?php | |
use Symfony\Component\Process\PhpExecutableFinder; | |
require_once __DIR__.'/../vendor/autoload.php'; | |
$phpBin = (new PhpExecutableFinder)->find(); | |
if (false === $phpBin) { | |
throw new \LogicException('Php executable could not be found'); | |
} |
AWSTemplateFormatVersion: '2010-09-09' | |
Description: Cognito Stack | |
Parameters: | |
AuthName: | |
Type: String | |
Description: Unique Auth Name for Cognito Resources | |
Resources: | |
# Creates a role that allows Cognito to send SNS messages | |
SNSRole: |