Skip to content

Instantly share code, notes, and snippets.

View Hemant27031999's full-sized avatar
🤠
Exploring the world around

Hemant_Yadav Hemant27031999

🤠
Exploring the world around
View GitHub Profile
@Hemant27031999
Hemant27031999 / hugesnet.py
Created September 24, 2021 15:59
Hugesnet ISP reverse API
import requests
from Address import Address
import json
from urllib.parse import quote
from geopy.geocoders import Nominatim
def make_request(address):
locator = Nominatim(user_agent="myGeocoder")
@Hemant27031999
Hemant27031999 / finalreportGSoC2020.md
Last active August 28, 2020 11:44
GSOC 2020 Final Report

GSoC 2020 - Hemant

Project - Implementation of SBML-JSON converter and SBML-JSON scheme
Organization - National Resource for Network Biology (NRNB)
Mentors

import React, { Component } from "react";
import { FlatList, Text, View, Image, TextInput, StyleSheet,TouchableHighlight, } from "react-native";
import Toast, {DURATION} from 'react-native-easy-toast';
export default class FriendRequest extends Component {
static navigationOptions =
{
title: 'FriendRequest',
import React, { Component } from "react";
import { FlatList, Text, View, Image, TextInput, StyleSheet,TouchableHighlight, } from "react-native";
import Toast, {DURATION} from 'react-native-easy-toast';
export default class AllUsers extends Component {
static navigationOptions =
{
title: 'AllUsers',
import React, { Component, useState } from "react";
import { FlatList, Text, View, Image, TextInput, StyleSheet,TouchableHighlight, KeyboardAvoidingView } from "react-native";
import { AppLoading } from 'expo';
import SignIn from '../SignIn';
import Register from '../Register';
import FriendsList from './FriendsList'
import { Ionicons } from "@expo/vector-icons";
import Welcome from './Welcome'
import {createAppContainer} from 'react-navigation';
import Pusher from 'pusher-js/react-native';
loadChattingUser = (loadingData) => {
this.setState({ 'msgingChat': [] });
this.setState({friend: {
'name': loadingData.name,
'imageURL': loadingData.imageurl,
'email':loadingData.email,
'msgDatabase': loadingData.msgdata
}})
this.state = {
.......
friend: {
name: '',
email: '',
imageURL: '',
status: '',
msgDatabase: ''
},
<FlatList
horizontal
data={this.state.friendslist}
style={{height: '15%', width: '100%'}}
renderItem={({ item: rowData }) => {
return (
<TouchableHighlight
style={{width: 80, height: 85, padding: 10, borderTopLeftRadius:40, borderTopRightRadius:40, borderBottomLeftRadius:10, borderBottomRightRadius:10, flex: 1, alignItems: 'center', marginHorizontal: 2, borderWidth: this.state.friend.name === rowData.name ? 0 : 2, borderColor: '#000000', backgroundColor: this.state.friend.name === rowData.name ? '#bac4bc' : '#8c8f8a'}}
onPress={() => this.loadChattingUser(rowData)}>
<View style={{flex: 1, alignItems: 'center', marginHorizontal: 2,}}>
import React, { Component } from 'react';
import { ScrollView, StyleSheet, Text, View, Button,TouchableHighlight, ImageBackground} from 'react-native';
import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome';
import {Fumi} from 'react-native-textinput-effects';
import * as Font from 'expo-font';
import Toast, {DURATION} from 'react-native-easy-toast';
import { StackActions, NavigationActions } from 'react-navigation';
import {ColorDotsLoader, CirclesRotationScaleLoader} from 'react-native-indicator';
export default class SignIn extends Component {
import React, { Component } from 'react';
import { ScrollView, StyleSheet, Text, View, Button,TouchableHighlight, KeyboardAvoidingView, Image, Keyboard, ImageBackground, Animated, Dimensions, UIManager} from 'react-native';
import FontAwesomeIcon from 'react-native-vector-icons/FontAwesome';
import {Fumi} from 'react-native-textinput-effects';
import * as Font from 'expo-font';
import Toast, {DURATION} from 'react-native-easy-toast';
export default class Register extends Component {
static navigationOptions =