Skip to content

Instantly share code, notes, and snippets.

<snippet>
<content><![CDATA[
class ${1:TABLENAME}TableSeeder extends Seeder {
public function run()
{
\$${1} = [
${2}
];
@hemantajax
hemantajax / todoapp.html
Created August 5, 2013 11:36
super simple todo app with backbone js
<!doctype html>
<html>
<head>
<title>Todo App - Super simple Todo App with Backbone JS</title>
<meta charset="utf-8" />
<style>
#todoapp ul {
list-style-type: none;
}
@hemantajax
hemantajax / media-queries.css
Last active March 2, 2024 07:05
Very useful media queries snippets
/* 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) {
@hemantajax
hemantajax / responsive-image.html
Created June 20, 2013 06:29
Responsive Image
<!DOCTYPE html>
<html>
<head>
<title>Responsive Image</title>
<meta charset="utf-8" />
<style>
#wrapper{
border: 1px solid #ccc;
width: 80%;
margin:20px;
@hemantajax
hemantajax / vim
Created June 10, 2013 15:03
vim basics
VIM:
moving:
gg - beginning of file
G - end of file
$ - end of line
^ - beginning of line
Basic Editing:
@hemantajax
hemantajax / testing-resources
Created June 2, 2013 08:20
Cross Browser Testing Resources
Cross Browser Testing Resources:
Mozilla addons:
- colorzilla
https://addons.mozilla.org/en-us/firefox/addon/colorzilla/
- MeasureIt
https://addons.mozilla.org/en-us/firefox/addon/measureit/?src=search
@hemantajax
hemantajax / responsive design myth
Last active December 16, 2015 04:29
responsive-myth
Responsive web design Myth:
1: Fluid Grids (not liquid layout)
-set html font size for browser consistency
html{
font-size:16px;
}
- 10 is good divider so
@hemantajax
hemantajax / custom-list-styling.html
Created March 30, 2013 13:28
custom list styling
<!doctype html>
<html>
<head>
<title>custom list styling</title>
<meta charset="utf-8" />
<style>
#wrapper{
background: #eee;
width: 80%;
border: 1px solid #ccc;
@hemantajax
hemantajax / set-virtual-host
Created March 17, 2013 08:24
set-virtual-host
How to set virtual host in windows 7:
1: C:\xampp\apache\conf\extra\httpd-vhosts.conf
add below lines:
<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs\l3.2\public"
ServerName "site.dev"
</VirtualHost>
@hemantajax
hemantajax / git-basic-commands
Created February 14, 2013 12:23
how to use git
How to use git
git init
git status
git add .
git commit -m "my 1st commit"
git log
sign in or create your GitHub account.
git remot­e add origi­n git@g­ithub.com:­hemantajax­/try_git.g­it
git push -u origi­n maste­r