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
@staltz
staltz / introrx.md
Last active April 1, 2026 14:21
The introduction to Reactive Programming you've been missing
@lezorich
lezorich / PersistentCookieStore.java
Last active September 20, 2022 02:23
Android basic persistent cookie manager for Volley. This cookie store wraps the default CookieManager store to store the session cookie. It use's Gson to json serialize the cookie and store it as a json string in SharedPreferences.
/*
* The MIT License (MIT)
*
* Copyright (c) 2015 Lukas Zorich
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
@ZkHaider
ZkHaider / expand-collapse.java
Last active January 30, 2022 02:31
Simple Expand / Collapse RecyclerView Item
public static class ExampleViewHolder extends RecyclerView.ViewHolder
implements View.OnClickListener {
private int originalHeight = 0;
private boolean isViewExpanded = false;
private YourCustomView yourCustomView
public ExampleViewHolder(View v) {
super(v);
v.setOnClickListener(this);

2015-01-29 Unofficial Relay FAQ

Compilation of questions and answers about Relay from React.js Conf.

Disclaimer: I work on Relay at Facebook. Relay is a complex system on which we're iterating aggressively. I'll do my best here to provide accurate, useful answers, but the details are subject to change. I may also be wrong. Feedback and additional questions are welcome.

What is Relay?

Relay is a new framework from Facebook that provides data-fetching functionality for React applications. It was announced at React.js Conf (January 2015).

@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μ΄λΌλŠ” λͺ…칭이 μ‚¬μš©λ˜κ³  μžˆμŠ΅λ‹ˆλ‹€.

@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
@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>;
@haje01
haje01 / TensorFlow μ‹œμž‘ν•˜κΈ°.md
Last active November 22, 2025 10:00
TensorFlow μ‹œμž‘ν•˜κΈ°

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

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

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


μ†Œκ°œ

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

@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)")
@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")