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
/** | |
* Author: Asif Ahmed | |
* Site: https://quickgrid.blogspot.com | |
* Problem: UVA 821 - Page Hopping | |
* Technique: Floyd warshall algorithm unweighted directed graph | |
* C++ stl set | |
*/ | |
#include<bits/stdc++.h> | |
using namespace std; |
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
<%@ page import="java.io.*,java.util.*,java.sql.*"%> | |
<%@ page import="javax.servlet.http.*,javax.servlet.*" %> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> | |
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%> | |
<html> | |
<head> | |
<title>SELECT Operation</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.5/css/bootstrap.min.css"> |
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
create table classroom | |
(building varchar(15), | |
room_number varchar(7), | |
capacity numeric(4,0), | |
primary key (building, room_number) | |
); | |
create table department | |
(dept_name varchar(20), | |
building varchar(15), |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Sample PHP Database Application</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.5/css/bootstrap.min.css"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha.5/js/bootstrap.min.js"></script> | |
</head> |
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
/** | |
* Author: Asif Ahmed | |
* Site: https://quickgrid.wordpress.com | |
* Description: N Queen visualizer Sample. | |
*/ | |
import javax.swing.*; | |
import java.awt.*; | |
/** |
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
/** | |
* Author: Asif Ahmed | |
* Site: https://quickgrid.blogspot.com | |
* Problem: Linear Regression gradient descent curve fitting though points in 2-space. | |
* Details: Please remove windows.h header if any trouble with compilation. | |
*/ | |
#include<bits/stdc++.h> | |
#include<windows.h> | |
#define M 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
#include<stdio.h> | |
int main(){ | |
double sum = 0; | |
for(int i = 3; i <= 99; i = i + 2){ | |
sum = sum + ((double) (i*i + 1) /(i*i - 1) ); | |
} | |
printf("%lf\n", sum); |
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
MULTILINE COMMENT: | |
/* | |
This is a comment | |
*/ | |
Line Count:1 | |
Line Count:2 | |
Pascal Comment:{Another} |
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/bash | |
flex -t assignment2.l > test.c | |
g++ -c -o test.o test.c | |
g++ -o samp test.o -ll | |
./samp | |
#./samp < in.txt > out.txt |