Monday, February 13, 2012

.ready() – jQuery API

.ready() – jQuery API: "The .ready() method is typically used with an anonymous function:

$(document).ready(function() {
// Handler for .ready() called.
});"

'via Blog this'

Source Checkout - closure-linter - Closure Linter - Google Project Hosting

Source Checkout - closure-linter - Closure Linter - Google Project Hosting: "svn checkout http://closure-linter.googlecode.com/svn/trunk/ closure-linter-read-only
"

'via Blog this'

v8jslint the JSLint command line tool powered by v8 | Steve's stuff

v8jslint the JSLint command line tool powered by v8 | Steve's stuff: "v8jslint is a command line tool that uses JSLint to verify the quality of other JavaScript programs. v8jslint uses Google’s v8 open source, high performance JavaScript engine. v8jslint supports all JSLint options on the command line."

'via Blog this'

determination




You must all have a firm determination. Even if total destruction comes or any great calamity comes,
you must not be shaken from your determination. If there is a great flood, if fire breaks out -
in any calamity - you must be so brave and determined that you would jump into fire or water.

You must inspire others also to become brave and courageous. Only he who has courage is a
true living being. One who has no courage is like a dead man, even though he lives.
We have tightened our belts and taken a firm determination to do good to the world and uplift humanity.
You must stick to this resolve with your full energy.
Calamities will fall not just on one country but on the whole universe; the whole universe is in danger.
The terrible times which are approaching will engulf the whole world; the whole universe
will be enveloped in this destruction. We must consider not only ourselves but also the whole of the universe.
We can achieve anything in this world when we are hard working and industrious.
Because you must consider the whole universe, we should say "Jai Vishwa!" instead of "Jai Hind!"



toJSON is important!




console.log(donut_template(d.toJSON()));
$('#content').append(donut_template(d.toJSON()));




Nightlines - Wikipedia, the free encyclopedia

Nightlines - Wikipedia, the free encyclopedia: "Nightlines was a Canadian radio series, which aired on CBC Stereo from 1982 to 1997.[1] The show, which aired on Friday and Saturday nights, profiled independent and alternative music.[1]"

'via Blog this'

Alex Rothenberg - Backbone.js Makes Building JavaScript Applications Fun

Alex Rothenberg - Backbone.js Makes Building JavaScript Applications Fun: "We want to follow good OO design principles and thinking about this our exception stack is really just a few objects:

A Stack
has many Addresses
knows which Address is selected
Each Address has
path to a file
line number
snippet of code"

'via Blog this'

What is a view? - Backbone.js Tutorials

What is a view? - Backbone.js Tutorials: "SearchView = Backbone.View.extend({
initialize: function(){
alert("Alerts suck.");
}
});

var search_view = new SearchView({ el: $("#search_container") });"

'via Blog this'

What is a view? - Backbone.js Tutorials

What is a view? - Backbone.js Tutorials: "Backbone views are used to reflect what your applications’ data models look like. They are also used to listen to events and react accordingly. This tutorial will not be addressing how to bind models and collections to views but will focus on view functionality and how to use views with a JavaScript templating library, specifically Underscore.js’s _.template."

'via Blog this'

FastCompany.com - Where ideas and people meet | Fast Company

FastCompany.com - Where ideas and people meet | Fast Company:

'via Blog this'

An Intro to Backbone.js: Part 3 – Binding a Collection to a View - Liquid Media

An Intro to Backbone.js: Part 3 – Binding a Collection to a View - Liquid Media: "This is a pattern I use fairly often. A View that is composed of other views. In this way you can easily reuse functionality between Views."

'via Blog this'

calls




window.calls.each(function(call) {
console.log(call.get("name"));
});

console.log((calls.at(0)).get("name"));




An Intro to Backbone.js: Part 2 – Controllers and Views - Liquid Media

An Intro to Backbone.js: Part 2 – Controllers and Views - Liquid Media: "DonutView = Backbone.View.extend({
  tagName : "div",
  className : "donut",
 
  render : function() {
    this.el.innerHTML = this.model.get('name');
 
    return this;
  }
});"

'via Blog this'

Function.apply and Function.call in JavaScript

Function.apply and Function.call in JavaScript: "We can also pass arguments to the target function via call():

var x = 10;
var o = { x: 15 };
function f(message)
{
    alert(message);
    alert(this.x);
}

f("invoking f");
f.call(o, "invoking f via call");
The apply() method is identical to call(), except apply() requires an array as the second parameter. The array represents the arguments for the target method."

'via Blog this'

call - MDN

call - MDN: "Syntax

fun.call(thisArg[, arg1[, arg2[, ...]]])

Parameters

thisArg
The value of this provided for the call to fun.  Note that this may not be the actual value seen by the method: if the method is a function in non-strict mode code, null and undefined will be replaced with the global object, and primitive values will be boxed.
arg1, arg2, ...
Arguments for the object."

'via Blog this'

Burnout Is Real: How to Identify and Address Your Burnout Problem

Burnout Is Real: How to Identify and Address Your Burnout Problem: "Be Patient
As previously mentioned, undoing burnout takes time. While you may start to feel better quickly, overriding your previous descent into exhaustion is a long-term process and you can't expect to fix it all in a snap. As you work your way back to feeling better, more energized, and generally happier with your work and personal lives, set both long and short term goals to help you remember that this is a process. Seeing yourself achieve these goals over time will help you know that progress is being made even when it feels like nothing is happening at all. Burnout is difficult to overcome, but you'll get there if you're dedicated.

"

'via Blog this'

Burnout Is Real: How to Identify and Address Your Burnout Problem

Burnout Is Real: How to Identify and Address Your Burnout Problem: "A generally negative attitude, often paired with the feeling that nothing is going to work out.
Inability to concentrate.
General apathy towards your work, chores, and other tasks.
Feelings of stagnation.
A lack of interest in social activities and being with others.
Difficulty with healthy habits like exercise, diet, and regular sleep.
Feeling like you're never doing enough.
Neglecting your own needs (and putting the needs of others ahead of your own).
Personal values and beliefs lose their importance.
Short temper.
Constant exhaustion.
Feelings of inefficacy.
Feelings of detachment from people and things you care about.
Frequent boredom.
Psychosomatic complaints, such as headaches, lingering colds, and other issues with a cause that's difficult to identify.
The denial of these feelings."

'via Blog this'

Function.apply and Function.call in JavaScript

Function.apply and Function.call in JavaScript: "var x = 10;
var o = { x: 15 };

function f()
{
    alert(this.x);
}

f();
f.call(o);
The first invocation of f() will display the value of 10, because this references the global object. The second invocation (via the call method) however, will display the value 15. 15 is the value of the x property inside object o. The call() method invokes the function and uses its first parameter as the this pointer inside the body of the function. In other words - we've told the runtime what object to reference as this while executing inside of function f(). "

'via Blog this'

Jslint Is Not A Code Quality Tool For 3rd Party Code

Jslint Is Not A Code Quality Tool For 3rd Party Code: "console.log('hi')

(function(){
console.log('there')
})
will be interpreted as this:

console.log('hi')(function(){
console.log('there')
})()"

'via Blog this'

Web Storage

Web Storage:

'via Blog this'