This file contains hidden or 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 { StatusBar } from "expo-status-bar"; | |
import React from "react"; | |
import { StyleSheet, Text, View } from "react-native"; | |
import { NavigationContainer } from "@react-navigation/native"; | |
import { createNativeStackNavigator } from "@react-navigation/native-stack"; | |
import ProfileScene from "./ProfileScene"; | |
import CountryPickerScene from "./CountryPickerScene"; | |
const Stack = createNativeStackNavigator(); |
This file contains hidden or 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
// This file is from an actual react app that would install the library outlined in the rest of these files | |
import React from 'react' | |
import { SafeAreaView, StyleSheet, View } from 'react-native' | |
import RichTextEditor from 'react-native-rich-text-editor' | |
const styles = StyleSheet.create({ | |
body: { | |
flex: 1, | |
}, | |
inputContainer: { |
This file contains hidden or 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
version: 2 | |
references: | |
base_container_config: &base_container_config | |
docker: | |
- image: circleci/node:8 | |
working_directory: ~/repo | |
test_container_config: &test_container_config | |
docker: |
This file contains hidden or 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
""" Give a) points in localcoordinate system b) a gps lat long of the origin of the local coordinate system, | |
this script helps to convert XYZ to latlong. | |
Beware that the transformation will be off by an yaw angle. This is because the local cordinate frame is may/or may not align with the East-North-Up frame. | |
The way it works is XYZ --> ECEF --> geodedic (latlong) | |
main reference is still the wiki https://en.wikipedia.org/wiki/Geographic_coordinate_conversion#From_ECEF_to_ENU. | |
However the procedure to convert from ECEF to geodedic in wikip does not give accurate results. Instead the algorithm |
This file contains hidden or 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
//RCTListViewManger.h | |
#import <UIKit/UIKit.h> | |
@interface RCTNativeListView : UIView | |
@property (nonatomic) NSArray * colors; | |
@end | |
-------------------------------------------------------------------------------- | |
//RCTListViewManger.m |
This file contains hidden or 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
// | |
// UIImage+Resize.swift | |
// Port of UIImage+Resize.m | |
// from http://vocaro.com/trevor/blog/2009/10/12/resize-a-uiimage-the-right-way/ | |
// | |
import Foundation | |
import UIKit | |
extension UIImage { |
This file contains hidden or 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 MyJob < ActiveJob::Base | |
queue_as :urgent | |
rescue_from(NoResultsError) do | |
retry_job wait: 5.minutes, queue: :default | |
end | |
def perform(*args) | |
MyService.call(*args) | |
end |
This file contains hidden or 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
// dependencies ---------------------------------------------------------------------- | |
import Reflux from 'reflux'; | |
import Actions from '../actions/Actions'; | |
import request from 'superagent'; | |
import config from '../config'; | |
let UserStore = Reflux.createStore({ | |
// store setup ----------------------------------------------------------------------- |
NewerOlder