Skip to content

Instantly share code, notes, and snippets.

View Swarag-N's full-sized avatar
👨‍🚀
Hello There!

Swarag Narayanasetty Swarag-N

👨‍🚀
Hello There!
View GitHub Profile
@Swarag-N
Swarag-N / rock-paper-scissors.py
Created July 21, 2020 05:42
Bored of playing Play Rock Paper and Scissors. with limited options.
"""
Start Script, choose the options you want play and start,
play until you want exit (exit by !exit)
Stores your score in results.txt file
Enter your name: > Tim
Hello, Tim
> rock,gun,lightning,devil,dragon,water,air,paper,sponge,wolf,tree,human,snake,scissors,fire
Okay, let's start

Deploying a React App* to GitHub Pages

* created using create-react-app

Introduction

In this tutorial, I'll show you how I deployed a React app—which I created using create-react-app—to GitHub Pages.

You can visit the deployed app, at https://gitname.github.io/react-gh-pages/.

@Swarag-N
Swarag-N / index.html
Last active June 30, 2020 14:39
This is an example gist to parse form data in node js "without" express js and body-parser
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Node Intial</title>
</head>
<body>
<h1>Hello</h1>
<form action="http://127.0.0.1:3000/" method="post">
<input type="text" name="name" id="">