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 / JSONArrayParse.java
Created May 24, 2017 04:23
JSON Array Parsing
import org.json.simple.JSONArray;
import org.json.simple.JSONObject;
import org.json.simple.parser.JSONParser;
public class Main {
public static void main(String[] args) {
String str = "[{'json_type_1'},{'json_type_2'},{'json_type_3'}]"
JSONParser parser = new JSONParser();
JSONArray jsonArray = new JSONArray();
try {
@clucle
clucle / client.c
Created September 20, 2017 18:02
get input assignment
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv)
{
int sockfd, n;
char sendline[1000];
@clucle
clucle / unity_WebSocketSharp_Client.cs
Last active October 12, 2017 13:09
Unity WebSockSharp Client
using System.Collections;
using System.Collections.Generic;
using WebSocketSharp;
using UnityEngine;
public class webSockManager : MonoBehaviour {
public static webSockManager instance = null;
WebSocket ws = null;
#include <stdio.h>
struct node {
int weight;
};
struct PriorityQueue {
struct node n[65];
int cnt;
};
@clucle
clucle / resume_until_2017.md
Last active September 5, 2018 16:23
resume_until_2017

Introduce

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

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

하고 싶은 것

게임 서버, 인프라

@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 / session1.md
Created August 4, 2018 09:00
C++ Korea 제4회 세미나 정리

처음 만나는 Modern C++의 세계

windows subsystem for linux

윈도우 환경에서 linux로 test docker, cuda 는 잘 안된다. linux 용 windows 하위 시스템 (windows 기능) windows 국가또는 지역, 지역설정에서 utf-8 charset 설정 가능 (보안프로그램이 동작이 잘 안할 수 있다.) Linux (export LC_ALL, LANG = ko_KR.UTF-8) curl은 대부분의 protocol을 지원한다.

@clucle
clucle / boto3_auth.py
Last active August 26, 2021 14:59
boto3 auth flow
import os
from flask import Flask, render_template, redirect, url_for, request
import boto3
from botocore.exceptions import ClientError
app = Flask(__name__)
APP_CLIENT_ID = os.getenv('COGNITO_CLIENT_ID')
@app.route('/')
@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: