Skip to content

Instantly share code, notes, and snippets.

View sagarladla's full-sized avatar
🌞

Sagar Ladla sagarladla

🌞
View GitHub Profile
/*
1) Given a string, you have to check if it is a valid number or not.(The number can be signed, floating point/integer).
If it is a number return true else return false.
The constraints were :-
i) No decision statements allowed (No if-else,no switch-case).
ii) No ternary conditional operators allowed (? : not allowed).
iii) No looping statements allowed (No for/while/do-while).
@sagarladla
sagarladla / client.cpp
Created June 20, 2019 21:49 — forked from haikentcode/client.cpp
socket programming in c++
#include <cstdio>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <iostream>

Keybase proof

I hereby claim:

  • I am sagarladla on github.
  • I am sagarladla (https://keybase.io/sagarladla) on keybase.
  • I have a public key ASARehwes41Z5oMxLQQHkgqts_xZxnadWdSr9GYJHwllfAo

To claim this, I am signing this object:

@sagarladla
sagarladla / GCI-Task-LoginPage.md
Created June 1, 2018 05:37 — forked from PolBaladas/GCI-Task-LoginPage.md
Creating a Login Page with Python Flask and SQLite 3 DB.

Login page using Python, Flask and sqlite3 DB

How-to guide

(Task for GCI 2015-16) Year: 2015-16 This guide will show how to create a simple login page with Flask (a python microframework) and a sqlite3 database.

1. Database Schema and Models

As we are creating a simple user login app we need to store 2 basic values in the database: the username and the password. In order to build the database we need to define a schema: