- Atama Operatörü (Assignment operator) =
x + y = z
(Yasak)- x = 2
- x = y + z
- Algoritma adımları
1. Başla
2. X'i olustur
3. X'e 3 degerini ata
const redis = { | |
// Anahtar-değer çiftleri | |
"anahtar1": "değer1", | |
"anahtar2": "değer2", | |
// Bir liste benzetimi | |
"listeAnahtarı": ["eleman1", "eleman2", "eleman3"], | |
// Bir set benzetimi (JavaScript Set kullanarak) | |
"setAnahtarı": new Set(["eleman1", "eleman2"]), |
import type { ConfigContext, ExpoConfig } from "@expo/config"; | |
const defineConfig = (_: ConfigContext): ExpoConfig => ({ | |
name: "My project", | |
slug: "my-project", | |
plugins: [ | |
["./plugins/mylibrary.plugin.js"], | |
], | |
}); |
{ | |
"Component": { | |
"prefix": ["comp"], | |
"body": [ | |
"import { View, Text } from 'react-native'", | |
"import React from 'react'", | |
"", | |
"type Props = {}", | |
"", | |
"const ${TM_FILENAME_BASE} = (props: Props) => {", |
import { useNavigation } from "expo-router"; | |
import { useEffect } from "react"; | |
import { FlatList } from "react-native"; | |
export const useTabPressScroll = <T>(ref: React.RefObject<FlatList<T>>) => { | |
const navigation = useNavigation(); | |
useEffect(() => { | |
// @ts-expect-error tabPress is not in the type | |
const unsub = navigation.addListener("tabPress", (evt) => { | |
if (navigation.isFocused()) { |
const authRequest = { | |
url: `${pm.collectionVariables.get("baseUrl")}/auth`, | |
method: "POST", | |
header: { | |
"Version": pm.collectionVariables.get("Version"), | |
}, | |
body: { | |
mode: "application/json", | |
raw: JSON.stringify({ | |
username: pm.collectionVariables.get("Username"), |
[ | |
{ | |
"id": 1, | |
"name": "Product 1", | |
"price": 486.09, | |
"quantity": 72, | |
"category": "Home & Kitchen", | |
"description": "This is product 1." | |
}, | |
{ |
ace | |
actual | |
apage | |
autumn | |
caffeine | |
class | |
classy | |
cora | |
dave | |
elegant |
{ | |
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json", | |
"basics": { | |
"name": "Zafer AYAN", | |
"label": "Frontend Developer", | |
"image": "https://www.gravatar.com/avatar/b3cb368f71c8cca1fb0a74df0ffad2dd?s=200&r=pg&d=mm", | |
"email": "ozcanzaferayan@gmail.com", | |
"phone": "0531", | |
"url": "https://github.com/ozcanzaferayan", | |
"summary": "I'm a software engineer with over 8 years of experience designing, developing and maintaining fullstack web and mobile applications.", |
import { assertEquals } from "https://deno.land/std@0.173.0/testing/asserts.ts"; | |
import { getPercentageRounds } from "./main.ts"; | |
Deno.test(function getPercentageRoundsTest() { | |
assertEquals(getPercentageRounds(0), "⚪⚪⚪⚪⚪⚪⚪⚪⚪⚪"); | |
assertEquals(getPercentageRounds(0.04), "🔵⚪⚪⚪⚪⚪⚪⚪⚪⚪"); | |
assertEquals(getPercentageRounds(0.1), "🔵⚪⚪⚪⚪⚪⚪⚪⚪⚪"); | |
assertEquals(getPercentageRounds(0.5), "🔵🔵🔵🔵🔵⚪⚪⚪⚪⚪"); | |
assertEquals(getPercentageRounds(0.6), "🔵🔵🔵🔵🔵🔵⚪⚪⚪⚪"); | |
assertEquals(getPercentageRounds(1), "🔵🔵🔵🔵🔵🔵🔵🔵🔵🔵"); |