Skip to content

Instantly share code, notes, and snippets.

@codesynapse
codesynapse / zurb-single-column.html
Created July 23, 2013 16:09
Foundation 4.0 Single Column Template
<!DOCTYPE html>
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8" />
<!-- Set the viewport width to device width for mobile -->
<meta name="viewport" content="width=device-width" />
<title>Welcome to Foundation | Marketing</title>
@codesynapse
codesynapse / Floyd's triangle.php
Created July 11, 2013 16:54
Floyd's triangle in PHP. PHP Porgram to print Floyd's triangle.
<html>
<body>
<form method="post" action="index.php">
<label>Enter the number :</label><input type="text" name="number"><br/>
<input type="submit" name="submit">
</form>
<?php
@codesynapse
codesynapse / pyramid-stars.php
Last active December 19, 2015 15:29
Pyramid of Stars Ascending Order in PHP. Take input from user and then show the stars or numbers in ascending order. We are using PHP in order to show this output.
<html>
<body>
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"], ENT_QUOTES, "utf-8"); ?>">
<label>Enter the number :</label><input type="text" name="number"><br/>
<input type="submit" name="submit">
</form>
<?php
@codesynapse
codesynapse / style.css
Created July 7, 2013 17:50
Revero Genesis HTML5 CSS Update
/*
Theme Name: Revero
Description: Revero sample theme created for the Genesis Framework.
Author: Mahesh
Author URI: http://www.sparxengine.net
Version: 2
Tags: black, orange, white, one-column, two-columns, three-columns, fixed-width, custom-menu, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
@codesynapse
codesynapse / php-mysql-login.php
Created June 7, 2013 13:46
PHP MySQL Login Dashboard
////// Login.php
<?php
session_start();
if($_SERVER["REQUEST_METHOD"] == "POST")
{
//if(isset($_POST['username'])){
@codesynapse
codesynapse / responsive.css
Created June 4, 2013 16:32
Mobile responsive CSS
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
/* Smartphones (landscape) ----------- */
@media only screen
and (min-width : 321px) {
@codesynapse
codesynapse / php-mysql-guestbook.php
Created May 26, 2013 12:52
PHP MySQL Guestbook
//Page one Index.php
<?php
//databsae connection
$data=mysql_connect("localhost","root","") or die(mysql_error());
$db=mysql_select_db("contact") or die(mysql_error());
@codesynapse
codesynapse / pyrus-1-column-layout
Last active December 16, 2015 00:19
Pyrus 1 Column Layout
<!doctype html>
<head>
<title>Pyrus</title>
<style type="text/css">
@import url(http://fonts.googleapis.com/css?family=Open+Sans);
/*CSS RESET*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
@codesynapse
codesynapse / 2-column-fixed-css-layout
Created April 6, 2013 07:22
Two column fixed width
// 2 Column Fixed CSS Layout Width
<div id="head-container">
<div id="header">
<h1>
Site name
</h1>
</div>
</div>
@codesynapse
codesynapse / 1-column-css-layout
Created April 6, 2013 06:26
One Column CSS Layout
// 1 Column CSS Layout HTML
<div id="container">
<div id="header">
<h1>
Site name
</h1>
</div>
<div id="navigation">