Skip to content

Instantly share code, notes, and snippets.

@ocakhasan
ocakhasan / tax_rate.sh
Last active November 22, 2023 08:45
Turkey Software Export Tax Rate
#!/bin/bash
read -p "What is your monthly income (TL): " tl
tl=$(echo $tl | tr -d '\n')
value=$(echo $tl | tr -d '\n' | sed 's/[^0-9]*//g')
taxMoney=$((value * 12))
totalEarned=$((value * 12))
totalTax=0
@ocakhasan
ocakhasan / main.go
Created July 22, 2023 17:36
Local SQS Queue Setup
package main
import (
"context"
"log"
"github.com/aws/aws-sdk-go-v2/aws"
"github.com/aws/aws-sdk-go-v2/config"
"github.com/aws/aws-sdk-go-v2/service/sqs"
)
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
def hypothesis(x, θ):
hypothesis = np.matmul(θ.T, x)
return hypothesis
def loss_function(h_x, y):
loss_error = 1 /2 *(h_x - y) *(h_x - y)