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 / 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('/')
#include <stdio.h>
struct node {
int weight;
};
struct PriorityQueue {
struct node n[65];
int cnt;
};
@clucle
clucle / UnityBuildDlcForMobileBuildTarget.cs
Last active February 13, 2025 03:04
Unity Build DLC for Mobile (Android, iOS, OSX)
using UnityEditor;
using UnityEngine;
using System.IO;
public class BuildAsssetBundles : MonoBehaviour {
[MenuItem ("Bundles/Build AssetBundles")]
static void BuildAllAssetBundles () {
var path = "./AssetsBundle/default";
if (!Directory.Exists(path)) {
Directory.CreateDirectory(path);
@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;
@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 / 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 {