Skip to content

Instantly share code, notes, and snippets.

View ilhamije's full-sized avatar
🏠
Working from home, as always.

Ilham Akbar ilhamije

🏠
Working from home, as always.
View GitHub Profile
@ilhamije
ilhamije / link-tutorial-bookmark.md
Created August 30, 2022 02:22
My browser bookmark of some tutorials
COMPANY_SCHEMA = {
'uid': {'type': 'string', 'required': True},
'company_website': {'type': 'string', "required": True},
'company_name': {'type': 'string', 'required': True, 'coerce': str.title},
'company_name_alias': {'type': 'list', 'schema': {'type': 'string'}},
'company_acronym': {'type': 'string'},
'ticker_symbols': {
'type': 'list',
'schema': {
'type': 'dict',
@ilhamije
ilhamije / jawaban_DE_Python_2.py
Created April 26, 2020 03:27
JDS-ilham-DE-Python-2
from functools import reduce
pipeline = [lambda x: x * 3, lambda x: x + 1, lambda x: x / 2]
val = reduce(lambda x, f: f(x), pipeline, 3)
print(val)
@ilhamije
ilhamije / jawaban_DE_Python_1.py
Created April 26, 2020 03:24
JDS-ilham-DE-Python-1
def unique_names(names1, names2):
names1_set = set(names1)
names2_set = set(names2)
return list(names1_set.union(names2_set))
names1 = ["Ava", "Emma", "Olivia"]
names2 = ["Olivia", "Sophia", "Emma"]
print(unique_names(names1, names2))
@ilhamije
ilhamije / jawaban_DE_SQL_2.sql
Created April 26, 2020 03:19
JDS-ilham-DE-SQL-2
SELECT name
FROM employees
WHERE id NOT IN (SELECT managerId FROM employees WHERE managerId IS NOT NULL);
@ilhamije
ilhamije / jawaban_DE_SQL_1.sql
Created April 26, 2020 03:14
JDS-ilham-DE-SQL-1
SELECT userId, avg(duration)
FROM sessions
GROUP BY userid HAVING COUNT(userid) > 1;

Keybase proof

I hereby claim:

  • I am ilhamije on github.
  • I am ilhamije (https://keybase.io/ilhamije) on keybase.
  • I have a public key ASC9TMJN7dFWKilxypbX1aW7WwTyIRAP5Ga9K4ScMdT9two

To claim this, I am signing this object: