Whenever you want to squash last commits in a single commit:-
first check your log
git log
from google.colab import drive
drive.mount('/content/drive')
import requests | |
import re | |
proxy_url = "https://free-proxy-list.net/" | |
def getProxyBuffer(): | |
headers = {'User-Agent': "Mozilla/5.0"} | |
source = str(requests.get(proxy_url, headers=headers, timeout=10).text) | |
data = [list(filter(None, i))[0] for i in re.findall("<td>(.*?)</td>|<td class='hx'>(.*?)</td>", source)] | |
groupings = [dict(zip(['ip', 'port', 'code', 'using_anonymous', 'https'], data[i:i + 5])) for i in | |
range(0, len(data), 5)] |
Installed node modules globally but still showing error
suppose you installed a node module X-module
globally somehting like this node i -g X-module
but still getting error when you call that module. Then you might be having NODE_PATH not pointing to your modules. To solve the problem try the following method.
Write your command to install node module globally.check
node i -g X-module
import json | |
def user_auth(): | |
username=input('Enter username(reg. no.):-') | |
password=getpass.getpass('Enter password:-') | |
data={'username':username, | |
'password':password} | |
with open('data.json','w') as outfile: | |
json.dump(data,outfile) | |
OLD_MAIL
, CORRECT_NAME
and CORRECT_EMAIL
and save the file.bash fileName.sh
or ./filename
git push -f origin master
def plot_bar_x(): | |
# this is for plotting purpose | |
plt.bar(countPerHour,range(24)) | |
plt.title('Time vs ridership') | |
plt.xlabel('Time(Hour)') | |
plt.ylabel('Ridership') | |
plt.ion() | |
plt.show() | |
plt.pause(4) | |
plt.close('all') |
iwlist scan | egrep -i 'ssid|quality' | |
sudo modprobe -r rtl8723de | |
sudo modprobe rtl8723de ant_sel=1 | |
iwlist scan | egrep -i 'ssid|quality' | |
sudo modprobe -r rtl8723de | |
sudo modprobe rtl8723de ant_sel=2 | |
iwlist scan | egrep -i 'ssid|quality' |
add policy |