Skip to content

Instantly share code, notes, and snippets.

View AgungPambudi's full-sized avatar
😃
Learning by doing

Agung Pambudi AgungPambudi

😃
Learning by doing
View GitHub Profile
@AgungPambudi
AgungPambudi / panduan-github
Last active August 8, 2022 14:02
Dokumen cara penggunaan Github Data Science Indonesia secara umum
# Panduan Penggunaan Git
## Mengunduh Repository
Unduh repository ke dalam komputer menggunakan perintah `git clone`. Url
repository dapat dilihat di dalam repository yang diinginkan.
```
git clone <url repository> <folder tujuan>
```
/*
file: MySQL Common Table Expression (CTE).sql
language: SQL
author: mail@agungpambudi.com Agung Pambudi
description: SQL Advanced Crypto
Enter your query below.
Please append a semicolon ";" at the end of the query
*/
"""
file: Football Competition Winner's Goals.py
language: python3
author: mail@agungpambudi.com Agung Pambudi
description: REST API: Football Competition Winner's Goals
"""
#!/bin/python3
#
# Complete the 'getWinnerTotalGoals' function below.
@AgungPambudi
AgungPambudi / automatically-create-requirements.txt-on-python
Last active July 21, 2022 19:21
Given the python source code directory is it possible to create requirements.txt automatically from the import section
$ pip3 freeze > requirements.txt # Python3
$ pip freeze > requirements.txt # Python2
# if you want to list only packages used inside a virtualenv use:
$ source <myvenvname>/bin/activate # or in Windows cd <myenvname>\Scripts\ then type activate.bat Enter
$ pip freeze -l > requirements.txt
# install packages using pip according to the requirements.txt file from a local directory
@AgungPambudi
AgungPambudi / python-data-processing-automation-upload-excel-to-firestore.py
Last active December 30, 2021 07:54
data migration scripts that migrates data from excel files to an actual Firestore Collections database
# pip install firebase-admin pandas xlrd==1.2.0
import firebase_admin
from firebase_admin import credentials
from firebase_admin import firestore
from xlrd import open_workbook
credential_info = credentials.Certificate("path/to/service_account.json")
firebase_admin.initialize_app(credential_info)
#author : Agung Pambudi
#email : mail@agungpambudi.com
#version : 0.4
#
#
#==============================================================================
# _ _ _
# ___ ___ _ _ ___ ___ ___ ___ _____| |_ _ _ _| |_| ___ ___ _____
#| .'| . | | | | . | . | .'| | . | | | . | |_| _| . | |
#|__,|_ |___|_|_|_ | _|__,|_|_|_|___|___|___|_|_|___|___|_|_|_|
#author : Agung Pambudi
#email : mail@agungpambudi.com
#version : 0.2
#
#
#==============================================================================
# _ _ _
# ___ ___ _ _ ___ ___ ___ ___ _____| |_ _ _ _| |_| ___ ___ _____
#| .'| . | | | | . | . | .'| | . | | | . | |_| _| . | |
#|__,|_ |___|_|_|_ | _|__,|_|_|_|___|___|___|_|_|___|___|_|_|_|
@AgungPambudi
AgungPambudi / planogram-analysis-looping.php
Last active August 16, 2021 04:33
Simple logic with php loop
#author : Agung Pambudi
#email : mail@agungpambudi.com
#version : 0.2
#
#KyusuMart Planogram Analysis
#==============================================================================
# _ _ _
# ___ ___ _ _ ___ ___ ___ ___ _____| |_ _ _ _| |_| ___ ___ _____
#| .'| . | | | | . | . | .'| | . | | | . | |_| _| . | |
#|__,|_ |___|_|_|_ | _|__,|_|_|_|___|___|___|_|_|___|___|_|_|_|
#author : Agung Pambudi
#email : mail@agungpambudi.com
#version : 0.1
#
#KyusuMart Planogram Analysis
#==============================================================================
# _ _ _
# ___ ___ _ _ ___ ___ ___ ___ _____| |_ _ _ _| |_| ___ ___ _____
#| .'| . | | | | . | . | .'| | . | | | . | |_| _| . | |
#|__,|_ |___|_|_|_ | _|__,|_|_|_|___|___|___|_|_|___|___|_|_|_|
#author : Agung Pambudi
#email : mail@agungpambudi.com
#version : 0.1
#==============================================================================
# _ _ _
# ___ ___ _ _ ___ ___ ___ ___ _____| |_ _ _ _| |_| ___ ___ _____
#| .'| . | | | | . | . | .'| | . | | | . | |_| _| . | |
#|__,|_ |___|_|_|_ | _|__,|_|_|_|___|___|___|_|_|___|___|_|_|_|
# |___| |___|_|