Skip to content

Instantly share code, notes, and snippets.

View stargt's full-sized avatar
πŸ”
Fried chicken

JH Lim stargt

πŸ”
Fried chicken
View GitHub Profile
@ljharb
ljharb / array_iteration_thoughts.md
Last active November 17, 2025 07:16
Array iteration methods summarized

Array Iteration

https://gist.github.com/ljharb/58faf1cfcb4e6808f74aae4ef7944cff

While attempting to explain JavaScript's reduce method on arrays, conceptually, I came up with the following - hopefully it's helpful; happy to tweak it if anyone has suggestions.

Intro

JavaScript Arrays have lots of built in methods on their prototype. Some of them mutate - ie, they change the underlying array in-place. Luckily, most of them do not - they instead return an entirely distinct array. Since arrays are conceptually a contiguous list of items, it helps code clarity and maintainability a lot to be able to operate on them in a "functional" way. (I'll also insist on referring to an array as a "list" - although in some languages, List is a native data type, in JS and this post, I'm referring to the concept. Everywhere I use the word "list" you can assume I'm talking about a JS Array) This means, to perform a single operation on the list as a whole ("atomically"), and to return a new list - thus making it mu

@Arinerron
Arinerron / permissions.txt
Last active December 24, 2025 16:13
A list of all Android permissions...
android.permission.ACCESS_ALL_DOWNLOADS
android.permission.ACCESS_BLUETOOTH_SHARE
android.permission.ACCESS_CACHE_FILESYSTEM
android.permission.ACCESS_CHECKIN_PROPERTIES
android.permission.ACCESS_CONTENT_PROVIDERS_EXTERNALLY
android.permission.ACCESS_DOWNLOAD_MANAGER
android.permission.ACCESS_DOWNLOAD_MANAGER_ADVANCED
android.permission.ACCESS_DRM_CERTIFICATES
android.permission.ACCESS_EPHEMERAL_APPS
android.permission.ACCESS_FM_RADIO
@jdmaturen
jdmaturen / company-ownership.md
Last active July 29, 2023 22:39
Who pays when startup employees keep their equity?

Who pays when startup employees keep their equity?

JD Maturen, 2016/07/05, San Francisco, CA

As has been much discussed, stock options as used today are not a practical or reliable way of compensating employees of fast growing startups. With an often high strike price, a large tax burden on execution due to AMT, and a 90 day execution window after leaving the company many share options are left unexecuted.

There have been a variety of proposed modifications to how equity is distributed to address these issues for individual employees. However, there hasn't been much discussion of how these modifications will change overall ownership dynamics of startups. In this post we'll dive into the situation as it stands today where there is very near 100% equity loss when employees leave companies pre-exit and then we'll look at what would happen if there were instead a 0% loss rate.

What we'll see is that employees gain nearly 3-fold, while both founders and investors – particularly early investors – get dilute

@nathan-osman
nathan-osman / win32.go
Last active December 30, 2025 19:01
Simple Windows GUI application written in Go
package main
import (
"log"
"syscall"
"unsafe"
)
var (
kernel32 = syscall.NewLazyDLL("kernel32.dll")
@stinger
stinger / Swift3Dates.swift
Last active July 21, 2025 07:30
Swift 3: Working with dates
//: # Swift 3: Working with dates
import Foundation
let date = Date()
let myLocale = Locale(identifier: "bg_BG")
//: ### Setting an application-wide `TimeZone`
//: Notice how we use if-let in case the abbreviation is wrong. It will fallback to the default timezone in that case.
if let myTimezone = TimeZone(abbreviation: "EEST") {
print("\(myTimezone.identifier)")
@haje01
haje01 / TensorFlow μ‹œμž‘ν•˜κΈ°.md
Last active November 22, 2025 10:00
TensorFlow μ‹œμž‘ν•˜κΈ°

ν…μ„œν”Œλ‘œμš° μ‹œμž‘ν•˜κΈ°

글쓴이: κΉ€μ •μ£Ό([email protected])

이 λ¬Έμ„œλŠ” ν…μ„œν”Œλ‘œμš° 곡식 νŽ˜μ΄μ§€ λ‚΄μš©μ„ λ°”νƒ•μœΌλ‘œ λ§Œλ“€μ–΄μ‘ŒμŠ΅λ‹ˆλ‹€.


μ†Œκ°œ

ν…μ„œν”Œλ‘œμš°(TensorFlow)λŠ” 기계 ν•™μŠ΅κ³Ό λ”₯λŸ¬λ‹μ„ μœ„ν•΄ κ΅¬κΈ€μ—μ„œ λ§Œλ“  μ˜€ν”ˆμ†ŒμŠ€ λΌμ΄λΈŒλŸ¬λ¦¬μž…λ‹ˆλ‹€. 데이터 ν”Œλ‘œμš° κ·Έλž˜ν”„(Data Flow Graph) 방식을 μ‚¬μš©ν•˜μ˜€μŠ΅λ‹ˆλ‹€.

@kosiara
kosiara / proguard-rules.pro
Created November 3, 2015 15:39
RxJava RxAndroid Proguard rules
#build.gradle
#
# compile 'io.reactivex:rxandroid:1.0.1'
# compile 'io.reactivex:rxjava:1.0.14'
# compile 'io.reactivex:rxjava-math:1.0.0'
# compile 'com.jakewharton.rxbinding:rxbinding:0.2.0'
# rxjava
-keep class rx.schedulers.Schedulers {
public static <methods>;
@edwardbeckett
edwardbeckett / idea64.exe.vmoptions
Last active March 22, 2024 20:18
Java 8 Intellij 64 JVM Options
-server
-Xms2g
-Xmx2g
-Xss16m
-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:ConcGCThreads=4
-XX:ReservedCodeCacheSize=128m
-XX:+AlwaysPreTouch
-XX:+TieredCompilation
@marocchino
marocchino / 094607.md
Last active July 19, 2022 14:25
ES6μ‹œλŒ€μ˜ JavaScript

ES6μ‹œλŒ€μ˜ JavaScript

μ•ˆλ…•ν•˜μ„Έμš”. μ‚¬μ›μ‚¬μ—…λΆ€μ˜ λ§ˆλ£¨μ•Όλ§ˆ@h13i32maruμž…λ‹ˆλ‹€. 졜근의 Web ν”„λ‘ νŠΈμ—”λ“œμ˜ λ³€ν™”λŠ” 맀우 κ²©λ ¬ν•΄μ„œ, 쑰금 λˆˆμ„ 땐 사이에 점점 μƒˆλ‘œμš΄ 것이 λ‚˜μ˜€κ³  μžˆλ”λΌκ΅¬μš”. 그런 κ²©λ ¬ν•œ 변화쀑 ν•˜λ‚˜κ°€ ES6μ΄λΌλŠ” μ°¨μ„ΈλŒ€ JavaScript의 μ‚¬μ–‘μž…λ‹ˆλ‹€. 이 ES6λŠ” ν˜„μž¬ μž¬μ •μ€‘μœΌλ‘œ μ§‘ν•„μ‹œμ μ—μ„œλŠ” Draft Rev31이 κ³΅κ°œλ˜μ–΄μžˆμŠ΅λ‹ˆλ‹€.

JavaScriptλŠ” ECMAScript(ECMA262)λΌλŠ” 사양을 기반으둜 κ΅¬ν˜„λ˜μ–΄μžˆμŠ΅λ‹ˆλ‹€. ν˜„μž¬ λͺ¨λ˜ν•œ Web λΈŒλΌμš°μ €λŠ” ECMAScript 5.1th Edition을 기반으둜 ν•œ JavaScriptμ‹€ν–‰ 엔진을 νƒ‘μž¬ν•˜κ³  μžˆμŠ΅λ‹ˆλ‹€. 그리고 λ‹€μŒ 버전인 ECMAScript 6th Edition이 ν˜„μž¬ μž¬μ •μ€‘μœΌλ‘œ, μ•½μΉ­μœΌλ‘œ ES6μ΄λΌλŠ” λͺ…칭이 μ‚¬μš©λ˜κ³  μžˆμŠ΅λ‹ˆλ‹€.