This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 100 chunks × 4KB streaming test | |
| const { performance } = require('perf_hooks'); | |
| // Prepare test data: 100 chunks of 4KB each | |
| const numChunks = 100; | |
| const chunkSize = 4096; // 4KB | |
| const chunks = []; | |
| for (let i = 0; i < numChunks; i++) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Buffer } from 'node:buffer'; | |
| // 100 chunks × 4KB benchmark | |
| export default { | |
| async fetch(request, env) { | |
| const url = new URL(request.url); | |
| const tick = env?.TICK | |
| ? async () => { await env.TICK.fetch(new Request('http://tick/')); } | |
| : async () => {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Node.js Structured Logging API - RFC | |
| **Author:** @mertcanaltin | |
| **Status:** REVIEW | |
| **Date:** 2025-01-22 | |
| **Issue:** [#49296](https://github.com/nodejs/node/issues/49296) | |
| --- | |
| ## Summary |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ℹ tests 5381 | |
| ℹ suites 28 | |
| ℹ pass 5336 | |
| ℹ fail 44 | |
| ℹ cancelled 0 | |
| ℹ skipped 1 | |
| ℹ todo 0 | |
| ℹ duration_ms 649.137542 | |
| ✖ failing tests: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from transformers import ChatGPT | |
| # ChatGPT modelini yükleyin | |
| model = ChatGPT("gpt3.5-turbo") | |
| # Başlamak için bir "sohbet" fonksiyonu oluşturun | |
| def sohbet_et(): | |
| while True: | |
| kullanici_girdisi = input("Kullanıcı: ") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for (let i = 1; i <= 100; i++) { | |
| if (i % 3 === 0 && i % 5 === 0) { | |
| console.log("FizzBuzz"); | |
| } else if (i % 3 === 0) { | |
| console.log("Fizz"); | |
| } else if (i % 5 === 0) { | |
| console.log("Buzz"); | |
| } else { | |
| console.log(i); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -maxdepth 1 -type d -exec sh -c '(cd {} && git reset --hard && git clean -fd && git submodule update --init --recursive && git pull && git fetch)' ';' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const users = [{ | |
| name:'mert', | |
| age:10 | |
| }, | |
| { | |
| name:'mert', | |
| age:29 | |
| }, | |
| { | |
| name:'ali', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const getUsers = () => { | |
| return new Promise(async(resolve,reject) => { // resolve:işlem başarılı buyur datan , reject:bir problem oluştu ben bunu reddettim | |
| const { data } = await axios('https://jsonplaceholder.typicode.com/users'); | |
| resolve(data); | |
| // reject('bir sorun oluştu!'); | |
| }) | |
| } | |
| const getPost = (post_id) => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const getComments = (number) => { | |
| return new Promise((resolve,reject) => { // resolve:işlem başarılı buyur datan , reject:bir problem oluştu ben bunu reddettim | |
| if(number === 1){ | |
| resolve({text:'selam'}); //number da döner obje de | |
| } | |
| reject('bir problem oldu'); | |
| }) | |
| } | |
| getComments(1) //getComments parametresi 1.satır |
NewerOlder