Skip to content

Instantly share code, notes, and snippets.

View nikitph's full-sized avatar
:electron:
CTO @Makua Building a better world with tech .... and empathy

Nikit phadke nikitph

:electron:
CTO @Makua Building a better world with tech .... and empathy
View GitHub Profile
<div class="preloader-wrapper big active" style="width: 100px;
height: 100px;
position: absolute;
top:0;
bottom: 0;
left: 0;
right: 0;
margin: auto;">
@nikitph
nikitph / desc
Created September 7, 2016 21:17
ssh digital ocean github
private key upload to DO
public to github
import React, { Component } from 'react';
import {
View,
TouchableHighlight,
Text,
Image
} from 'react-native';
import { deviceDimensions } from '../styles';
import Header from '../components/Header';
import React, { Component } from 'react';
import {
View,
TouchableHighlight,
Text,
StyleSheet
} from 'react-native';
import { getHostEvents, generateTeasers } from '../../helpers/events';
<View style={{flexDirection:'row'}}>
<View style={{flex:0.9}}>
<Accordion
sections={SECTIONS}
underlayColor={'white'}
renderHeader={()=><View style={{flexDirection:'row', flexWrap: styl }}>{specialtyTags}
</View>}
renderContent={()=><View style={{flexDirection:'row', flexWrap: 'wrap'}}>{specialtyTags}</View>}
/>
import React, {Component} from 'react';
import {
View,
TouchableHighlight,
Text,
Image,
LayoutAnimation
} from 'react-native';
import Carousel from 'react-native-snap-carousel';
import { deviceDimensions } from '../../styles';
export function sendEmail3 (street, city, state, zipcode, result) {
const apiKey = 'AIzaSyAJsjUXXov9ixQRedr2NKlF639v2oDjTBk';
console.log(street);
console.log(encodeURIComponent(street));
return fetch('https://maps.googleapis.com/maps/api/geocode/json?new_forward_geocoder=true&strictbounds&' +
'address=' + (street) + '&components=postal_code:' + ((zipcode).toString()) + '|locality:' + (city) +
'|administrative_area:' + (state) + '&key=' + apiKey).then((response) => {
console.log(response);
import React, { Component } from 'react'
import { updateProfile, capitalizeWord } from '../../helpers/form'
import { database } from '../../helpers/firebase'
import actions from '../../redux/actions'
import store from '../../redux/store'
import { verifyAddress } from '../../helpers/email'
import { View, Text, TextInput, AsyncStorage, ScrollView } from 'react-native'
import RadioForm from 'react-native-simple-radio-button'
import style from './style'
import colorsVariables from '../../styles/variables'
import React, {Component} from 'react';
import {
View,
Text,
Image,
TouchableHighlight,
ScrollView
} from 'react-native';
import Carousel from 'react-native-snap-carousel';
<View className="address">
<Text style={globalStyles.formSubTitle}>Address</Text>
<TextInput
style={globalStyles.textInput}
placeholderTextColor='white'
placeholder="Street Address"
onChangeText={ (value) => this.handleChange(value, 'street') } />
<View style={globalStyles.formAddress2ndRow}>
<View style={globalStyles.formAddressItem}>
<TextInput