Skip to content

Instantly share code, notes, and snippets.

View clucle's full-sized avatar
:octocat:
ि०॰०ॢी https://www.linkedin.com/in/clucle/

clucle clucle

:octocat:
ि०॰०ॢी https://www.linkedin.com/in/clucle/
View GitHub Profile
@clucle
clucle / docker-compose.yaml
Created March 2, 2022 04:58
docker-compose mysql8
version: "3"
services:
test_database:
container_name: mysql8
image: mysql:8
environment:
MYSQL_DATABASE: testDB
MYSQL_ROOT_PASSWORD: 1234
MYSQL_ROOT_HOST: '%'
volumes:
WORKSPACENAME=$1
CHANGELIST=$2
P4="p4 -C utf8 -u username -P password"
describe=$(eval "$P4 -Ztag describe $CHANGELIST")
state="..."
index=0
array_depot_file=()
@clucle
clucle / Google Kaggle hackathon
Last active December 20, 2022 03:43
머신러닝용 임시 게시판
update team_b.my_train3 set ts_good = True WHERE trafficSource In ('web.whatsapp.com','voice.google.com', 'cse.google.com', 'apis.mail.yahoo.com', 'basecamp.com');
update team_b.my_train3 set ts_good = False WHERE trafficSource Not In ('web.whatsapp.com','voice.google.com', 'cse.google.com', 'apis.mail.yahoo.com', 'basecamp.com');
column 추가해주세요 ts_good
column 빼주세요 trafficCampaign
update team_b.my_train3 set th_category = '0' WHERE totalHits < 100000;
update team_b.my_train3 set th_category = '1' WHERE totalHits < 76;
update team_b.my_train3 set th_category = '2' WHERE totalHits < 26;
update team_b.my_train3 set th_category = '3' WHERE totalHits < 8;
@clucle
clucle / c++-enable_if-tester.cpp
Last active December 20, 2022 04:39
how enable if use
#include <iostream>
class A
{
public:
static constexpr bool dujin = true;
};
class B
{
@clucle
clucle / run-kafka.sh
Last active January 28, 2024 14:53
run kafka windows
~/kafka_2.13-3.0.0/bin/kafka-storage.sh random-uuid # hash
kafka-storage.sh format -t ${hash} -c ~/kafka_2.13-3.0.0/config/kraft/server.properties
kafka-server-start.sh ~/kafka_2.13-3.0.0/config/kraft/server.properties
## producer
kafka-console-producer.sh --bootstrap-server localhost:9092 --topic demo_java
# windows
kafka-storage.bat random-uuid
@clucle
clucle / algo-skel.cpp
Created May 7, 2024 08:13
algorithm-skel
#define _CRT_SECURE_NO_DEPRECATE
#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <climits>
#include <cmath>
#include <set>
#include <map>
#include <vector>