Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / http-service.html
Created August 26, 2014 07:13
REST API calls with angular js $http service
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>REST API calls with Angular $http in-built service</title>
<link href="http://getbootstrap.com/dist/css/bootstrap.css" rel="stylesheet" type="text/css" />
<style>
[ng\:cloak],
[ng-cloak],
@hemantajax
hemantajax / ng-resource-rest.html
Created August 25, 2014 13:07
Rest api calls with Angular Js ngResource module
<!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]
<!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],
Basic SEO Markup:
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>70 Characters Maximum</title>
<meta name="description" content="Enter description here">
<link rel="author" href="https://plus.google.com/LINK-TO-GOOGLE-PLUS-PROFILE">
<link rel="canonical" href="/category/preferred-url.html">
<!-- Meta Tags for Social Media -->
.grid-overlay:before {
content: "";
position: fixed;
background-color: rgba(34,102,153,0.5);
background: -webkit-linear-gradient(skyblue 2px, transparent 2px), -webkit-linear-gradient(0, skyblue 2px, transparent 2px), -webkit-linear-gradient(skyblue 1px, transparent 1px), -webkit-linear-gradient(0, skyblue 1px, transparent 1px);
background: -moz-linear-gradient(skyblue 2px, transparent 2px), -moz-linear-gradient(0, skyblue 2px, transparent 2px), -moz-linear-gradient(skyblue 1px, transparent 1px), -moz-linear-gradient(0, skyblue 1px, transparent 1px);
background: -o-linear-gradient(skyblue 2px, transparent 2px), -o-linear-gradient(0, skyblue 2px, transparent 2px), -o-linear-gradient(skyblue 1px, transparent 1px), -o-linear-gradient(0, skyblue 1px, transparent 1px);
background: -ms-linear-gradient(skyblue 2px, transparent 2px), -ms-linear-gradient(0, skyblue 2px, transparent 2px), -ms-linear-gradient(skyblue 1px, transparent 1px), -ms-linear-gradient(0, skyblue 1px, transparent 1px);
background
<snippet>
<content><![CDATA[
// ${1} Resource
Route::get('${1}s', array('as' => '${1}s', 'uses' => '${1}s@index'));
Route::get('${1}s/(:any)', array('as' => '${1}', 'uses' => '${1}s@show'));
Route::get('${1}s/new', array('as' => 'new_${1}', 'uses' => '${1}s@new'));
Route::get('${1}s/(:any)edit', array('as' => 'edit_${1}', 'uses' => '${1}s@edit'));
Route::post('${1}s', '${1}s@create');
Route::put('${1}s/(:any)', '${1}s@update');
Route::delete('${1}s/(:any)', '${1}s@destroy');