Skip to content

Instantly share code, notes, and snippets.

View superhuman54's full-sized avatar
🎯
Focusing

Kihwan Kim superhuman54

🎯
Focusing
View GitHub Profile

20181108 SpringOne Tour - Seoul, By Pivotal

ν•œλˆˆμ— λ³΄λŠ” 정리

  • 코틀린을 μ΄μš©ν•΄λ„ μŠ€ν”„λ§ ν”„λ ˆμž„μ›Œν¬λŠ” 잘 λ™μž‘ν•œλ‹€λŠ” 것

    • μ½”λ“œλ„ κ°„κ²°ν•˜κ³ 

    • λ§₯뢁은 μ˜μ–΄λ‘œλ§Œ μ½”λ”©ν•˜λ©΄ λΉ λ₯΄κ΅°. ν•œμ˜ λ³€ν™˜ λΉ„μš©μ€ κ½€ λΉ„μ‹Έλ‹€.

  • ν”Όλ³΄νƒˆμ—μ„œ 'ν΄λΌμš°λ“œ λ„€μ΄ν‹°λΈŒ(Cloud Native)' 에닀가 'λ¦¬μ•‘ν‹°λΈŒ(Reactive)' λ₯Ό μ–Ήμ—ˆκ³ 

@ikhoon
ikhoon / Contravariant.scala
Last active June 10, 2022 05:59
μ™œ ν•¨μˆ˜μ˜ input은 λ°˜κ³΅λ³€μ„±μΈκ°€?
// https://twitter.github.io/scala_school/type-basics.html
// νŠΈμœ„ν„° 슀칼라 μŠ€μΏ¨μ— λ‚˜μ˜€λŠ” 자료ꡬ쑰λ₯Ό ν™œμš©ν•΄λ³΄κ² λ‹€.
class Animal { val sound = "rustle" }
class Bird extends Animal { override val sound = "call" }
class Chicken extends Bird { override val sound = "cluck" }
class Duck extends Bird { override val sound = "duck" }
def foo(tweet: Bird => String) = {
tweet(new Bird)
@smartnose
smartnose / spark-internals-through-code.md
Last active October 29, 2024 06:03
Spark internal notes

Spark internals through code

Nothing gives you more detail about spark internals than actually reading it source code. In addition, you get to learn many design techniques and improve your scala coding skills. These are the random notes I make while reading the spark code. The best way to comprehend the notes is to load spark code into an IDE, e.g. IntelliJ, and navigate the code on the side.

Genesis - creation of a spark cluster

The scripts for creating a spark cluster are: start-master.sh and start-slave.sh. Read them carefully, and you can see that both scripts are very similar except the values for $CLASS variable. For start-master.sh, the value is CLASS="org.apache.spark.deploy.master.Master", while the value for start-slave.sh is shown below with more context.

# NOTE: This exact class name is matched downstream by SparkSubmit.
@jesstelford
jesstelford / event-loop.md
Last active December 5, 2024 02:05
What is the JS Event Loop and Call Stack?

Regular Event Loop

This shows the execution order given JavaScript's Call Stack, Event Loop, and any asynchronous APIs provided in the JS execution environment (in this example; Web APIs in a Browser environment)


Given the code

@stephenll
stephenll / .bash_profile
Created February 2, 2014 02:45 — forked from jernejcic/.bash_profile
.bash_profile file on Mac OS X
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases.
# Much of this was originally copied from:
# http://natelandau.com/my-mac-osx-bash_profile/
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
# 3. File and Folder Management