Skip to content

Instantly share code, notes, and snippets.

@arafatkamaal
arafatkamaal / Interview.txt
Created April 23, 2014 17:13
Interview tips
Almost all of the questions posted in this sub are some form of "what do I have to know/do to pass a tech interview/get a job." Here's some distilled advice I can offer from having conducted over 1000 tech interviews. This doesn't cover everything, but I think it covers the most important foundational elements.
Setting expectations: If this is your first time looking for a job, or you haven't had to interview in a number of years, expect to invest some effort in preparing for the interview. It's usually the industry professionals that completely ignore this step, but some college students do as well. You're essentially studying for a test, don't slack off - it's going to be work. All of those things that you've been telling yourself don't matter (maybe you're a bit fuzzy on how exactly the internet works - do you really know what happens after you hit enter on the URL bar?) that you don't know - now it's time to address those gaps head on. So, what matter.
For the sake of space, I'm going to focus on what a
Internet Archive
Web
Video
Texts
Audio
Software
About
Account
TVNews
@arafatkamaal
arafatkamaal / FunctionPointer.c
Created October 18, 2013 08:45
Function Pointers in C
#include <stdio.h>
int CallBackFunction(int i){
printf("This is the call back function %d\n", i);
}
int Operations(int (*func)(int)){
@arafatkamaal
arafatkamaal / links.txt
Created October 18, 2013 05:48
links for sqlite C drivers
@arafatkamaal
arafatkamaal / pixel.pl
Created September 27, 2013 11:24
Display a pixel on 10x10 grid
use strict;
use warnings;
use Data::Dumper;
my $gridx = 100;
my $gridy = 100;
my $radius = 10;
my $angle = 14;
my $y_axis_intercept =
@arafatkamaal
arafatkamaal / struct2chararray.c
Created September 5, 2013 05:39
How to create a character array from a struct, and vice a versa
#include <stdio.h>
#include <string.h>
typedef struct teststructure {
int valid;
char key[10];
char value[10];
}test;
@arafatkamaal
arafatkamaal / character_pointers_and_copy.c
Created August 23, 2013 09:56
Copying and printing character arrays
#include<stdio.h>
#include<string.h>
#define FIRST "hello world"
#define SECOND "bye"
int main()
{
@arafatkamaal
arafatkamaal / NotesFromTheUnderground.txt
Created May 23, 2013 10:05
Notes from the underground
Project Gutenberg's Notes from the Underground, by Feodor Dostoevsky
This eBook is for the use of anyone anywhere at no cost and with
almost no restrictions whatsoever. You may copy it, give it away or
re-use it under the terms of the Project Gutenberg License included
with this eBook or online at www.gutenberg.net
Title: Notes from the Underground
@arafatkamaal
arafatkamaal / ListDelete.c
Created May 20, 2013 07:07
List files and deleted a file
#include<dirent.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<sys/types.h>
#include<sys/stat.h>
#define ERROR_OPENING_DIRECTORY -1
#define SUCCESS_OPENING_DIRECTORY 1
@arafatkamaal
arafatkamaal / ListFiles.c
Created May 20, 2013 06:18
List all files in a directory
#include<dirent.h>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<sys/types.h>
#include<sys/stat.h>
#define ERROR_OPENING_DIRECTORY -1
#define SUCCESS_OPENING_DIRECTORY 1