- Star/Snowflake Schema: Organizes data into fact and dimension tables for intuitive querying.
- Business-Oriented: Designed for ease of understanding by business users and analysts.
- Denormalized Structure: Optimized for performance in OLAP systems.
- Slowly Changing Dimensions (SCD): Handles historical changes in dimension data.
- Query Performance: Highly efficient for aggregations and slicing/dicing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| data MessageType = Info | |
| | Warning | |
| | Error Int | |
| deriving (Show, Eq) | |
| type TimeStamp = Int | |
| data LogMessage = LogMessage MessageType TimeStamp String | |
| | Unknown String | |
| deriving (Show, Eq) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| from PyQt5.QtWidgets import QSystemTrayIcon, QApplication | |
| from PyQt5.QtGui import QIcon | |
| class BuildNotifyTest: | |
| def __init__(self, app): | |
| self.app = app | |
| self.tray = QSystemTrayIcon(QIcon.fromTheme("edit-undo"), self.app) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function ($) { | |
| var highlightEnvs = prompt('Highlight nodes containing(comma separated)', 'Prod,prd').split(','); | |
| var hideEnvs = prompt('Hide nodes containing(comma separated)', 'dev,Dev,e2e,E2E').split(','); | |
| highlightEnvs.forEach(function (env) { | |
| $("g title:contains(" + env + ".)").parent().children('circle').css('fill', 'lightskyblue'); | |
| }); | |
| hideEnvs.forEach(function (env) { | |
| $("g title:contains(" + env + ".)").parent().css('opacity', 0.5); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var fs = require('fs'), | |
| readline = require('readline'); | |
| var filePath = process.argv[2] | |
| if (!filePath) { | |
| console.error("node dynamo.js /path/to/file") | |
| process.exit(1) | |
| } | |
| var rd = readline.createInterface({ | |
| input: fs.createReadStream(filePath), | |
| console: false |
I hereby claim:
- I am anaynayak on github.
- I am anay (https://keybase.io/anay) on keybase.
- I have a public key whose fingerprint is 555A A55F 2E91 306A 5EDD DEEA 9467 8869 A9A2 0850
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import sys | |
| import json | |
| from collections import OrderedDict | |
| opts = { | |
| 'format' : 'txt', | |
| 'keys' : sys.argv[1:] | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| # /etc/init.d/tightvncserver | |
| VNCUSER='pi' | |
| case "$1" in | |
| start) | |
| su $VNCUSER -c '/usr/bin/tightvncserver :1' | |
| echo "Starting TightVNC Server for $VNCUSER " | |
| ;; | |
| stop) | |
| pkill Xtightvnc |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function git { | |
| if [ -d .git ]; then | |
| /usr/bin/git $* | |
| else | |
| for dir in $(find . -maxdepth 2 -name ".git"); do | |
| cd ${dir%/*} | |
| /usr/bin/git $* | |
| cd - | |
| done | |
| fi |
NewerOlder