Skip to content

Instantly share code, notes, and snippets.

View codehasanali's full-sized avatar
🎯
Focusing

Hasan ali arıkan codehasanali

🎯
Focusing
  • 08:59 (UTC +03:00)
View GitHub Profile
// dizileri neye göre sırlacaz anlamadım.
// diziler de R ,b g, karakterleri olacak okey
// kücük harfelere duyarlı değil okey
// bir dizi de aynı karakter olacaka mı okey
// girdileri kontrol etmek lazım
// ben acaba dizileri ayrı ayrı saysam sonra dizi tekrar olusturcam sonra düzgün bir bicimde sıralasam olur gibi
@codehasanali
codehasanali / kelimeler.json
Last active May 9, 2025 13:47
kelimeler.json
[
{
"title": "First North American Pope Announced as Leo XIV",
"level_number": "N/A",
"level_description": "Advanced",
"relative_time": "16 hours ago",
"publication_date": "2025-05-08T21:33:09.000Z",
"article_url": "https://engoo.com/app/daily-news/article/first-north-american-pope-announced-as-leo-xiv/4W897Cw-EfCNdCdP8mBJqQ",
[
{
"word": "trade",
"partOfSpeech": "Verb",
"pronunciation": "treɪd",
"definition": "to buy and sell goods and services",
"example": "China began trading with the US in the late 18th century, exchanging tea, silk and porcelain for silver."
},
{
"word": "buck",
{
"apc.electron": {
"titleBarStyle": "hidden",
"trafficLightPosition": {
"x": 12,
"y": 12
}
},
"apc.stylesheet": {
".decorationsOverviewRuler": "display: none;",
import { exec } from 'child_process';
import { promisify } from 'util';
import * as cheerio from 'cheerio';
import { red, green, yellow, blue, cyan, white } from 'colorette';
import readline from 'readline';
import fs from 'fs/promises';
import { log } from 'console';
const execAsync = promisify(exec);
import React, { useState, useEffect } from 'react';
import { View, Text, TouchableOpacity, StyleSheet, ScrollView, Modal } from 'react-native';
import * as Font from 'expo-font';
import * as SplashScreen from 'expo-splash-screen';
SplashScreen.preventAutoHideAsync();
const etTurleri = [
{ ad: "Sığır Eti", ikon: "🥩", sicaklik: { C: 63, F: 145 } },
{ ad: "Tavuk", ikon: "🍗", sicaklik: { C: 74, F: 165 } },
import React, { useState } from 'react';
import { View, Text, TextInput, TouchableOpacity, StyleSheet } from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
const MortgageCalculator = () => {
const [amount, setAmount] = useState('');
const [term, setTerm] = useState('');
const [interestRate, setInterestRate] = useState('');
const [monthlyInsurance, setMonthlyInsurance] = useState('');
const [monthlyIncome, setMonthlyIncome] = useState('');
@codehasanali
codehasanali / sorts.rs
Last active August 16, 2023 09:53
sort.rs
pub fn linear<T: std::cmp::PartialEq>(item: &T, items: &Vec<T>) -> Option<usize> {
if items.is_empty(){
return None;
}
for (index, value) in items.iter().enumerate() {
if item == value {
return Some(index);
}
}
return None;
#[derive(Debug, PartialEq, Eq, Clone, Copy)]
enum Base {
A,
C,
G,
T,
}
#[derive(Debug, PartialEq, Eq, Clone)]
struct BasePair {
@codehasanali
codehasanali / React
Created February 27, 2023 16:01
LoginForm.jsx
import type { NextPage } from 'next'
const Home: NextPage = () => {
return (
<div className="">
<div className="min-h-[calc(100vh-92px)] flex justify-center items-center p-4">
<div className="w-full max-w-[448px]">
<div className="rounded-xl shadow-md shadow-gray-300 p-[30px]">
<h2 className="text-neutral-1100 font-medium text-3xl mb-6">