Skip to content

Instantly share code, notes, and snippets.

View Sid72020123's full-sized avatar
😀
Programming!

Siddhesh Chavan Sid72020123

😀
Programming!
View GitHub Profile
@Sid72020123
Sid72020123 / main.py
Created May 27, 2023 13:05
The Python program that fetched the activity of a Scratch user
from requests import get
from bs4 import BeautifulSoup
from pprint import pprint
Scratch_URL = "https://scratch.mit.edu"
def get_activity_type(raw_activity_type):
activities = {
"added": "studio-add",
@Sid72020123
Sid72020123 / studio.py
Last active October 3, 2021 10:15
Python Program to automatically Invite a user's Followers to a studio
import time
import scratchconnect
user = scratchconnect.ScratchConnect("Username", "Password")
all_followers = user.followers(all=True)
invited_followers = []
for i in range(0, len(all_followers)):
processing = all_followers[i]
for j in range(0, len(processing)):
import pyhtmlchart as chart
line_chart = chart.line_chart.LineChart(location='line', title='Chart')
columns = ['Time', 'Number1', 'Number2']
all_data = [[1, 200, 300], [2, 500, 400]]
line_chart.add_data(data=all_data, data_titles=columns)
line_chart.open()
@Sid72020123
Sid72020123 / simple.cpp
Created November 28, 2020 09:13
Basics in C++
// Your First C++ Program
#include <iostream>
int main() {
std::cout << "Hello World!";
return 0;
}
@Sid72020123
Sid72020123 / simple.java
Created November 28, 2020 09:08
Basics in Java
package LearnJava;
public class Simple(){
public static void main(String[] args){
System.out.println("Hello!");
}
}
@Sid72020123
Sid72020123 / simple.py
Last active January 21, 2022 13:17
Basics in Python
print("Hello!")
name = input("Enter your name:")
name = name.strip()
name = name.title()
print(name)
@Sid72020123
Sid72020123 / basic.html
Created November 28, 2020 08:10
Basics in Html
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>