Skip to content

Instantly share code, notes, and snippets.

#if __has_include(".extend.Xresources")
#include ".extend.Xresources"
#endif
Xft.dpi: 96
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.autohint: false
Xft.hintstyle: hintslight
@allyraza
allyraza / cpu.cc
Created January 23, 2017 05:53
a virtual machine implemented in c++ for my talk
#include <iostream>
using namespace std;
/*
PSH 5 ; pushes 5 to the stack
PSH 10 ; pushes 10 to the stack
ADD ; pops two values on top of the stack, adds them pushes to stack
POP ; pops the value on the stack, will also print it for debugging
SET A 0 ; sets register A to 0
@allyraza
allyraza / bst.js
Created January 19, 2017 09:29
Binary search tree implemented in js
function createNode(value) {
return {
value: value,
left: null,
right: null
};
}
function addNode(node, value) {
while (true) {
@allyraza
allyraza / fdb-flow.md
Created December 26, 2016 15:48 — forked from Preetam/fdb-flow.md
FoundationDB Flow

Flow: Actor-based Concurrency with C++

Engineering challenges

FoundationDB began with ambitious goals for both high performance per node and scalability. We knew that to achieve these goals we would face serious engineering challenges while developing the FoundationDB core. We'd need to implement efficient asynchronous communicating processes of the sort supported by Erlang or the Async library in .NET, but we'd also need the raw speed and I/O efficiency of C++. Finally, we'd need to perform extensive simulation to engineer for reliability and fault tolerance on large clusters.

To meet these challenges, we developed several new tools, the first of which is Flow, a new programming language that brings actor-based concurrency to C++11. To add this capability

@allyraza
allyraza / Papers.md
Created December 26, 2016 15:46 — forked from Preetam/Papers.md

Papers

This list is adapted from the lecture plan for the "Advanced Topics in Computer Systems" course at Berkeley, which is available here: https://people.eecs.berkeley.edu/~kubitron/cs262/index_lectures.html

Thanks to Anthony Joseph and John Kubiatowicz for putting the original list together.

Introduction to the course, some basic philosophy, UNIX system.

@allyraza
allyraza / gist:76856f49bded67da6f2800e531ceada8
Created August 19, 2016 07:14 — forked from debasishg/gist:8172796
A collection of links for streaming algorithms and data structures
  1. General Background and Overview
@allyraza
allyraza / introrx.md
Created June 13, 2016 08:53 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@allyraza
allyraza / model.ex
Created January 12, 2016 10:51
many to many in eilxir
# it is simple and straight forward ecto has a method has_many/3 that takes a through option here is simple exmaple
# group.ex
schema "groups" do
has_many :group_users, MyApp.GroupUser
has_many :users, through: [:group_users, :user]
end