Skip to content

Commit b2efd2c

Browse files
committed
more approvals
1 parent 7ec88c1 commit b2efd2c

27 files changed

+1582
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
async function fetchWithRetry(url, maxRetries = 3) {
2+
for (let attempt = 0; attempt < maxRetries; attempt++) {
3+
try {
4+
return await fetch(url);
5+
} catch (error) {
6+
if (attempt === maxRetries - 1) throw error;
7+
await new Promise(resolve => setTimeout(resolve, <<<AUTOCOMPLETE_HERE>>>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
function test() {
2+
console.log('hello'); <<<AUTOCOMPLETE_HERE>>>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
const arr = [1, 2, 3]; <<<AUTOCOMPLETE_HERE>>>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
const x = 42; <<<AUTOCOMPLETE_HERE>>>
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class User
2+
def initialize(username, email, role)
3+
@username = username
4+
@email = <<<AUTOCOMPLETE_HERE>>>
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
class Shape {
2+
area() {
3+
return 0;
4+
}
5+
}
6+
7+
class Rectangle extends Shape {
8+
constructor(width, height) {
9+
super();
10+
this.width = width;
11+
this.height = height;
12+
}
13+
14+
area() {
15+
return <<<AUTOCOMPLETE_HERE>>>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const creditConfig = {
2+
credit_category: 'credits',
3+
description: 'Free credits as a reward',
4+
amount_usd: 5, // inlined from FREE CREDITS
5+
is_idempotent: true,
6+
7+
is_idempotent: true,
8+
expiry: "2 months",
9+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
for (let i = 0; i < 10; i++) {
2+
// loop body
3+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const x = 10;
2+
if (x > 5) {
3+
// Your code here
4+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
x = 10
2+
if x > 5
3+
// Your code here

0 commit comments

Comments
 (0)