Skip to content

Instantly share code, notes, and snippets.

View diegopacheco's full-sized avatar

Diego Pacheco diegopacheco

View GitHub Profile
@diegopacheco
diegopacheco / EG.DeMusliM.build.sc2.md
Last active December 10, 2015 07:48
EG.DeMusliM 2Base Build

EG.DeMusliM 2Base Build

10 depo
12 rax (STOP 600)
15 depo (STOP 43)
16 scout
16 orbital
17 2cc keep on the main
19 << engbay (stop opponent expand) >>

@diegopacheco
diegopacheco / Polt.terran.build.sc2.md
Last active December 10, 2015 03:28
cc first / double rax FE

TSL POLT ::

cc first / double rax FE (Emtombed valley / Ohana ER)

10 depo
11 scout
14 2cc expand low ground
15 rax
16 rax

@jboner
jboner / latency.txt
Last active May 15, 2025 07:53
Latency Numbers Every Programmer Should Know
Latency Comparison Numbers (~2012)
----------------------------------
L1 cache reference 0.5 ns
Branch mispredict 5 ns
L2 cache reference 7 ns 14x L1 cache
Mutex lock/unlock 25 ns
Main memory reference 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy 3,000 ns 3 us
Send 1K bytes over 1 Gbps network 10,000 ns 10 us
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD
@viktorklang
viktorklang / swingactors.scala
Created April 19, 2012 17:25
Swing Actors using Akka
// ©2012 Viktor Klang
package akka.klang
import akka.dispatch.{ DispatcherPrerequisites, ExecutorServiceFactory, ExecutorServiceConfigurator }
import com.typesafe.config.Config
import java.util.concurrent.{ ExecutorService, AbstractExecutorService, ThreadFactory, TimeUnit }
import java.util.Collections
import javax.swing.SwingUtilities