Skip to content

Instantly share code, notes, and snippets.

View AndyMoreland's full-sized avatar

Andrew Moreland AndyMoreland

View GitHub Profile

Keybase proof

I hereby claim:

  • I am andymoreland on github.
  • I am andymoreland (https://keybase.io/andymoreland) on keybase.
  • I have a public key ASCa2VlKr2QStLgs-6Yv1RS2eE1HBpM0okzaqzrnSHKa2go

To claim this, I am signing this object:

@AndyMoreland
AndyMoreland / init.el
Created December 21, 2015 23:53
Typescript compiler error regexp for emacs M-x compile
(add-hook 'typescript-mode-hook
(lambda ()
(add-to-list 'compilation-error-regexp-alist
'("^\\([_.[:alnum:]-/]*.ts\\)(\\([[:digit:]]+\\),\\([[:digit:]]+\\)).*$" 1 2 3))))
<html>
<head>
<style>
#container {
overflow-y: scroll;
overflow-x: hidden;
width: 100px;
height: 100px;
}
</style>
High Level: Log structured file system with RAM pointers into the log. Can reconstruct the RAM table by reading the log.
Arguing that power consumption will increase and that flash will get cheaper faster than CPU/DRAM.
* Naively, we need 1 watt of cooling for 1 watt of computation.
* They optimize for small-object random access workloads.
** Since it's small-objects and random access disk seeks suck.
* Can't use RAM because RAM is expensive and also power hungry.
* Flash pages are much larger
-object random access workloads.
** Since it's small-objects and random access disk seeks suck.
* Can't use RAM because RAM is expensive and also power hungry.
* Flash pages are much larger
* Flash translation layer is weird
* Flash failure model is optimistic
* Logs can be pre-deleted ahead of time so that writes are faster
load ~/Downloads/q1x.dat
load ~/Downloads/q1y.dat
hold off
%scatter(q1x, q1y)
hold on
X = [ones(length(q1x), 1), q1x];
Y = q1y;
_ = require 'underscore'
Query = require '../../models/query'
# Intended to compute various properties about a report model
# This should keep view logic out of the model, hopefully.
module.exports =
class ReportPresenter extends window.Backbone.Model
@AxisProvider: null
module.exports =
class LineView extends VisualizationView
tagName: 'div'
_renderToContext: (context) =>
@_drawLines context, @reportPresenter.getLineData()
_drawLines: (context, data) ->
x = @axisProvider.getXScale(@renderBounds)
y = @axisProvider.getYScale(@renderBounds)
r *)(&eps + 2));
printf("%#4x\n", *(char *)(&eps + 3));
return foo(2)
}
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
gem 'mysql2'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'