View scrollToElement.js
function findPos (obj) {
let curtop = 0
if (obj.offsetParent) {
do {
curtop += obj.offsetTop
obj = obj.offsetParent
} while (obj)
return [curtop]
}
}
View deploy.rb
require 'mina/rails'
require 'mina/git'
require 'mina/rvm'
# Basic settings:
# domain - The hostname to SSH to.
# deploy_to - Path to deploy into.
# repository - Git repo to clone from. (needed by mina/git)
# branch - Branch name to deploy. (needed by mina/git)
View build.sh
react-native bundle --dev false --platform ios --entry-file index.ios.js --bundle-output ../main.jsbundle --minify
View currencyData.json
[
{
"symbol": "$",
"name": "US Dollar",
"symbol_native": "$",
"decimal_digits": 2,
"rounding": 0,
"code": "USD",
"delimiter": ",",
"separator": ".",
View MainView.js
'use strict';
import React from 'react-native';
const {
StyleSheet,
Text,
View,
ListView,
TouchableHighlight
} = React;
View index.ios.js
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
import React, {
AppRegistry,
Component,
StyleSheet,
Text,
View PlayState.hx
package;
import flixel.FlxG;
import flixel.FlxState;
import flixel.addons.weapon.FlxBullet;
import flixel.addons.weapon.FlxWeapon;
import flixel.util.FlxColor;
/**
* A FlxState which can be used for the actual gameplay.
View oop-1_rectangle.js
// Point
var Point = (function() {
'use strict';
function Point(x, y) {
var x;
var y;
if (!(this instanceof Point)) {
return new Point(x, y);
}
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js"></script>
<script src="http://builds.emberjs.com/tags/v1.5.1/ember.js"></script>