Skip to content

Instantly share code, notes, and snippets.

View Yousuf28's full-sized avatar
🎯
Building R Shiny App

Yousuf Ali Yousuf28

🎯
Building R Shiny App
View GitHub Profile
function(a, b){
return a+b ;
}
from requests import get
from bs4 import BeautifulSoup
# link
url = 'https://www.drugs.com/pharmaceutical-companies.html'
response = get(url)
soup = BeautifulSoup(response.text, 'html.parser')
links = []
for a in soup.find_all('a', href=True):
link = a['href']
@Yousuf28
Yousuf28 / ai_geocoder.py
Last active August 27, 2019 15:43
AI for drug discovery article
#import library
from googlegeocoder import GoogleGeocoder
# put your key
geocoder = GoogleGeocoder("your key")
# create csv file to save latitude and longitude
csv_file = open('start_up_ai.csv', 'ab')
writer = csv.writer(csv_file, dialect='excel', delimiter=',', encoding='utf-8')
writer.writerow(['lat', 'lng'])
@Yousuf28
Yousuf28 / AI_map.py
Created August 27, 2019 15:45
AI for drug discovery article in medium_ map part
lat = list(df_map["lat"])
lon =list(df_map["lng"])
name =list(df_map["name"])
# address_full = list(df_map["address"])
web = list(df_map['web'])
map = folium.Map(location=[35.199,-101.91], zoom_start=5)
fg=folium.FeatureGroup(name="My Map")
@Yousuf28
Yousuf28 / 01.bash_shortcuts_v2.md
Last active October 5, 2022 17:14 — forked from tuxfight3r/01.bash_shortcuts_v2.md
Bash keyboard shortcuts

Bash Shortcuts

visual cheetsheet

Moving

command description terminal R vscode
ctrl + a Goto BEGINNING of command line HOME HOME
@Yousuf28
Yousuf28 / README.md
Created November 11, 2022 05:11 — forked from robschmuecker/README.md
D3.js Drag and Drop, Zoomable, Panning, Collapsible Tree with auto-sizing.

This example pulls together various examples of work with trees in D3.js.

The panning functionality can certainly be improved in my opinion and I would be thrilled to see better solutions contributed.

One can do all manner of housekeeping or server related calls on the drop event to manage a remote tree dataset for example.

Dragging can be performed on any node other than root (flare). Dropping can be done on any node.

Panning can either be done by dragging an empty part of the SVG around or dragging a node towards an edge.

@Yousuf28
Yousuf28 / install.sh
Last active September 24, 2023 06:59
nix
# install
#https://lazamar.co.uk/nix-versions/
@Yousuf28
Yousuf28 / DataFrameSearch.py
Created September 26, 2023 02:21 — forked from RamonWill/DataFrameSearch.py
The code from my tutorial series on how to create a CSV/Dataframe viewer in Tkinter
# Tutorial playlist https://www.youtube.com/playlist?list=PLCQT7jmSF-LrwYppkB3Xdbe6QC81-ozmT
import tkinter as tk
from pathlib import Path
from tkinter import ttk
from TkinterDnD2 import DND_FILES, TkinterDnD
import pandas as pd
@Yousuf28
Yousuf28 / .zshrc
Created November 1, 2023 21:12
remove background color WSL terminal ls command
#Change ls colours
LS_COLORS="ow=01;36;40" && export LS_COLORS
#make cd use the ls colours
zstyle ':completion:*' list-colors "${(@s.:.)LS_COLORS}"
autoload -Uz compinit
compinit