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 | |
from pprint import pprint | |
Scratch_URL = "https://scratch.mit.edu" | |
def get_activity_type(raw_activity_type): | |
activities = { | |
"added": "studio-add", |
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 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)): |
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 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() |
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
// Your First C++ Program | |
#include <iostream> | |
int main() { | |
std::cout << "Hello World!"; | |
return 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
package LearnJava; | |
public class Simple(){ | |
public static void main(String[] args){ | |
System.out.println("Hello!"); | |
} | |
} |
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
print("Hello!") | |
name = input("Enter your name:") | |
name = name.strip() | |
name = name.title() | |
print(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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Page Title</title> | |
</head> | |
<body> | |
<h1>My First Heading</h1> | |
<p>My first paragraph.</p> |