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
@CarlosLanderas
CarlosLanderas / aExerciseSolutions.MD
Last active February 4, 2024 07:49
A Tour of Go (https://tour.golang.org) - Exercise Solutions
@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?.

@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 {
@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:
@cecilemuller
cecilemuller / 2019-https-localhost.md
Last active May 21, 2025 10:04
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).

@luncliff
luncliff / cmake-tutorial.md
Last active May 20, 2025 04:36
CMake ํ• ๋•Œ ์ชผ์˜ค์˜ค๊ธˆ ๋„์›€์ด ๋˜๋Š” ๋ฌธ์„œ

CMake๋ฅผ ์™œ ์“ฐ๋Š”๊ฑฐ์ฃ ?
์ข‹์€ ํˆด์€ Visual Studio ๋ฟ์ž…๋‹ˆ๋‹ค. ๊ทธ ์ด์™ธ์—๋Š” ์ „๋ถ€ ์‚ฌ๋„(้‚ช้“)์ž…๋‹ˆ๋‹ค ์‚ฌ๋„! - ์ž‘์„ฑ์ž

์ฃผ์˜

  • ์ด ๋ฌธ์„œ๋Š” CMake๋ฅผ ์ฃผ๊ด€์ ์œผ๋กœ ์„œ์ˆ ํ•ฉ๋‹ˆ๋‹ค
  • ์ด ๋ฌธ์„œ๋ฅผ ํ†ตํ•ด CMake๋ฅผ ์‹œ์ž‘ํ•˜๊ธฐ์—” ์ ํ•ฉํ•˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค
    https://cgold.readthedocs.io/en/latest/ 3.1 ์ฑ•ํ„ฐ๊นŒ์ง€ ๋”ฐ๋ผํ•ด๋ณธ ์ดํ›„ ๊ธฐ๋ณธ์‚ฌํ•ญ๋“ค์„ ์†์„ฑ์œผ๋กœ ์ตํžˆ๋Š” ๊ฒƒ์„ ๋•๊ธฐ์œ„ํ•œ ๋ณด์กฐ์ž๋ฃŒ๋กœ์จ ์ž‘์„ฑ๋˜์—ˆ์Šต๋‹ˆ๋‹ค
@darjeeling
darjeeling / personal--CFP-GUIDE.md
Last active April 17, 2019 10:22
์ง€๊ทนํžˆ ๊ฐœ์ธ์ ์ธ ํŒŒ์ด์ฝ˜ ๋ฐœํ‘œ์— ์ข‹์„๋งŒํ•œ ์ฃผ์ œ๋“ค !

ํŒŒ์ด์ฝ˜ ๋ฐœํ‘œ๋Š” ๋ˆ„๊ตฌ๋‚˜ ํ• ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๊ฐœ๋ฐœ์ž๊ฐ€ ์•„๋‹ˆ์–ด๋„ ๋˜๊ณ ! ๊ฐœ๋ฐœ์ž์—ฌ๋„ ๋˜๊ณ !
๋‚จ์„ฑ์ด ์•„๋‹ˆ์–ด๋„ ๋˜๊ณ ! ๋˜ ๋‹ค๋ฅธ ์„ฑ์ด์–ด๋„ ๋˜๊ณ !
๋‚˜์ด๊ฐ€ ๋งŽ์ง€ ์•Š์•„๋„ ๋˜๊ณ ! ๋งŽ์•„๋„ ๋˜๊ณ !
ํ•œ๊ตญ์–ด์—ฌ๋„ ๋˜๊ณ ! ์˜์–ด๋„ ๋˜๊ณ ! \ ๋‹ค๋งŒ ํŒŒ์ด์ฌ์„ ์‚ฌ์šฉํ•œ ๊ฒฝํ—˜์„ ๋‚จ๊ณผ ๋‚˜๋ˆ„๊ณ  ์‹ถ๋‹ค๋Š” ๋งˆ์Œ ์ด๋ฉด ๋‹ค ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค!!
๋ฐœํ‘œ์ž๋Š” ์ฒซ ๋ฐœํ‘œ๋ฅผ ํ•ด์•ผ ๋‹ค์Œ์—๋Š” ์ต์ˆ™ํ•œ ๋ฐœํ‘œ๋ฅผ ํ• ์ˆ˜ ์žˆ๊ฒ ์ฃ ?
์‚ฌ๋žŒ๋“ค์„ ๋ฐฐ๋ คํ•ด์„œ ์ค€๋น„๋Š” ํ•ด์•ผ๊ฒ ์ง€๋งŒ ์—ฌ๋Ÿฌ๋ถ„์ด ์ฒซ ๋ฐœํ‘œ๋ผ๊ณ  ํฌ๊ธฐํ•  ํ•„์š”๋Š” ์—†์Šต๋‹ˆ๋‹ค. ๋ˆ„๊ตฌ๋‚˜ ์ฒ˜์Œ์€ ์žˆ์œผ๋‹ˆ๊นŒ์š”.

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

@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 {{{
https://archive.is/llRty#selection-1131.0-1504.0
์šฐ์„  ๊ตญ๋‚ด.
1.๋ ˆ์˜คํด๋“œ. http://www.leopold.co.kr/
ํ‚ค์บก์„ ์‚ฌ๋ฉด ๋ณธ์ฒด๋ฅผ ์ฃผ๋Š” ๊ตญ๋‚ด ์ตœ๊ณ ์˜ ํ‚ค์บก ํŒ๋งค ํšŒ์‚ฌ.
2. ํŽ€ํ‚ค์Šค. http://funkeys.kr/
๋ฐ”๋ฐ€๋กœ, ๋”ํ‚ค ํ‚ค๋ณด๋“œ ์œ ํ†ต ํšŒ์‚ฌ. ํ‚ค์บก ์„ธํŠธ๋„ ํŒ๋งค ์ค‘.
๊ธฐ๋ณธ์ ์œผ๋กœ ์ถฉ๋ถ„ํ•œ ๊ฐ’์–ด์น˜๋Š” ํ•˜๋Š” ๋“ฏ.