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 / 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>
@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 / 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 / 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;
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 / 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:
@clucle
clucle / save.js
Last active May 24, 2024 14:27
pure js save text and json object to file
function saveTextToFile() {
const saveText = "tmp";
// file setting
const text = saveText;
const name = "sample.json";
const type = "text/plain";
// create file
const a = document.createElement("a");
@clucle
clucle / append_js.js
Created December 30, 2018 04:02
append jquery cdn
var jq = document.createElement('script');
jq.src = "//ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
/* test */
/*
for (var i = 1; i < 18; i++) {
var btn = $( "input:radio[name='a" + i + "']" )
btn[0].checked=true;
}
@clucle
clucle / resume_until_2017.md
Last active September 5, 2018 16:23
resume_until_2017

Introduce

처음 시작은 게임 클라이언트 개발자를 꿈꾸며 개발을 시작하였습니다.

지금은 게임 뿐 아니라 다른 분야도 공부하고 있습니다.

하고 싶은 것

게임 서버, 인프라