Skip to content

Instantly share code, notes, and snippets.

View surjithctly's full-sized avatar

Surjith S M surjithctly

View GitHub Profile

Sass/Less Comparison

In this document I am using Sass's SCSS syntax. You can choose to use the indented syntax in sass, if you prefer it, it has no functional differences from the SCSS syntax.

For Less, I'm using the JavaScript version because this is what they suggest on the website. The ruby version may be different.

Variables

@surjithctly
surjithctly / Window height
Created February 11, 2014 10:59
Window height for div even on resize
$(document).ready(function(){
function e(){
var e=$(window).height();
$(".banner").css("height",e)
}
e(),$(window).resize(e)})

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

@surjithctly
surjithctly / gist:6f40d414afb913f52a2a
Created June 27, 2015 09:33
Remove root Password from PHPmyAdmin Localhost
/*
Wamp => SQL Console => Paste the code belwo
*/
SET PASSWORD FOR root@localhost=PASSWORD('');
@surjithctly
surjithctly / Sublime Shortcuts.md
Last active March 20, 2016 07:14
Sublime Text 3 for Beginners (Designers or Developers)

Sublime 3 Shortcuts

Shortcut Description
Ctrl + Shift + P Command Palette
Ctrl + D Multi Edit : Select the next same matched word
Alt + F3 Select all occurences of selected text
Ctrl + Click Every place you click will create a cursor to edit
Ctrl + F then Alt + Enter Highlight all occurences of selected word and to edit at same time
@surjithctly
surjithctly / bootstrap-nav-responsive.css
Last active August 29, 2015 14:24
Bootstrap Navigation Collapse on larger screens (eg: 992 or 1200)
/*
* Responsive Nav on larger screens
*/
@media (max-width: 992px) {
.navbar-header {
float: none;
}
.navbar-left,
.navbar-right {
@surjithctly
surjithctly / alt-codes.md
Last active September 22, 2017 11:45
Alt Codes => Windows Unicode Special Charactors

Alt Codes

Useful for Web Developers.

Name Symbol Alt + N HTML
Copyright © Alt + 0169 ©
Registered ® Alt + 0174 ®
Trademark Alt + 0153 ™
Left guillemet « Alt + 0171 «
@surjithctly
surjithctly / mail-test.php
Last active August 29, 2015 14:27 — forked from Dreyer/mail-test.php
Quick & Dirty PHP Mail Test Script
<?php
/*
DONT FORGET TO DELETE THIS SCRIPT WHEN FINISHED!
*/
ini_set( 'display_errors', 1 );
error_reporting( E_ALL );
$from = 'webmaster@example.com';
@surjithctly
surjithctly / emmet-sublime-shortcuts.md
Last active October 20, 2015 07:47
Emmet Sublime Shortcuts

Emmet Sublime Shortcuts

Expand CSS Properties

-transition

To expand Browser Prefixes, Type propery name with a leading dash (-) and press TAB or Ctrl + E

@surjithctly
surjithctly / Features Rotator.js
Created August 24, 2015 14:56
Features Rotator
/*http://good.co/*/
$(document).ready(function (){
// If menu item has classname "nav-no-click" then return false
$('li.nav-no-click > a').click( function() {
return false;
});
$('#features-rotator-row').find('.features-rotator-item').each(function(index, element) {