Skip to content

Instantly share code, notes, and snippets.

View arbaaz's full-sized avatar
🔥
Building an amazing product

Arbaaz arbaaz

🔥
Building an amazing product
View GitHub Profile
@arbaaz
arbaaz / CSS:menu
Last active December 22, 2015 12:49 — forked from jonesmac/gist:4747137
#menu {
float: right;
position: relative;
left: -50%;
}
#menu ul {
position: relative;
left: 50%;
}
#menu li {
@arbaaz
arbaaz / sublime.reg
Created September 8, 2013 05:50
Open folder with sublime text 2.
Windows Registry Editor Version 5.00
; This will make it appear when you right click ON a folder
; The "Icon" line can be removed if you don't want the icon to appear
[HKEY_CLASSES_ROOT\Directory\shell\sublime]
@="Open Folder as &Sublime Project"
"Icon"="\"C:\\Program Files\\Sublime Text 2\\sublime_text.exe\",0"
[HKEY_CLASSES_ROOT\Directory\shell\sublime\command]
@arbaaz
arbaaz / Gzip.htaccess
Created September 10, 2013 06:27
htaccess:gzip
# BEGIN GZIP
# mod_gzip compression (legacy, Apache 1.3)
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|xml|txt|css|js)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
@arbaaz
arbaaz / navbar.html
Created September 10, 2013 08:43
Responsive Navigation bar
<!DOCTYPE html>
<html>
<head>
<title>Scaffolding:fixed|</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
@arbaaz
arbaaz / .htaccess
Created September 10, 2013 12:50
htaccess:assets(To Add css and js to the project)
RewriteEngine on
RewriteCond $1 !^(index\.php|images|assets|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
@arbaaz
arbaaz / handlebars.html
Created October 26, 2013 13:52
handlebar sample
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>test</title>
</head>
<body>
<script type="text/x-handlebars-template" id='template'>
{{#each this}}
<h1>{{title}}</h1>
@arbaaz
arbaaz / style.css
Created November 3, 2013 09:02
WordPress
/*
Theme Name:My first Theme
Description:My first wordpress theme
version:1.786
Author:Abdul Arbaaz
*/
<?php
$menu_name = 'main_nav';
$locations = get_nav_menu_locations();
$menu = wp_get_nav_menu_object( $locations[ $menu_name ] );
$menuitems = wp_get_nav_menu_items( $menu->term_id, array( 'order' => 'DESC' ) );
?>
<nav>
<ul class="main-nav">
<?php
@arbaaz
arbaaz / .htaccess
Created December 31, 2013 22:15
dothtaccess file for the permalinks of the wordpress
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
@arbaaz
arbaaz / header.php
Created January 5, 2014 08:29
wordpress_menu
<?php
$defaults = array(
'theme_location' => '',
'menu' => '',
'container' => 'div',
'container_class' => 'collapse navbar-collapse navHeaderCollapse',
'container_id' => '',
'menu_class' => 'nav navbar-nav navbar-right',
'menu_id' => '',