Skip to content

Instantly share code, notes, and snippets.

View cho0h5's full-sized avatar
🤯

Youngho Cho cho0h5

🤯
  • Chung-Ang University
  • Korea
  • 05:30 (UTC +09:00)
View GitHub Profile
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#define BUFFER_SIZE 1024
typedef struct
{
int fd;
#include <vector>
#include <queue>
#include <unordered_map>
#include <cstdio>
using namespace std;
// -------- structures --------
// -------- global variables --------
[user]
email = [email protected]
name = Youngho Cho
[branch]
sort = -committerdate
[init]
defaultBranch = main
[diff]
algorithm = histogram
[push]
@cho0h5
cho0h5 / launch.json
Created February 28, 2025 04:31
VSCode Debug Setting in MacOS
{
"version": "0.2.0",
"configurations": [
{
"name": "My Debug",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/a.out",
"args": [],
"stopAtEntry": false,
@cho0h5
cho0h5 / .vimrc
Last active March 19, 2025 10:11
" curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
" https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
call plug#begin()
Plug 'tpope/vim-sensible'
Plug 'vim-airline/vim-airline'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'arcticicestudio/nord-vim'
Plug 'mhinz/vim-startify'
with import <nixpkgs> {};
vim.customize {
name = "vim";
vimrcConfig.customRC = ''
set nocompatible
set backspace=indent,eol,start
syntax on
// gcc -lcurl curl_without_error_handling.c && ./a.out
#include <curl/curl.h>
int main() {
CURL *curl = curl_easy_init();
curl_easy_setopt(curl, CURLOPT_URL, "https://ziglang.org");
curl_easy_perform(curl);
curl_easy_cleanup(curl);
return 0;
#include "pico/stdlib.h"
#include "hardware/gpio.h"
const uint LED_PIN = 16;
const uint BUTTON_PIN = 15;
int init_pin() {
gpio_init(LED_PIN);
gpio_set_dir(LED_PIN, GPIO_OUT);
gpio_init(BUTTON_PIN);
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WiFiMulti.h>
#include <ESP8266HTTPClient.h>
#include <WiFiClient.h>
#define SSID "your-ssid"
#define PASSWORD "your-passwd"
#define INFLUXDB_URL "http://localhost:8086/api/v2/write?org=your-org&bucket=your-bucket"