Skip to content

Instantly share code, notes, and snippets.

View vishal2612200's full-sized avatar
🎯
Focusing

vishal sharma vishal2612200

🎯
Focusing
View GitHub Profile
@vishal2612200
vishal2612200 / Readme.md
Last active August 23, 2021 17:12
GSOC 2021 WITH XFCE

FINAL WORDS ON GSOC 2021 WITH XFCE

Student: Vishal Sharma

Organisation: XFCE

GSOC Year: 2021

Mentor: @itsmanjeet

@vishal2612200
vishal2612200 / Uppercase to lowercase character
Created April 9, 2020 15:38
program to convert strings of all uppercase characters into strings of all lowercase characters using the map() function ( Freshlybuilt blog Gist)
def to_lower(str):
return str.lower()
s = "Welcome To Freshlybuilt"
fresh_list = s.split() # convert string into list
fresh_list = list(map(to_lower,fresh_list)) #convert elements into lowercase
fresh_list = ' '.join(map(str, fresh_list)) # convert list into string
print(" String in lower case: ", fresh_list)
@vishal2612200
vishal2612200 / export_inference_graph_unfrozen.py
Created June 19, 2019 06:36 — forked from dnlglsn/export_inference_graph_unfrozen.py
Export a checkpointed object_detection model for serving with TensorFlow Serving
"""
References:
https://github.com/tensorflow/models/blob/master/object_detection/g3doc/exporting_models.md
https://github.com/tensorflow/models/issues/1988
Unfortunately, the tutorial for saving a model for inference "freezes" the
variables in place and makes them unservable by tensorflow_serving.
export_inference_graph.py exports an empty "variables" directory, which needs to
be populated.
#include<stdio.h>
#include<math.h>
float f(float x){
return x*log10(x)-1.2;
}
float df(float x){
return log10(x) + 0.434293;
}
int main(){
int a,b,maxitr,itr;
from urllib.request import urlopen
from bs4 import BeautifulSoup
import requests
page=urlopen("https://www.cardekho.com/")
soup = BeautifulSoup(page.read(),"html5lib")
new =soup.find_all("div",{"class":"price"})
len(new) #to count the number of price class element i.e testing purpose
print(new[0].text)#for testing the link
about=new[0]
for about in new:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load("current", {packages:["corechart"]});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>