Skip to content

Instantly share code, notes, and snippets.

View shahariaazam's full-sized avatar
:octocat:
Open for opportunities

Shaharia Azam shahariaazam

:octocat:
Open for opportunities
View GitHub Profile
@shahariaazam
shahariaazam / php-data-type.php
Created August 18, 2013 05:49
Few example of PHP Data type
<?php
/**
* @Author: G. M. Shaharia Azam
* @URL: http://www.shahariaazam.com
* @Description: Few example of PHP Data Type
*/
/* delcare few variable to check their data type */
$intVar = 10; //Integar variable
@shahariaazam
shahariaazam / test.php
Created August 19, 2013 17:54
Just for test
<?php
echo "Test Git";
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Appirio</title>
<!-- Stylesheet -->
<link href="assets/css/bootstrap.css" type="text/css" rel="stylesheet" />
<link href="assets/css/bootstrap-responsive.css" type="text/css" rel="stylesheet" />
<link href="assets/css/style.css" type="text/css" rel="stylesheet">
</head>
<body>
@shahariaazam
shahariaazam / stylesheet_switcher.js
Created September 1, 2013 22:47
Stylesheet Switcher
$(function()
{
// Call stylesheet init so that all stylesheet changing functions
// will work.
$.stylesheetInit();
// This code loops through the stylesheets when you click the link with
// an ID of "toggler" below.
$('#toggler').bind(
'click',
<html>
<head>
<title>Hello World</title>
<link rel="stylesheet" href="styles/default.css">
<link rel="alternate stylesheet" href="styles/arta.css" title="arta">
<link rel="alternate stylesheet" href="styles/ascetic.css" title="ascetic">
<link rel="alternate stylesheet" href="styles/brown_paper.css" title="brown_paper">
<link rel="alternate stylesheet" href="styles/dark.css" title="dark">
<link rel="alternate stylesheet" href="styles/far.css" title="far">
<link rel="alternate stylesheet" href="styles/github.css" title="github">
@shahariaazam
shahariaazam / infiniteHeight_js.html
Created September 8, 2013 04:51
Javascript code snippets to practice for novice Topic: Infinite Height in JS
<html>
<head>
<title>Infinite Height</title>
<meta charset="UTF-8">
</head>
<body>
<div id="bar" style="background-color: red; width: 100px; height:50px;"></div>
</body>
<script>
var getHeight = function increaseBarHeight ()
<?php
//echo "<a href=""http" . (($_SERVER['SERVER_PORT']==443) ? "s://" : "://") . $_SERVER['HTTP_HOST'] . $curdir . "index.php"">Go To Your Blog</a>" . "<br>";
/* Try to avoid mixing up your PHP and HTML .
* always try to make CLEAN code
*/
if($_SERVER['SERVER_PORT']==443)){
$url = "https://".$_SERVER['HTTP_HOST'].$curdir."index.php";
}else{
@shahariaazam
shahariaazam / bootstrap-3-default-structure.html
Created September 20, 2013 11:07
Basic structure of 100% width layout in Bootstrap 3
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Basic 100% width Structure</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<?php
/**
* SplClassLoader implementation that implements the technical interoperability
* standards for PHP 5.3 namespaces and class names.
*
* http://groups.google.com/group/php-standards/web/final-proposal
*
* // Example which loads classes for the Doctrine Common package in the
* // Doctrine\Common namespace.
<!DOCTYPE html>
<html class="no-js">
<head>
<meta charset='UTF-8'>
<title>Simple Loader</title>
<style>
/* This only works with JavaScript,