Skip to content

Instantly share code, notes, and snippets.

View josefrichter's full-sized avatar

Josef Richter josefrichter

View GitHub Profile
class Application extends React.Component {
constructor() {
super();
this.state = {
currentUser: null,
joinError: null,
};
}
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.
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
/**
* 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');
/**
* 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');
'use strict';
var React = require('react-native');
var Parse = require('parse').Parse;
var ParseReact = require('parse-react');
var DetailScreen = require('./DetailScreen');
var {
StyleSheet,
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var PushManager = require('./RemotePushIOS');
var registerInstallation = require('./Installation');
var WEBVIEW_REF = 'webview';
class LaunchScreen extends React.Component {
goTo(route) {
this.refs.nav.push(route)
}
receiveRemoteNotification(notification) {
var onPressFollow = function() {
console.log("follow");
@josefrichter
josefrichter / .htaccess
Created May 14, 2015 11:05
Simple password protection of Framer.js projects pushed to Heroku
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^https://(.*\.)?herokuapp.com [NC]
RewriteCond %{HTTP_REFERER} !^https://(.*\.)?herokuapp.com.*$ [NC]
RewriteRule \.(html|coffee|js)$ - [F]
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