Skip to content

Instantly share code, notes, and snippets.

new string[]{
@"# Cache size",
@"-size (bytes) 134217728",
@"",
@"# Line size",
@"-block size (bytes) 64",
@"",
@"# To model Fully Associative cache, set associativity to zero",
@"-associativity 1",
@"",
public class Recursion {
public static void findHome(int from) {
if (from < 0) throw new IllegalArgumentException("from = " + from);
if (from == 0) { //home = 0
return;
}
@elimelec
elimelec / CalculatorView.swift
Created October 7, 2016 11:52 — forked from natecook1000/CalculatorView.swift
An IBInspectable Calculator Construction Set
// CalculatorView.swift
// as seen in http://nshipster.com/ibinspectable-ibdesignable/
//
// (c) 2015 Nate Cook, licensed under the MIT license
/// The alignment for drawing an String inside a bounding rectangle.
enum NCStringAlignment {
case LeftTop
case CenterTop
case RightTop

Keybase proof

I hereby claim:

  • I am elimelec on github.
  • I am elimelec (https://keybase.io/elimelec) on keybase.
  • I have a public key whose fingerprint is 65C9 E369 4133 6B11 87D3 1B77 D966 F706 3703 5F71

To claim this, I am signing this object: