Skip to content

Instantly share code, notes, and snippets.

View itssalman's full-sized avatar

Salman Aslam itssalman

  • SM Soft
  • Gujrat Pakistan
View GitHub Profile
@itssalman
itssalman / sticky.html
Last active April 18, 2016 17:15
Bootstrap Sticky Menu
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Example of Bootstrap 3 Static Navbar</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap-theme.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<style type="text/css">
@itssalman
itssalman / awesome-php.md
Last active August 29, 2015 14:25 — forked from ziadoz/awesome-php.md
Awesome PHP — A curated list of amazingly awesome PHP libraries, resources and shiny things.
@itssalman
itssalman / Dino.dat
Created May 17, 2015 17:45
OpenGL: Dinosaur Points
21
29
32 435
10 439
4 438
2 433
4 428
6 425
10 420
15 416
@itssalman
itssalman / house
Last active August 29, 2015 14:20
OPENGL: house.cpp
#include <windows.h>
#include <GL\glew.h>
#include <GL\freeglut.h>
// Salman Aslam
void SalmanAslamDisplay(void); // define function to display output
void SalmanAslamDrawDot(); // define function to draw dots
void SalmanAslamDrawDot(){
@itssalman
itssalman / dinosaur
Created May 7, 2015 19:41
OPENGL: dinosaur.cpp
#include <windows.h>
#include <GL\glew.h>
#include <GL\freeglut.h>
// Salman Aslam
void SalmanAslamDisplay(void); // define function to display output
void SalmanAslamDrawDot(); // define function to draw dots
void SalmanAslamDrawDot(){
@itssalman
itssalman / bigdipper
Last active August 29, 2015 14:20
OPENGL: Bigdipper.cpp
#include <windows.h>
#include <GL\glew.h>
#include <GL\freeglut.h>
// Salman Aslam
void SalmanAslamDisplay(void); // define function to display output
void SalmanAslamDrawDot(); // define function to draw dots
void SalmanAslamDrawDot(){
@itssalman
itssalman / index
Created April 24, 2015 14:04
PHP : MySQLI
<?php
/**
* Created by PhpStorm.
* User: SALMAN ASLAM
* Date: 12-Jan-15
* Time: 10:26 PM
*/
// create connection
$mysqli = new mysqli('localhost','root','salman','company');
@itssalman
itssalman / index
Created April 24, 2015 13:16
PHP: PDO
<?php
/**
* Created by PhpStorm.
* User: SALMAN ASLAM
* Date: 13-Jan-15
* Time: 12:13 AM
*/
// connect to database
try {
$pdo = new PDO('mysql:host=localhost; dbname=company;charset=utf8', 'root', 'salman');