Skip to content

Instantly share code, notes, and snippets.

yvsssantosh yvsssantosh

Block or report user

Report or block yvsssantosh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View login.js
import React, { PureComponent } from 'react'
import { View, Text, Button, AsyncStorage } from 'react-native'
import { connect } from 'react-redux'
class LoginScreen extends PureComponent {
constructor (props) {
super(props)
this.attemptLogin = this.attemptLogin.bind(this)
}
View App.js
// import React from 'react'
// import { StyleSheet, Text, View } from 'react-native'
// export default function App () {
// return (
// <View style={styles.container}>
// <Text>Shili</Text>
// </View>
// )
// }
View nginx.conf
##
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# https://www.nginx.com/resources/wiki/start/
# https://www.nginx.com/resources/wiki/start/topics/tutorials/config_pitfalls/
# https://wiki.debian.org/Nginx/DirectoryStructure
#
# In most cases, administrators will remove this file from sites-enabled/ and
# leave it as reference inside of sites-available where it will continue to be
# updated by the nginx packaging team.
@yvsssantosh
yvsssantosh / gist:e89d06205a601de47187dbf38b0e5a43
Created Oct 5, 2018 — forked from kaizhu256/gist:4482069
javascript - very fast and simple uuid4 generator benchmarked on http://jsperf.com/uuid4/8
View gist:e89d06205a601de47187dbf38b0e5a43
/*jslint bitwise: true, indent: 2, nomen: true, regexp: true, stupid: true*/
(function () {
'use strict';
var exports = {};
exports.uuid4 = function () {
//// return uuid of form xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx
var uuid = '', ii;
for (ii = 0; ii < 32; ii += 1) {
You can’t perform that action at this time.