- A collection of awesome things regarding React ecosystem.
- Building Applications with React and Flux By Cory House
- ReactJS For Stupid People Ignore the title, good introduction
- React.js Tutorial Pt 1: A Comprehensive Guide to Building Apps with React.js
- React.js Introduction For People Who Know Just Enough jQuery To Get By Ignore the title, good introduction
- 5 Steps for Learning React Application Development
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
<script type="text/javascript"> | |
<!-- | |
function toggle_visibility(id) { | |
var e = document.getElementById(id); | |
if(e.style.display == 'block') | |
e.style.display = 'none'; | |
else | |
e.style.display = 'block'; | |
} | |
//--> |
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
function sieveOfAtkin(limit){ | |
var limitSqrt = Math.sqrt(limit); | |
var sieve = []; | |
var n; | |
//prime start from 2, and 3 | |
sieve[2] = true; | |
sieve[3] = true; | |
for (var x = 1; x <= limitSqrt; x++) { |
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
function Type () {} | |
var types = [ | |
new Array(), | |
[], | |
new Boolean(), | |
true, // remains unchanged | |
new Date(), | |
new Error(), | |
new Function(), |
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
{ | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", | |
"*.tga", | |
"*.dds", |
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
The apply() method calls a function with a given this value and arguments provided as an array (or an array-like object). | |
Note: While the syntax of this function is almost identical to that of call(), | |
the fundamental difference is that call() accepts an argument list, while apply() accepts a single array of arguments. | |
Examples | |
Using apply to chain constructors | |
You can use apply to chain constructors for an object, similar to Java. In the following example we will create a global Function method called construct, which will enable you to use an array-like object with a constructor instead of an arguments list. |
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
<html> | |
<head> | |
<title>Basic Html Tags</title> | |
</head> | |
<body> | |
<img src ="Path of the file">//imagefile | |
<b>Hello</b>//bold | |
<i>hai</i>//italic | |
<u>Wonderful</u>//underlined | |
</body> |
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
(function( window ){ | |
window.watchResize = function( callback ){ | |
var resizing; | |
callback.size = 0; | |
function done() | |
{ | |
var curr_size = window.innerWidth; | |
clearTimeout( resizing ); | |
resizing = null; | |
// only run on a true resize |
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
/* Modern Modules | |
Various module dependency loaders/managers essentially wrap up this pattern of module definition into a friendly API */ | |
MyModules.define("bar", [], function() { | |
function hello(who) { | |
return "Let me introduce: " + who; | |
} | |
return { | |
hello: hello | |
}; |