This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Author : Narendra Sisodiya | |
* Date : Thu Jul 19 18:16:38 IST 2012 | |
* Licence : Public Code | |
* Purpose : Inheritance | |
* | |
* Function.prototype.inheritFrom & NewClass.prototype._super | |
* It will not work for Manager Class | |
* Run in Chrome --- | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Author : Narendra Sisodiya | |
* Date : Thu Jul 19 18:16:38 IST 2012 | |
* Licence : Public Code | |
* Purpose : Inheritance | |
* Multilevel JavaScript Prototypal Inheritance | |
*/ | |
function inherit(Child){ | |
return { | |
"from": function(Parent){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Author : Narendra Sisodiya | |
* Date : Thu Jul 19 18:16:38 IST 2012 | |
* Licence : Public Code | |
* Purpose : Inheritance | |
* Multilevel JavaScript Prototypal Inheritance | |
*/ | |
function inherit(Child){ | |
return { | |
"from": function(Parent){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var html = '<h1 class="nar">Narendra</div>'; | |
var css = '.nar { color: red; background: url("http://google.com/images/google_favicon_128.png") repeat scroll 0 0 transparent;}'; | |
var nodeWhereToAppend = document.body; | |
//var nodeWhereToAppend = document.getElementById("container"); | |
function CreateIframe(html, css, nodeWhereToAppend){ | |
var fragment = document.createDocumentFragment(); | |
var iframe = document.createElement('iframe'); | |
iframe.onload = function(){ | |
var doc = this.contentWindow.document; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$boxwidth: 300px; | |
$boxheight: 200px; | |
$boxbackgroundcolor: #456343; | |
$whiteFontColor:#E3E1E1; | |
$bigFontsSize: 30px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var console = console || {}; | |
console.log = function(msg){ | |
$("body").append('<p>'+msg+'</p>'); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<button title="Save this File"> | |
{{LanguageService.Data.common.actions.SAVE}} | |
</button> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git checkout narendra | |
echo "On Narendra Branch now" | |
echo "== Fetch" | |
git fetch; | |
echo "== Rebasing now" | |
git stash && git rebase origin/master && git stash pop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var resourceFiles = grunt.file.readJSON('src/resource/resource.json'); | |
grunt.initConfig({ | |
concat: { | |
options: { | |
separator: ';', | |
}, | |
js: { | |
src: resourceFiles.js.dev.map(function(v, i) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://rawgithub.com/mikeric/rivets/master/dist/rivets.min.js | |
https://rawgithub.com/melanke/Watch.JS/master/src/watch.js | |
https://rawgithub.com/nsisodiya/watchjs-adapter-for-rivetsjs/master/watchjs-adapter-for-rivetsjs.js | |
See demo @ http://jsfiddle.net/nsisodiya/y3gDP/3/ |