Skip to content

Instantly share code, notes, and snippets.

View luthfianto's full-sized avatar

Rizky Luthfianto luthfianto

View GitHub Profile
version: '3'
services:
clickhouse-server:
image: clickhouse/clickhouse-server
container_name: clickhouse-server
volumes:
# - ./config.xml:/etc/clickhouse-server/config.xml
- ./data:/var/lib/clickhouse
ports:
- "8123:8123" # HTTP port
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 10 columns, instead of 6 in line 7.
Display Name Name State Start Mode Service Type Path Error Control Start Name Tag ID
AllJoyn Router Service AJRouter Stopped Disabled Share Process c:\windows\system32\svchost.exe -k localservicenetworkrestricted -p Normal NT AUTHORITY\LocalService 0
Application Layer Gateway Service ALG Stopped Disabled Own Process c:\windows\system32\alg.exe Normal NT AUTHORITY\LocalService 0
Application Identity AppIDSvc Stopped Manual Share Process c:\windows\system32\svchost.exe -k localservicenetworkrestricted -p Normal NT Authority\LocalService 0
Application Information Appinfo Running Manual Share Process c:\windows\system32\svchost.exe -k netsvcs -p Normal LocalSystem 0
App Readiness AppReadiness Stopped Manual Share Process c:\windows\system32\svchost.exe -k appreadiness -p Normal LocalSystem 0
AppX Deployment Service (AppXSVC) AppXSvc Running Manual Share Process c:\windows\system32\svchost.exe -k wsappx -p Normal LocalSystem 0
Windows Audio Endpoint Builder AudioEndpointBuilder Running Auto Share Process c:
{
"user": {
"id": 2,
"age" : 23
},
"courses": [
{
"id": 2,
"skills": ["coding", "python"],
"tags": []
L
e|--------------------------------7-7---7--------------------------|
B|9-9-7-9-----------5-7-9-7-5-7-9-----9-------------5-7-9-7-5-7-5--|
G|-----------------------------------------------------------------|
D|-----------------------------------------------------------------|
A|-----------------------------------------------------------------|
E|-----------------------------------------------------------------|
L
e|-----------------------------------------------------------------|
L
e|--------------------------------7-7---7--------------------------|
B|9-9-7-9-----------5-7-9-7-5-7-9-----9-------------5-7-9-7-5-7-5--|
G|-----------------------------------------------------------------|
D|-----------------------------------------------------------------|
A|-----------------------------------------------------------------|
E|-----------------------------------------------------------------|
L
e|-----------------------------------------------------------------|
DF_COLUMN_NAME_DEALER = "Group Dealer Code"
## Formula
def f_RS_n(stock_nm1, distplan_n, target_n, target_np1):
def f_stock_n(stock_nm1, distplan_n, target_n):
return stock_nm1 + distplan_n - target_n
def _RS_n(stock_n, target_np1):
return stock_n / np.where(target_np1==0,1, target_np1)
import urllib
import asyncio
loop = asyncio.get_event_loop()
import pandas as pd
df=pd.read_csv("ktp-npwp-o.csv"); df.head()
async def aaa(row):
filename=row.image_url.split("/")[-1]
folder_name= row.image_type.lower()
/**
*
* @param {unknown[]} arr
* @return {unknown[]}
*/
function mergeSort(arr) {
if (arr.length === 1) {
return arr;
}
const sqlite3 = require("sqlite3")
class SqliteDF {
table: any;
created: boolean;
con: any;
max_index: number;
_group_cols: any;
verbose: boolean;
_cache: any;
console.error(e);
let { message } = e;
if (e.sqlMessage) {
message = e.sqlMessage.split(" for")[0];
}
throw new Error(message);