Skip to content

Instantly share code, notes, and snippets.

View ishank-dev's full-sized avatar

Ishank Sharma ishank-dev

  • CS Grad Student @CSULB
  • Long Beach, California
  • 08:34 (UTC -07:00)
View GitHub Profile
'''
'A' and 'I' are the only one letter word present in english language,
hence this algorithm concatenates the other single letters with the
next word in case they are anything other than 'A' or 'I'.
'''
def test(text):
list_words = text.split()
if len(list_words[0])==1:
if list_words[0] not in ['A','I']:
@ishank-dev
ishank-dev / translate.py
Created January 15, 2020 12:06
Translate
from googletrans import Translator
from flask import Flask, request #import main Flask class and request object
import requests
app = Flask(__name__) #create the Flask app
app.secret_key = "secret"
texts = {}
@app.route('/')
def hello_world():
return '<h1>Welcome to Reva Hack</h1>'
#include<stdio.h>
#include<stdlib.h>
int packets[10];
void main(){
int orate = 2,capacity = 5,contain = 0,dropped=0;
for (int i = 0; i < 5; ++i)
{
packets[i] = rand()%10;
}