Skip to content

Instantly share code, notes, and snippets.

View Abidzar16's full-sized avatar

Abidzar M. G. Kurniawan Abidzar16

  • Jakarta
View GitHub Profile
@Abidzar16
Abidzar16 / jawaban_test.js
Created January 6, 2021 06:21
Jawaban untuk test backend 1 dengan menggunakan node.js, pola yang dipilih adalah gambar kiri atas (link soal : https://bit.ly/38fEUYT)
const readline = require("readline").createInterface({
input: process.stdin,
output: process.stdout,
});
readline.question("Insert a Number: ", (number) => {
for (i = 0; i < number; i++) {
a = 1;
b = 1;
c = 1;
@Abidzar16
Abidzar16 / DE_Python_2.py
Created August 14, 2020 05:22
DE_Python soal nomor 2
def pipeline(*funcs):
def helper(arg):
argCount = len(funcs)
if argCount > 0:
res = []
for elem in funcs:
if(len(res) > 0):
helper = elem(res.pop())
else:
helper = elem(arg)
@Abidzar16
Abidzar16 / DE_Python_1.py
Created August 14, 2020 05:01
DE_Python soal nomor 1
def unique_names(names1, names2):
names1 = list(dict.fromkeys(names1))
names2 = list(dict.fromkeys(names2))
names1.extend(x for x in names2 if x not in names1)
return names1
names1 = ["Ava", "Emma", "Olivia"]
names2 = ["Olivia", "Sophia", "Emma"]
print(unique_names(names1, names2)) # should print Ava, Emma, Olivia, Sophia
@Abidzar16
Abidzar16 / DE_SQL_2.sql
Created August 14, 2020 04:47
DE_SQL soal nomor 2
SELECT name
FROM employees
WHERE id NOT IN (SELECT managerId FROM employees WHERE managerId IS NOT NULL);
@Abidzar16
Abidzar16 / DE_SQL_1.sql
Last active August 14, 2020 04:47
DE_SQL soal nomor 1
SELECT DISTINCT userId, AVG(duration)
FROM sessions
GROUP BY userId
HAVING COUNT(userId) > 1;
@Abidzar16
Abidzar16 / SanFrancisco_Neighborhoods.json
Created January 26, 2019 17:09
Created on Cognitive Class Labs
<!DOCTYPE html><html><head><meta name="google" content="notranslate"><meta http-equiv="X-UA-Compatible" content="IE=edge;"><style>@font-face{font-family:'Roboto';font-style:italic;font-weight:400;src:local('Roboto Italic'),local('Roboto-Italic'),url(//fonts.gstatic.com/s/roboto/v18/KFOkCnqEu92Fr1Mu51xIIzc.ttf)format('truetype');}@font-face{font-family:'Roboto';font-style:normal;font-weight:300;src:local('Roboto Light'),local('Roboto-Light'),url(//fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmSU5fBBc9.ttf)format('truetype');}@font-face{font-family:'Roboto';font-style:normal;font-weight:400;src:local('Roboto Regular'),local('Roboto-Regular'),url(//fonts.gstatic.com/s/roboto/v18/KFOmCnqEu92Fr1Mu4mxP.ttf)format('truetype');}@font-face{font-family:'Roboto';font-style:normal;font-weight:700;src:local('Roboto Bold'),local('Roboto-Bold'),url(//fonts.gstatic.com/s/roboto/v18/KFOlCnqEu92Fr1MmWUlfBBc9.ttf)format('truetype');}</style><meta name="referrer" content="origin"><title>SanFrancisco_Neighborhoods.json - Google
@Abidzar16
Abidzar16 / blog_1.ipynb
Created January 21, 2019 05:33
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.