This file contains hidden or 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 argparse | |
import teslapy | |
import requests | |
from twilio.rest import Client | |
def parse(): | |
parser = argparse.ArgumentParser(description='Tesla Charge Reminder via Twilio') | |
requredParser =parser.add_argument_group('Required arguments') | |
requredParser.add_argument('-e', '--email', help='Email for authentication.',required=True) |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>PATH</key> | |
<string>/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/usr/local/sbin</string> | |
</dict> | |
<key>Label</key> |
This file contains hidden or 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
-i | |
-o "%(upload_date)s - %(title)s - [%(resolution)s] [%(id)s].%(ext)s" | |
--download-archive archive.txt | |
-a channels.txt | |
--prefer-ffmpeg | |
--merge-output-format mkv | |
--add-metadata |
This file contains hidden or 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 requests | |
from bs4 import BeautifulSoup | |
import re | |
URL = 'https://www.worldometers.info/coronavirus/country/bangladesh' #change the url for other countries | |
page = requests.get(URL) | |
soup = BeautifulSoup(page.content, 'html.parser') #makes a soup bs object | |
results = soup.find(class_='content-inner') | |
cases =results.find_all('div', class_=('maincounter-number')) |
This file contains hidden or 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
Some alternative programming languages to Python are C, C++, Perl, Fortran and Java. |
This file contains hidden or 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
public class MainActivity extends AppCompatActivity { | |
//private TextView result; | |
private RequestQueue rqueue; | |
private ArrayList<String> items; | |
private ArrayAdapter<String> itemsAdapter; | |
private ListView lvItems; | |
protected void onCreate(Bundle savedInstanceState) { | |
lvItems = (ListView) findViewById(R.id.listitems); | |
//result = findViewById(R.id.view_parsed); |
This file contains hidden or 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
#!/bin/bash | |
echo $'\n' | |
echo '===Step 1 of 3: Asking for Storage Permission===' | |
sleep 2; | |
termux-setup-storage | |
sleep 2; | |
This file contains hidden or 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
# AdBlock for iOS DNS Proxy rules | |
# https://itunes.apple.com/us/app/adblock/id691121579 | |
# Exported 10 Nov 2017 at 14:18:37 with AdBlock v4.1 | |
Chinese Adservers/A8/a8.com | |
Chinese Adservers/A8/a8.net | |
Chinese Adservers/Apple Daily/intowow.applefeed.com.tw | |
Chinese Adservers/B-Media Asia/adex.bmediaasia.com | |
Chinese Adservers/B-Media Asia/adex2.bmediaasia.com | |
Chinese Adservers/Baidu/cb.baidu.com |
This file contains hidden or 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
for /r %%f in (*.avi) do ( | |
echo>>blah.txt file '%%~nxf' | |
) | |
ffmpeg -f concat -i blah.txt -c copy output.avi |