Skip to content

Instantly share code, notes, and snippets.

View rscarrera27's full-sized avatar
πŸ‘Š
Keep Going

Sunghyun Kim rscarrera27

πŸ‘Š
Keep Going
View GitHub Profile
@taemin-fp
taemin-fp / main.c
Last active July 9, 2020 00:31
kqueue example
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/event.h>
https://archive.is/llRty#selection-1131.0-1504.0
μš°μ„  κ΅­λ‚΄.
1.λ ˆμ˜€ν΄λ“œ. http://www.leopold.co.kr/
킀캑을 사면 본체λ₯Ό μ£ΌλŠ” κ΅­λ‚΄ 졜고의 ν‚€μΊ‘ 판맀 νšŒμ‚¬.
2. νŽ€ν‚€μŠ€. http://funkeys.kr/
λ°”λ°€λ‘œ, 더킀 ν‚€λ³΄λ“œ μœ ν†΅ νšŒμ‚¬. ν‚€μΊ‘ μ„ΈνŠΈλ„ 판맀 쀑.
기본적으둜 μΆ©λΆ„ν•œ κ°’μ–΄μΉ˜λŠ” ν•˜λŠ” λ“―.
@hazcod
hazcod / wgcf.sh
Created October 16, 2019 06:10
Connect to Cloudflare Warp from macOS.
#!/usr/bin/env bash
set -euo pipefail
shopt -s inherit_errexit 2>/dev/null || true
# this script will connect macOS to Cloudflare Warp using Wireguard
# note: this is *absolutely not* an official client from Cloudflare
# Copyright (C) 2019 Jay Freeman (saurik)
# Zero Clause BSD license {{{

Foreward

This document was originally written several years ago. At the time I was working as an execution core verification engineer at Arm. The following points are coloured heavily by working in and around the execution cores of various processors. Apply a pinch of salt; points contain varying degrees of opinion.

It is still my opinion that RISC-V could be much better designed; though I will also say that if I was building a 32 or 64-bit CPU today I'd likely implement the architecture to benefit from the existing tooling.

Mostly based upon the RISC-V ISA spec v2.0. Some updates have been made for v2.2

Original Foreword: Some Opinion

The RISC-V ISA has pursued minimalism to a fault. There is a large emphasis on minimizing instruction count, normalizing encoding, etc. This pursuit of minimalism has resulted in false orthogonalities (such as reusing the same instruction for branches, calls and returns) and a requirement for superfluous instructions which impacts code density both in terms of size and

@darjeeling
darjeeling / personal--CFP-GUIDE.md
Last active April 17, 2019 10:22
μ§€κ·Ήνžˆ 개인적인 파이콘 λ°œν‘œμ— μ’‹μ„λ§Œν•œ μ£Όμ œλ“€ !

파이콘 λ°œν‘œλŠ” λˆ„κ΅¬λ‚˜ ν• μˆ˜ μžˆμŠ΅λ‹ˆλ‹€.

κ°œλ°œμžκ°€ μ•„λ‹ˆμ–΄λ„ 되고! κ°œλ°œμžμ—¬λ„ 되고!
남성이 μ•„λ‹ˆμ–΄λ„ 되고! 또 λ‹€λ₯Έ 성이어도 되고!
λ‚˜μ΄κ°€ λ§Žμ§€ μ•Šμ•„λ„ 되고! λ§Žμ•„λ„ 되고!
ν•œκ΅­μ–΄μ—¬λ„ 되고! μ˜μ–΄λ„ 되고! \ λ‹€λ§Œ νŒŒμ΄μ¬μ„ μ‚¬μš©ν•œ κ²½ν—˜μ„ 남과 λ‚˜λˆ„κ³  μ‹Άλ‹€λŠ” 마음 이면 λ‹€ κ°€λŠ₯ν•©λ‹ˆλ‹€!!
λ°œν‘œμžλŠ” 첫 λ°œν‘œλ₯Ό ν•΄μ•Ό λ‹€μŒμ—λŠ” μ΅μˆ™ν•œ λ°œν‘œλ₯Ό ν• μˆ˜ 있겠죠?
μ‚¬λžŒλ“€μ„ λ°°λ €ν•΄μ„œ μ€€λΉ„λŠ” ν•΄μ•Όκ² μ§€λ§Œ μ—¬λŸ¬λΆ„μ΄ 첫 λ°œν‘œλΌκ³  포기할 ν•„μš”λŠ” μ—†μŠ΅λ‹ˆλ‹€. λˆ„κ΅¬λ‚˜ μ²˜μŒμ€ μžˆμœΌλ‹ˆκΉŒμš”.

@luncliff
luncliff / cmake-tutorial.md
Last active May 5, 2025 06:12
CMake ν• λ•Œ μͺΌμ˜€μ˜€κΈˆ 도움이 λ˜λŠ” λ¬Έμ„œ

CMakeλ₯Ό μ™œ μ“°λŠ”κ±°μ£ ?
쒋은 νˆ΄μ€ Visual Studio λΏμž…λ‹ˆλ‹€. κ·Έ μ΄μ™Έμ—λŠ” μ „λΆ€ 사도(ι‚ͺ道)μž…λ‹ˆλ‹€ 사도! - μž‘μ„±μž

주의

  • 이 λ¬Έμ„œλŠ” CMakeλ₯Ό μ£Όκ΄€μ μœΌλ‘œ μ„œμˆ ν•©λ‹ˆλ‹€
  • 이 λ¬Έμ„œλ₯Ό 톡해 CMakeλ₯Ό μ‹œμž‘ν•˜κΈ°μ—” μ ν•©ν•˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€
    https://cgold.readthedocs.io/en/latest/ 3.1 μ±•ν„°κΉŒμ§€ 따라해본 이후 기본사항듀을 μ†μ„±μœΌλ‘œ μ΅νžˆλŠ” 것을 λ•κΈ°μœ„ν•œ 보쑰자료둜써 μž‘μ„±λ˜μ—ˆμŠ΅λ‹ˆλ‹€
@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active April 30, 2025 12:33
How to create an HTTPS certificate for localhost domains

How to create an HTTPS certificate for localhost domains

This focuses on generating the certificates for loading local virtual hosts hosted on your computer, for development only.

Do not use self-signed certificates in production ! For online certificates, use Let's Encrypt instead (tutorial).

@whenyd
whenyd / inception_v1
Created February 10, 2018 09:13
Keras implementation of inception v1
from keras.layers import Conv2D, MaxPooling2D, Input, concatenate
def inception(input,
filters_1x1,
filters_3x3_reduce, filters_3x3,
filters_5x5_reduce, filters_5x5,
filters_pool_proj):
"""
:param input:
@WKBae
WKBae / mnist-tester.html
Last active November 9, 2017 13:19
MNIST tester using Flask
<html>
<head><title>MNIST Tester</title></head>
<style>
#number-pad {
padding: 0;
margin: 0;
border-collapse: collapse;
border: 1px solid #000;
}
#number-pad tr {
@anabastos
anabastos / solidIsFp.md
Last active October 16, 2022 22:09
Solid is FP - Luiz Stangarlin

SOLID is FP!

So, I decided to write a little thing, only to practice writing, it's about SOLID being compared between class-based-OO and FP, and there will be grammar errors and there will be a lot of formatting errors, 'bear' with me as I type this as fast as I can. Also correct if I'm wrong. Warning, wall of text in English.

Single responsibility principle

" a class should have only a single responsibility "

A pure function is something with a single responsibility, turning its input into an output. What could be simpler?.