Skip to content

Instantly share code, notes, and snippets.

package com.example.demo.services;
import io.jsonwebtoken.Claims;
import io.jsonwebtoken.Jws;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;
import io.jsonwebtoken.security.Keys;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
public class BirthDay
{
private const string Template =
"""
Hey,
{name}'s birthday is on {dob}, which is in {month}.
Let's plan a party!
public static class NumberExtension
{
static string[] birler = { "", "Bir", "İki", "Üç", "Dört", "Beş", "Altı", "Yedi", "Sekiz", "Dokuz" };
static string[] onlar = { "", "On", "Yirmi", "Otuz", "Kırk", "Elli", "Altmış", "Yetmiş", "Seksen", "Doksan" };
static string[] gruplar = { "", "Bin", "Milyon", "Milyar", "Trilyon", "Katrilyon" };
public static String Humanize(this long sayi)
{
if (sayi == 0)
return "Sıfır";
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
<EmbedAssembliesIntoApk>true</EmbedAssembliesIntoApk>
</PropertyGroup>
<_MauiForceXamlCForDebug Condition="$(Configuration.Contains('Release'))">true</_MauiForceXamlCForDebug>
@mcihad
mcihad / wordlist.txt
Created February 22, 2024 18:13
Turkish Wordlist
Word
bir
bu
ve
ne
için
mi
ben
çok
de
@mcihad
mcihad / main.go
Created February 22, 2024 18:13
Sqlite Fts and Normal Like Test
package main
import (
"bufio"
"database/sql"
"log"
"math/rand"
"os"
"time"
@mcihad
mcihad / main.go
Created January 7, 2024 17:59
Point in Polygon algorithm and parse coordinates from kml file
package main
import (
"encoding/xml"
"fmt"
"os"
"strconv"
"strings"
)
@mcihad
mcihad / choice_from_db.py
Created July 19, 2023 06:49
django choices özelliğinin veritabanından alınması
class Birim(models.Model):
kisa_ad = models.CharField(_("Kısa Ad"), max_length=50)
ad = models.CharField(_("Ad"), max_length=50)
class Meta:
verbose_name = _("Birim")
verbose_name_plural = _("Birimler")
def __str__(self):
return self.ad
package main
import (
"fmt"
"math"
"strings"
)
var birlerList = [...]string{"", "Bir", "İki", "Üç", "Dört", "Beş", "Altı", "Yedi", "Sekiz", "Dokuz"}
var onlarList = [...]string{"", "On", "Yirmi", "Otuz", "Kırk", "Elli", "Altmış", "Yetmiş", "Seksen", "Doksan"}