Skip to content

Instantly share code, notes, and snippets.

View adamchandra's full-sized avatar

Adam Saunders adamchandra

  • UMass Amherst
  • Amherst, MA
View GitHub Profile
Sole Inexact Matching Label: 50 / 29 Label = Affiliation 10.1101-021709.d
╌╌╌╌╌╌╌╌ dmallo@uvigo.es1,╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌
E-mails: dmallo@uvigo.es1, leomrtns@uvigo.es2, dposada@uvigo.es3
────────✗✗ ✗──────────────────────────────────────
OoooooooEeeeeeeeeeeeeeeeNnnEeeeeeeeeeeeeeeeeNnnEeeeeeeeeeeeeeeeN
AaaaaaaaAaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
── ─
oE n

Thread Pools

Thread pools on the JVM should usually be divided into the following three categories:

  1. CPU-bound
  2. Blocking IO
  3. Non-blocking IO polling

Each of these categories has a different optimal configuration and usage pattern.

let x = 4;
console.log('x', x);
body {
}
## System Information - Ensime troubleshoot report
- OS: `gnu/linux`
- Emacs: `24.5.2`
- ensime-sbt-command: `/usr/local/bin/sbt`
- debug-on-error: `nil`
- exec-path: `(/home/saunders/perl5/bin . /usr/local/bin /usr/local/sbin /home/saunders/.tmuxifier/libexec /usr/bin /sbin /bin /usr/local/libexec/emacs/24.5/x86_64-unknown-linux-gnu)`
- Backtrace:
```
Backtrace not available or not found
@adamchandra
adamchandra / README.md
Last active August 29, 2015 14:08 — forked from mbostock/.block

From Wikipedia:

Epicyclic gearing or planetary gearing is a gear system consisting of one or more outer gears, or planet gears, revolving about a central, or sun gear. … Epicyclic gearing systems also incorporate the use of an outer ring gear or annulus, which meshes with the planet gears.

Use the menu in the top-left to change the frame of reference, fixing the specified gear in-place.

@adamchandra
adamchandra / gist:1254338
Created September 30, 2011 16:53
unique
# order preserving uniq-ify
def unique(seq, ident=None):
if ident is None: ident = lambda x: x
seen, result = set(), []
for item in seq:
marker = ident(item)
if marker not in seen:
seen.add(marker)
result.append(item)