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
/** | |
* Copyright (c) 2015, Facebook, Inc. All rights reserved. | |
* | |
* Facebook, Inc. ("Facebook") owns all right, title and interest, including | |
* all intellectual property and other proprietary rights, in and to the React | |
* Native CustomComponents software (the "Software"). Subject to your | |
* compliance with these terms, you are hereby granted a non-exclusive, | |
* worldwide, royalty-free copyright license to (1) use and copy the Software; | |
* and (2) reproduce and distribute the Software as part of your own software | |
* ("Your Software"). Facebook reserves all rights not expressly granted to |
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> | |
<script type="text/javascript"> | |
var x = 3; | |
</script> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
alert('x is ' + 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
var React = require('react-native'); | |
var { | |
Image, | |
ScrollView, | |
StyleSheet, | |
Text, | |
View, |
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
'use strict'; | |
var React = require('react-native'); | |
var { | |
Image, | |
ScrollView, | |
StyleSheet, | |
Text, |
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 React = require('react-native'); | |
var { | |
Image, | |
ListView, | |
TouchableHighlight, | |
StyleSheet, | |
Text, | |
View, | |
} = React; |
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
/** | |
* @providesModule TapDemoItem | |
* @flow | |
*/ | |
'use strict'; | |
var React = require('react-native'), | |
styles = require('./TapDemoStyles'); | |
var { |
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
/** * | |
* @providesModule DemoApp | |
* @flow | |
*/ | |
'use strict'; | |
var React = require('react-native'), | |
styles = require('./Styles'), | |
TapDemoItem = require('./TapDemoItem/TapDemoItem'); |
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
// possible options: cli_variables, www_dir, is_top_level | |
// Returns a promise. | |
var runInstall = module.exports.runInstall = function runInstall(actions, platform, project_dir, plugin_dir, plugins_dir, options) { | |
var xml_path = path.join(plugin_dir, 'plugin.xml') | |
, plugin_et = xml_helpers.parseElementtreeSync(xml_path) | |
, filtered_variables = {}; | |
var name = plugin_et.findall('name').text; | |
var plugin_id = plugin_et.getroot().attrib['id']; | |
require('../plugman').emit('log', 'Starting installation of "' + plugin_id + '" for ' + platform); |
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
Step 1: | |
Open your browser and visit: https://developer.apple.com/wwdc/videos/ | |
Step 2: | |
Paste the following in your debugger: | |
items = document.querySelectorAll('.session') | |
hrefs = document.querySelectorAll('.download') | |
for (var i = 0; i < items.length; 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
Ext.define('MyApp.MainContainer', { | |
extend : 'Ext.Container', | |
requires : [ | |
'MyApp.PersonList', | |
'MyApp.PersonDetail' | |
], | |
config : { | |
layout : { | |
type : 'hbox', | |
align : 'stretch' |