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
#import <Foundation/Foundation.h> | |
@class EventSource; | |
@protocol EventSourceDelegate <NSObject> | |
@optional | |
- (void)eventSourceDidOpenConnection:(EventSource*)eventSource; | |
- (void)eventSource:(EventSource*)eventSource didFailWithError:(NSError*)error; |
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
# app/models/concerns/obfuscation.rb | |
# ID obfuscation using Optimus algorithm | |
# TODO if we want to use this with more classes, it'd | |
# be best to make sure we use a different random seed | |
# for each model. | |
# Do something like this: http://jes.al/2014/11/creating-rails-concern-accepts-argumentsparameters/ | |
module Obfuscation | |
extend ActiveSupport::Concern |
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
import React from 'react'; | |
import { ActivityIndicator, StyleSheet, Text, View } from 'react-native'; | |
import { Navigation } from 'react-native-navigation'; | |
import Theme from '../../Theme'; | |
export interface Props { | |
message: string; | |
} |