Skip to content

Instantly share code, notes, and snippets.

View akrueger's full-sized avatar

Andrew Krueger akrueger

View GitHub Profile
@akrueger
akrueger / relationalDB.md
Last active January 1, 2018 22:04
Relational databases
  • Databases
  • Schemas
  • Tables
  • Rows
  • Columns
  • Normalization
  • Views
  • Materialized views
  • Transactions
  • Triggers
@akrueger
akrueger / inferenceEngine.md
Created November 5, 2017 22:43
Inference engine

Forward chaining

  • Works from antecedent to consequent
  • Breadth-first

Backward chaining

  • Works from consequent to antecedent
  • Depth-first
@akrueger
akrueger / agenda.md
Last active December 29, 2017 18:54
Learning Agenda
Using rules engine instead of conditional control flow.
@akrueger
akrueger / compare
Created March 6, 2017 06:07
Comparison of Antony Stubbs' bash script and NickK9's python script on linux kernel repo
// bash script
All sizes are in kB's. The pack column is the size of the object, compressed, inside the pack file.
size pack SHA location
2053 218 ee1da0cbc84d6ccf5d0714602e4364b6b8a85a32 drivers/gpu/drm/amd/include/asic_reg/bif/bif_5_1_sh_mask.h
1484 121 6fa98ea0ae40f9a38256f11e5dc270363f785aee sound/soc/codecs/wm8962-tables.c
1254 110 1ddc4183a1c91cd08a05557d575b3bcdc90a1ea6 drivers/gpu/drm/amd/include/asic_reg/dce/dce_11_2_sh_mask.h
1240 188 03f473116f78769af0434366387b3ca8f7a72db4 crypto/testmgr.h
1180 105 a438c2b6e2801327bff0746ec8e9b42f5cc2d70d drivers/gpu/drm/amd/include/asic_reg/dce/dce_11_0_sh_mask.h
@akrueger
akrueger / .zshrc
Created January 9, 2017 20:49
.zshrc
### User configuration sourced by interactive shells
### Aliases
# alias e=$EDITOR
### Editors
export EDITOR='code'
export VISUAL='code'
# Jenv
eval "$(jenv init -)"
@akrueger
akrueger / .zimrc
Created January 9, 2017 20:48
.zimrc
#################
# CORE SETTINGS #
#################
#
# Zim settings
#
# Select what modules you would like enabled.
# The second line of modules may depend on options set by modules in the first line.
@akrueger
akrueger / Queue
Last active October 23, 2016 18:17
function createLinkedListQueue() {
let length = 0
let head = undefined
let tail = undefined
return {
enqueue(value) {
enqueueNode(value)
},
dequeue() {
return dequeueNode()
@akrueger
akrueger / rest.md
Last active August 12, 2016 23:08
REST

REST

Representational State Transfer

  • Statelessness is defined from the perspective of the server.

  • The constraint says that the server should not remember the state of the application.

  • As a consequence, the client should send all information necessary for execution along with each request, because the server cannot reuse information from previous requests as it didn’t memorize them.

METHOD | SCOPE | SEMANTICS

@akrueger
akrueger / discreteMath.md
Created August 7, 2016 20:13
Discrete mathematics

Discrete mathematics