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
class Application extends React.Component { | |
constructor() { | |
super(); | |
this.state = { | |
currentUser: null, | |
joinError: null, | |
}; | |
} |
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
const _fbBase = new Firebase('https://•••••••••.firebaseIO.com'); | |
_fbBase.child('users/'+newUserID+'/conversations').on('value', function(snap){ | |
var obj = snap.val(); | |
var arr = Object.keys(obj).map(function (key) {return obj[key]}); // just converting to array - http://stackoverflow.com/a/26166303 | |
_this.setState({conversations: arr}); | |
}); | |
class ConvoList extends React.Component { |
This file has been truncated, but you can view the full file.
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
0 info it worked if it ends with ok | |
1 verbose cli [ '/usr/local/Cellar/node/5.0.0/bin/node', | |
1 verbose cli '/usr/local/bin/npm', | |
1 verbose cli 'install', | |
1 verbose cli 'sinch-rtc', | |
1 verbose cli '--save' ] | |
2 info using npm@3.3.9 | |
3 info using node@v5.0.0 | |
4 silly loadCurrentTree Starting | |
5 silly install loadCurrentTree |
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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
*/ | |
'use strict'; | |
var React = require('react-native'); | |
// var module = require('../RCTRealtimeMessagingIOS.js'); | |
// var RCTRealtimeMessaging = new module(); | |
var RCTRealtimeMessaging = require('./RCTRealtimeMessagingIOS.js'); |
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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
*/ | |
'use strict'; | |
const React = require('react-native'); | |
const FBSDKCore = require('react-native-fbsdkcore'); | |
const FBSDKLogin = require('react-native-fbsdklogin'); |
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 Parse = require('parse').Parse; | |
var ParseReact = require('parse-react'); | |
var DetailScreen = require('./DetailScreen'); | |
var { | |
StyleSheet, |
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
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
*/ | |
'use strict'; | |
var PushManager = require('./RemotePushIOS'); | |
var registerInstallation = require('./Installation'); | |
var WEBVIEW_REF = 'webview'; |
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
class LaunchScreen extends React.Component { | |
goTo(route) { | |
this.refs.nav.push(route) | |
} | |
receiveRemoteNotification(notification) { | |
var onPressFollow = function() { | |
console.log("follow"); |
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
RewriteEngine on | |
RewriteCond %{HTTP_REFERER} !^https://(.*\.)?herokuapp.com [NC] | |
RewriteCond %{HTTP_REFERER} !^https://(.*\.)?herokuapp.com.*$ [NC] | |
RewriteRule \.(html|coffee|js)$ - [F] |
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
class Myrecord < ActiveRecord::Base | |
# property :id, Serial | |
# property :name, String, length: 4..35 | |
# property :desc, Text | |
# | |
# timestamps :at | |
# | |
attr_accessor :foo # this one is NOT persisted in database | |
end |