Skip to content

Instantly share code, notes, and snippets.

View dsdstudio's full-sized avatar
๐ŸŽน
Focusing

Bohyung kim dsdstudio

๐ŸŽน
Focusing
View GitHub Profile
@larsch
larsch / create-arch-image-raspberry-pi-2.sh
Last active March 11, 2024 13:55
Shell script that creates a Arch Linux image for the Raspberry Pi 2. Downloads the latest distribution from archlinuxarm.org and creates the flash filesystems including boot partition. Partitions are aligned for typical SD cards and ext filesystem tuned accordingly.
#!/bin/sh -ex
losetup /dev/loop0 && exit 1 || true
image=arch-linux-$(date +%Y%m%d).img
wget -q -N http://archlinuxarm.org/os/ArchLinuxARM-rpi-2-latest.tar.gz
truncate -s 1G $image
losetup /dev/loop0 $image
parted -s /dev/loop0 mklabel msdos
parted -s /dev/loop0 unit s mkpart primary fat32 -- 1 65535
parted -s /dev/loop0 set 1 boot on
parted -s /dev/loop0 unit s mkpart primary ext2 -- 65536 -1
@JeOam
JeOam / Animation.md
Last active March 14, 2025 01:34
iOS Core Animation: Advanced Techniques, Part 1: The Layer Beneath

Author: https://www.cyanhall.com/

1. The Layer Tree

Core Animation's original name is Layer Kit

Core Animation is a compositing engine; its job is to compose different pieces of visual content on the screen, and to do so as fast as possible. The content in question is divided into individual layers stored in a hierarchy known as the layer tree. This tree forms the underpinning for all of UIKit, and for everything that you see on the screen in an iOS application.

In UIView, tasks such as rendering, layout and animation are all managed by a Core Animation class called CALayer. The only major feature of UIView that isnโ€™t handled by CALayer is user interaction.

There are four hierarchies, each performing a different role:

@Integralist
Integralist / 0. description.md
Last active June 17, 2023 21:49
Clojure deftype, defrecord, defprotocol
  • defprotocol: defines an interface
  • deftype: create a bare-bones object which implements a protocol
  • defrecord: creates an immutable persistent map which implements a protocol

Typically you'll use defrecord (or even a basic map);
unless you need some specific Java inter-op,
where by you'll want to use deftype instead.

Note: defprotocol allows you to add new abstractions in a clean way Rather than (like OOP) having polymorphism on the class itself,

@ericelliott
ericelliott / essential-javascript-links.md
Last active March 22, 2025 17:28
Essential JavaScript Links
@benelog
benelog / springloaded.md
Last active May 12, 2021 09:04
springloaded

springloaded๋Š” ๊ฐœ๋ฐœํ™˜๊ฒฝ์—์„œ .javaํด๋ž˜์Šค๋ฅผ ์ˆ˜์ •ํ–ˆ์„ ๋•Œ ๋ณ€๊ฒฝ๋œ ํด๋ž˜์ŠคํŒŒ์ผ๋งŒ์„ ์žฌ๋กœ๋”ฉํ•˜๋Š” ๋„๊ตฌ์ž…๋‹ˆ๋‹ค. Local PC์—์„œ ์ˆ˜์ •๊ณผ Tomcat์žฌ์‹œ์ž‘์„ ์ค„์ด๋Š”๋ฐ ๋„์›€์ด ๋ฉ๋‹ˆ๋‹ค.

๋‹ค๋งŒ JRebel๋„ ๊ทธ๋Ÿฌํ•˜๋“ฏ์ด ๋ชจ๋“  ๊ฒฝ์šฐ ์™„๋ฒฝํ•œ ๋ฆฌ๋กœ๋”ฉ์ด ๋˜์ง€๋Š” ์•Š์Šต๋‹ˆ๋‹ค. ๋ฉ”์„œ๋“œ์ถ”๊ฐ€,์ˆ˜์ •์‹œ์—๋Š” ์ž˜ ๋ฐ˜์˜๋ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ์•„๋ž˜์™€ ๊ฐ™์€ ๊ฒฝ์šฐ์—๋Š” ์ž๋™๋ฐ˜์˜์ด ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค.

  • ์ƒ์†๊ตฌ์กฐ์˜ ๋ณ€๊ฒฝ
  • Reflection์ •๋ณด๊ฐ€ Cache๋œ ๊ฒƒ
  • XML์„ค์ • ์ˆ˜์ • (์ด ๋ถ€๋ถ„์€ ํ”„๋ ˆ์ž„์›Œํฌ ํŠนํ™”๋œ ๊ตฌํ˜„์ด ๋“ค์–ด๊ฐ€์ง€ ์•Š์œผ๋ฉด ๋‹น์—ฐํžˆ ์–ด๋ ต์Šต๋‹ˆ๋‹ค.)

๊ทธ๋ž˜๋„ ๋งŽ์€ ๊ฒฝ์šฐ Tomcat์žฌ์‹œ์ž‘์—†์ด ๊ฐœ๋ฐœ์„ ์ด์–ด๊ฐˆ ์ˆ˜ ์žˆ๋‹ค๋ฉด ์—†๋Š”๊ฒƒ๋ณด๋‹ค๋Š” ์ƒ์‚ฐ์„ฑ์— ๋„์›€์ด ๋˜๋ฆฌ๋ผ ์ƒ๊ฐํ•ฉ๋‹ˆ๋‹ค.

@9beach
9beach / ๊ธฐ์ˆ  ๋ฌธ์„œ๋ฅผ ์“ธ ๋•Œ ์ฃผ์˜ํ•ด์•ผ ํ•  ๋ช‡ ๊ฐ€์ง€.md
Last active November 16, 2024 06:51
๊ธฐ์ˆ  ๋ฌธ์„œ๋ฅผ ์“ธ ๋•Œ ์ฃผ์˜ํ•ด์•ผ ํ•  ๋ช‡ ๊ฐ€์ง€๋ฅผ ๋‚˜์—ดํ•ฉ๋‹ˆ๋‹ค.

๊ธฐ์ˆ  ๋ฌธ์„œ๋ฅผ ์“ธ ๋•Œ ์ฃผ์˜ํ•ด์•ผ ํ•  ๋ช‡ ๊ฐ€์ง€

๋…์ž ๋ฐฐ๋ ค

์ž์‹ ์˜ ์ƒ๊ฐ๊ณผ ํ•  ์ผ์„ ์ •๋ฆฌํ•˜๋Š” ๊ฒƒ์ด ๊ธฐ์ˆ  ๋ฌธ์„œ์˜ ๋ชฉํ‘œ๊ฐ€ ๋  ์ˆ˜๋Š” ์—†๋‹ค. ๋จผ์ € ๋…์ž๋ฅผ ์‹๋ณ„ํ•˜๋ผ. ๊ทธ๋ฆฌ๊ณ  ๋…์ž๋ฅผ ๋ฐฐ๋ คํ•˜๊ณ  ๋…์ž ์ž…์žฅ์„ ์ƒ๊ฐํ•˜๋ฉฐ ๋ฌธ์„œ๋ฅผ ์ž‘์„ฑํ•˜๋ผ.

ํ…์ŠคํŠธ ํŒŒ์ผ์˜ ์žฅ์ 

์ค‘์š”ํ•œ ์ •๋ณด๋ฅผ ์œ„ํ‚ค๋‚˜ ๊นƒ(Git)์—์„œ ํ…์ŠคํŠธ๋กœ ์ž‘์„ฑํ•˜์ง€ ์•Š๊ณ , ์›Œ๋“œ๋‚˜ ํŒŒ์›Œํฌ์ธํŠธ ๊ฐ™์€ ์ด์ง„ ๋ฌธ์„œ๋กœ ์ž‘์„ฑํ•  ๋•Œ๋งˆ๋‹ค ๋‹น์‹ ์˜ ๋™๋ฃŒ๋Š” ์ ‘๊ทผ์„ฑ, ๊ฐ€์‹œ์„ฑ, ๋ฒ„์ „ ๊ด€๋ฆฌ ๋“ฑ ๋‹ค์–‘ํ•œ ๋ฌธ์ œ๋กœ ๊ณ ์ƒํ•  ๊ฒƒ์ด๋‹ค.

@steve-jansen
steve-jansen / README.md
Last active December 13, 2024 23:29
Stop and start Symantec Endpoint Protection on OS X

This script enables you stop and start Symantec Endpoint Protection on OS X

Installation

sudo curl https://gist.githubusercontent.com/steve-jansen/61a189b6ab961a517f68/raw/sep -o /usr/local/bin/sep
sudo chmod 755 /usr/local/bin/sep
sudo chown root:staff /usr/local/bin/sep
@patriciogonzalezvivo
patriciogonzalezvivo / GLSL-Noise.md
Last active June 2, 2025 14:28
GLSL Noise Algorithms

Please consider using http://lygia.xyz instead of copy/pasting this functions. It expand suport for voronoi, voronoise, fbm, noise, worley, noise, derivatives and much more, through simple file dependencies. Take a look to https://github.com/patriciogonzalezvivo/lygia/tree/main/generative

Generic 1,2,3 Noise

float rand(float n){return fract(sin(n) * 43758.5453123);}

float noise(float p){
	float fl = floor(p);
  float fc = fract(p);
@staltz
staltz / introrx.md
Last active May 24, 2025 19:53
The introduction to Reactive Programming you've been missing
(function() {
// Do not use this library. This is just a fun example to prove a
// point.
var Bloop = window.Bloop = {};
var mountId = 0;
function newMountId() {
return mountId++;
}