⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
Kafka acts as a kind of write-ahead log (WAL) that records messages to a persistent store (disk) and allows subscribers to read and apply these changes to their own stores in a system appropriate time-frame.
Terminology:
- Producers send messages to brokers
- Consumers read messages from brokers
- Messages are sent to a topic
This file contains 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
#include <slack/std.h> | |
#ifndef HAVE_SNPRINTF | |
#include <slack/snprintf.h> | |
#endif | |
int main(int ac, char **av) | |
{ | |
char buf[16]; | |
char *str = buf; | |
char *extra = NULL; |
This file contains 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/bash | |
# Aayush Tuladhar | |
# v1.0 (2011) | |
# DistCC Monitor | |
# Performs Distcc On the Host Servers. Gets the compilation time and delivers email using sendmail. | |
HOSTFILE=/usr/local/itasca/buildtools/etc/lsdistcc_hosts | |
sendmailbin=/usr/sbin/sendmail | |
WORKING_DIR=`pwd` |
This file contains 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 java.io.FileNotFoundException; | |
import java.io.FileWriter; | |
import java.io.PrintWriter; | |
import java.io.Writer; | |
public class PlayingWithStrings { | |
/** | |
* @param args | |
*/ |
- Doesn’t know the difference between Array and LinkedList
- Able to explain and use Arrays, LinkedLists, Dictionaries etc in practical programming tasks
- Knows space and time tradeoffs of the basic data structures, Arrays vs LinkedLists, Able to explain how hashtables can be implemented and can handle collisions, Priority queues and ways to implement them etc.
- Knowledge of advanced data structures like B-trees, binomial and fibonacci heaps, AVL/Red Black trees, Splay Trees, Skip Lists, tries etc
- Unable to find the average of numbers in an array
Mac Shortcut | Windows Shortcut | Description |
---|---|---|
⌘ + ⇧ + R | Ctrl + Shift + R | Open / Search for Resources |
⌘ + ⇧ + T | Ctrl + Shift + T | Open / Search for types (Useful in finding classes) |
⌘ + O | Ctrl + O | Shows Quick Outline of the Java Class |
⌘ + T | CTRL-T | Show type hierarchy |
ALT – ↑ or ↓ | ALT – ↑ or ↓ | Move line/block |
⌃ + Space | Ctrl + Space | Content assist and Code completion |
⌘ + ⇧ + F | Ctrl + Shift + F | Format source code |
⌘ + L | Ctrl + L | Go to Line Number |
This file contains 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
#Scheduled Auto File Move/Copy Script | |
#------------------------------------ | |
# #Filename : config | |
# #Config File for File Dropper | |
# AUTHOR=Aayush Tuladhar | |
# DESTINATION_DIR=/appserver/userDocs | |
# 5 -- 5 Sec | |
# 300 - 5 Minutes | |
# 900 -- 15 Minutes |