Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>REST API calls with Angular ngResource module</title>
<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet" type="text/css" />
<style>
[ng\:cloak],
[ng-cloak],
@hemantajax
hemantajax / git.TODO
Created July 3, 2014 11:52
Git Basics
Git Config:
☐ git config --global user.name "John Doe"
☐ git config --global user.email johndoe@example.com
Check your config setting:
You can use git config --list, or look at your ~/.gitconfig file. Local config will be in your repository's .git/config file.
Configure Diff tool- ~/.gitconfig:
[merge]
@hemantajax
hemantajax / Gruntfile.js
Created August 28, 2014 11:29
Grunt Build Process for angular JS app
module.exports = function(grunt) {
var appPath = 'app/',
indexPath = appPath + 'index.html',
cssFiles = [],
jsFiles = [];
buildNumber = Math.floor(Math.random() * 10000);
function getFilesList(indexPath, appPath) {
var indexContents,
scriptTagsPattern,
@hemantajax
hemantajax / angular-directive.md
Last active August 29, 2015 14:05
Custom angular directive usecases

Angular Directive:

When to use directives:

1- If you want reusable HTML components

<my-widget>
@hemantajax
hemantajax / jquery-mastery.md
Created September 23, 2014 18:00
jQuery Mastery

Day 1

jQuery Get Started

  • What is jQuery, Why jQuery
  • Core concept
  • jQuery & History of DOM Scripting
  • jQuery & Dom scripti

Javascript you need to know before jQuery (Must Know)

@hemantajax
hemantajax / html5.html
Created March 7, 2012 17:25
HTML:html5 template
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title></title>
<meta charset="utf-8" />
<link rel="stylesheet" href="http://184.154.231.7/~jerusal0/skin/frontend/default/jm_bistro/joomlart/jmslideshow/css/jm.slideshow.css">
<style>
</style>
</head>
@hemantajax
hemantajax / ie-hack
Created March 7, 2012 17:36 — forked from HungYuHei/ie-hack
ie hack
selector{
property:value; /* all browser */
property:value\9; /* all IE */
padding:8px\0; /* ie8-9 */
*padding:5px; /* ie6-7 */
+property:value; /* IE7 */
_property:value; /* IE6 */
}
<!--[if !IE]>NOT IE<![endif]-->
@hemantajax
hemantajax / yql.html
Created March 9, 2012 17:08
YQL:yql simple use
<!doctype html>
<head>
<title>YQL Simple Use</title>
<meta charset="utf-8" />
<style>
#result{
width:800px;
margin: 20px auto;
background-color: #DDD;
}
@hemantajax
hemantajax / progress-meter.html
Created March 11, 2012 10:16
HTML5:progress and meter
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>Progress and Meter</title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<style>
article, aside, figure, footer, header, hgroup,
@hemantajax
hemantajax / image-tooltip.html
Created April 29, 2012 18:22
tooltip for image on hover
<!doctype html>
<html>
<head>
<title>Image Tooltip</title>
<meta charset="utf-8" />
<style>
a{
border:1px solid #00f;
display: inline-block;
}