Skip to content

Instantly share code, notes, and snippets.

@mehdisbys
mehdisbys / main.go
Created April 4, 2024 15:10
Uk property Rates
package main
import "fmt"
type Range struct {
lower int
higher int
rate int
}

Keybase proof

I hereby claim:

  • I am mehdisbys on github.
  • I am mehdisouihed (https://keybase.io/mehdisouihed) on keybase.
  • I have a public key ASAmEV8ymmcLsbaeRLWfaK21fEbrgxtVb6rm27fEqphA5wo

To claim this, I am signing this object:

@mehdisbys
mehdisbys / circuitBreaker.go
Last active December 27, 2019 15:38
Circuit Breaker Usage
package main
import (
"io/ioutil"
"log"
"net/http"
"time"
"github.com/sony/gobreaker"
)
@mehdisbys
mehdisbys / example-polly-request.json
Last active November 26, 2019 19:22
Polly Request
{
"target_polly":"en-GB",
"voice_id":"Amy",
"text_to_translate":"It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way — in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only"
}
@mehdisbys
mehdisbys / nokia.php
Last active September 19, 2017 17:14
Nokia 3210 pad combinations
<?php
function comb(string $input): array
{
$pad = [
2 => ['a', 'b', 'c'],
3 => ['d', 'e', 'f'],
4 => ['g', 'h', 'i'],
5 => ['j', 'k', 'l'],
6 => ['m', 'n', 'o'],