Skip to content

Instantly share code, notes, and snippets.

Avatar

yvsssantosh yvsssantosh

View GitHub Profile
View semantic_ui.html
<html>
<head>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"></script>
<script>
$(document).ready(() => {
$('#msel').dropdown()
})
View public_key.key
-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCOFzDg5GMdLaYQ6cQPGh4cEn+R
vK6oy7lQMmkLr5VNjkX1qYR2n0kFJJnwXGrOCL/ohp9o682qp1HznDZU6gJOj4pp
MlrsErTEcPnwzpKHFVGSy5YdSGuhlAQbSLcOrILWd6G93KuIG1UJzopQs2ipfg8c
5Me0+nFjy7JXeZVO7wIDAQAB
-----END PUBLIC KEY-----
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) {