This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> |
This file contains 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 schedules = [{ | |
id: 'a', | |
fun() { | |
console.log('a dependency run!') | |
}, | |
depends_on: ['b', 'c'] | |
}, | |
{ | |
id: 'b', | |
fun() { |
This file contains 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 x = [[5, 3, 2], 5, 1, 99, [3, [4, 5]]] | |
const flatten = [] | |
function myFlat(arr){ | |
arr.forEach(i => { | |
if(Array.isArray(i)){ | |
myFlat(i) |
This file contains 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 people = [ | |
{ | |
name: 'akif', | |
status: 'full stack developer' | |
}, | |
{ | |
name: 'sebnem ferah ❤❤', | |
status: 'artist' | |
}, | |
] |
This file contains 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 mySplit = (str, part) => { | |
const arr = [] | |
let currentWorld = '' | |
for(let i = 0; i<str.length; i++){ | |
const current = str[i] | |
if(current !== part){ | |
currentWorld+=current | |
} | |
if(current === part || str.length - 1 === i){ | |
arr.push(currentWorld) |
This file contains 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 profile = { | |
name: 'peter', | |
age: 55, | |
kids: [{ | |
name: 'jil', | |
age: 23 | |
}, | |
{ | |
name: 'peter', | |
age: 1 |
This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Document</title> | |
<style> |
This file contains 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
function y(z){ | |
console.log(arguments.length) | |
} | |
var x = { | |
length: 5, | |
method: function(y){ | |
console.log(arguments.length) | |
} | |
} |
This file contains 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 cv = { | |
age: 20, | |
name: 'akif', | |
title: 'web developer', | |
contact: { | |
number: '0535-232-22-17' | |
}, | |
address: { | |
home: 'bornova', | |
scholl: { |
This file contains 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
version: '3.7' | |
services: | |
postgres: | |
image: postgres:latest | |
restart: always | |
environment: | |
- POSTGRES_USER=campusUsername | |
- POSTGRES_PASSWORD=campusPassword | |
- POSTGRES_DB=campus_db |