Skip to content

Instantly share code, notes, and snippets.

View BrainBuzzer's full-sized avatar

Aditya Giri BrainBuzzer

View GitHub Profile
@BrainBuzzer
BrainBuzzer / health
Last active November 10, 2022 12:28
🚶‍♂️ 2km ████████████████████
2km total
@BrainBuzzer
BrainBuzzer / dynamodb.md
Created August 20, 2022 04:37 — forked from jlafon/dynamodb.md
An Introduction to Amazon's DynamoDB

An introduction to DynamoDB

DynamoDB is a powerful, fully managed, low latency, NoSQL database service provided by Amazon. DynamoDB allows you to pay for dedicated throughput, with predictable performance for "any level of request traffic". Scalability is handled for you, and data is replicated across multiple availability zones automatically. Amazon handles all of the pain points associated with managing a distributed datastore for you, including replication, load balancing, provisioning, and backups. All that is left is for you to take your data, and its access patterns, and make it work in the denormalized world of NoSQL.

Modeling your data

The single most important part of using DynamoDB begins before you ever put data into it: designing the table(s) and keys. Keys (Amazon calls them primary keys) can be composed of one attribute, called a hash key, or a compound key called the hash and range key. The key is used to uniquely identify an item in a table. The choice of the primary key is particularl

@BrainBuzzer
BrainBuzzer / game.js
Created February 7, 2022 10:39
I swear it's not complete. It's made in 15 minutes. If you want, copy paste the code in console of any profile on GitHub.
let el = document.getElementsByClassName('js-calendar-graph-svg')[0].children[0]
let interval = null;
let refreshInterval = 200;
let directionVectors = {
37: {x: -1, y: 0},
38: {x: 0, y: -1},
39: {x: 1, y: 0},
40: {x: 0, y: 1}
### Keybase proof
I hereby claim:
* I am brainbuzzer on github.
* I am brainbuzzer (https://keybase.io/brainbuzzer) on keybase.
* I have a public key ASAiuJApE6AKDptgY1O7qNna52ANUc5cCz5KnXd8ntW6Nwo
To claim this, I am signing this object:
! urxvt
URxvt*geometry: 115x40
!URxvt*font: xft:Liberation Mono:pixelsize=14:antialias=false:hinting=true
URxvt*font: xft:Inconsolata:pixelsize=17:antialias=true:hinting=true
URxvt*boldFont: xft:Inconsolata:bold:pixelsize=17:antialias=false:hinting=true
!URxvt*boldFont: xft:Liberation Mono:bold:pixelsize=14:antialias=false:hinting=true
URxvt*depth: 24
URxvt*borderless: 1
URxvt*scrollBar: false