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
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
string str = "C++ Programming"; | |
// you can also use str.length() | |
cout << "String Length = " << str.size(); |
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
#include <iostream> | |
using namespace std; | |
int main() { | |
string line; | |
cout << "Enter a string: "; | |
getline(cin, line); | |
for(int i = 0; i < line.size(); ++i) | |
{ |
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
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
char line[150]; | |
int vowels, consonants, digits, spaces; | |
vowels = consonants = digits = spaces = 0; |
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 json | |
import requests | |
print ("=========================== StarLink Sattelite List=================================") | |
sat = requests.get("http://www.celestrak.com/NORAD/elements/gp.php?GROUP=starlink&FORMAT=json").text | |
a = json.loads(sat) | |
x=int(len(a)) | |
for i in range(x): | |
x=x-1 | |
print('space station:',a[x]['OBJECT_NAME'],'ID:',a[x]['OBJECT_ID']) |
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 sys import path | |
from telegram.ext import * | |
import telegram | |
import PIL | |
from PIL import Image | |
import pytesseract | |
def start_command(update, context): | |
name = update.message.chat.first_name |
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
#developer Ali Ghalehban | |
import telebot | |
from telebot.types import Message | |
import json | |
import requests | |
import re | |
usdprice=1 | |
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 subprocess | |
data = subprocess.check_output(['netsh', 'wlan', 'show', 'profiles']).decode('utf-8', errors="backslashreplace").split('\n') | |
profiles = [i.split(":")[1][1:-1] for i in data if "All User Profile" in i] | |
for i in profiles: | |
try: | |
results = subprocess.check_output(['netsh', 'wlan', 'show', 'profile', i, 'key=clear']).decode('utf-8', errors="backslashreplace").split('\n') | |
results = [b.split(":")[1][1:-1] for b in results if "Key Content" in b] | |
try: | |
print ("{:<30}| {:<}".format(i, results[0])) |
OlderNewer