Skip to content

Instantly share code, notes, and snippets.

View amjd's full-sized avatar

Amjad Ali amjd

View GitHub Profile
@amjd
amjd / learn web dev.md
Last active September 24, 2017 14:25
This is a curated list of resources to learn HTML, CSS and JavaScript in 2017.

Install instructions for NS2, Apache Tomcat, PHP, Perl & CGI:

NS2

$ sudo apt-get update
$ sudo apt-get install ns2
$ sudo apt-get install xgraph
$ sudo apt-get install nam
@amjd
amjd / learn_competitive_coding.md
Last active March 7, 2021 10:29
List of resources on competitive coding

Getting started with Competitive Coding

Tips from from an expert competitive programmer (Anudeep Nekkanti) for someone beginning competitive coding:

If I aim to start programming now, I would do it this way:

  1. Solve 200 most solved problems on SPOJ, Problem by problem. In 2 months. (This will teach all standard problems, algorithms and implementation skills)
  2. Solve problems from CodeChef and CodeForces for 2 months. (This will teach variations, we can read others solutions and learn better ways. Skip easy problems)
  3. Solve problems from TopCoder for 2 months. (This will teach Dynamic Programming. Div 1 500p)
@amjd
amjd / postfix_eval.c
Created September 17, 2014 13:06
Program to evaluate postfix expression
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
#define SIZE 40
int pop();
void push(int);
char postfix[SIZE];
import requests as r
import json
pnr = "6533533388"
url = "https://indianrailways.p.mashape.com/index.php?pnr="
headers = {'X-Mashape-Authorization': 'MASHAPE_API_KEY'}
data = r.get('%s%s' % (url,pnr),headers=headers)
#include <iostream>
using namespace std;
class Employee
{
private:
int e_no;
char e_name[30];
float basic_sal;
// #!/usr/bin/env node
var spawn = require('child_process').spawn;
var path = require('path');
var url = require('url');
var dl_url = process.argv[2],
fileName = decodeURIComponent(path.basename(url.parse(dl_url).pathname)),
@amjd
amjd / infixtopostfix.c
Created August 7, 2014 09:37
Program to convert infix expression to postfix expression (DS Lab).
#include<stdio.h>
#include<stdlib.h>
#include<ctype.h>
#define SIZE 30
void push(char);
char pop();
int preced(char);
@amjd
amjd / gist:acc5e108bfb2f29f050c
Created June 6, 2014 05:30
List of websites used in Conlectus's WhoAmI - http://tinsnail.neocities.org/
var rawSites = {
'programming': [
'http://blog.codinghorror.com/',
'http://thedailywtf.com/',
'http://www.hanselman.com/blog/',
'http://code.tutsplus.com',
'https://news.ycombinator.com/',
'http://www.reddit.com/r/programming/',
'http://codebetter.com',
'http://android-developers.blogspot.com/',
@amjd
amjd / btc.php
Created November 26, 2013 13:42
<?php
ini_set('display_errors',1);
error_reporting(E_ALL);
$url = 'http://data.mtgox.com/api/1/BTCUSD/ticker_fast';
$resp = file_get_contents($url);
$res = json_decode($resp,true);