command | description | terminal | R vscode |
---|---|---|---|
ctrl + a | Goto BEGINNING of command line | HOME | HOME |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function(a, b){ | |
return a+b ; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from requests import get | |
from bs4 import BeautifulSoup | |
import unicodecsv as csv | |
import pandas as pd | |
import numpy as np | |
import folium | |
from googlegeocoder import GoogleGeocoder | |
import unicodecsv as csv | |
# make soup format |
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install | |
#https://lazamar.co.uk/nix-versions/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
OlderNewer