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
| <!DOCTYPE html> | |
| <html lang="ja"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet"> | |
| <title>Hello Vue!</title> | |
| </head> | |
| <body> |
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
| const helloworld = new Vue({ | |
| el: '#hellovue', | |
| data: { | |
| title: "Hello, world!", | |
| message: "This is my first Vue template!" | |
| } | |
| }); | |
| const example = new Vue({ | |
| el: '#example', |
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 tmdbsimple as tmdb | |
| import requests | |
| import json | |
| def movie_info_1(): | |
| movie_id = input("Enter a number (e.x. 603): ") | |
| url = "https://api.themoviedb.org/3/movie/{}?api_key=<API KEY>&language=en-US".format(movie_id) | |
| payload = "{}" | |
| response = requests.request("GET", url, data=payload) | |
| data = response.text |
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 tmdbsimple as tmdb | |
| def movie_info_4(): | |
| tmdb.API_KEY = "<API KEY>" | |
| num = 2 | |
| while num < 10: | |
| try: | |
| movie = tmdb.Movies(num) | |
| response = movie.info() | |
| print("('" + movie.title + "', '" + str(movie.id) + "', '" + movie.overview + "', '" + movie.release_date + "', '" + str(movie.runtime) + "', '" + "https://image.tmdb.org/t/p/w500{}".format(movie.poster_path) + "'),") |
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
| def verify_anagrams(first_word, second_word): | |
| first_list = list(first_word.lower()) | |
| second_list = list(second_word.lower()) | |
| first_list = [i for i in first_list if not i == " "] | |
| second_list = [j for j in second_list if not j == " "] | |
| first_list.sort() | |
| second_list.sort() | |
| if first_list == second_list: | |
| return True | |
| else: |
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
| def find_message(text: str) -> str: | |
| list_msg = [] | |
| list_text = list(text) | |
| for i in list_text: | |
| if i.isupper() == True: | |
| list_msg.append(i) | |
| else: | |
| pass | |
| hidden_msg = ",".join(list_msg) | |
| return (hidden_msg.replace(",", "")) |
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
| def checkio(number): | |
| container = "" | |
| ROMANS = (('M', 1000), | |
| ('CM', 900), | |
| ('D', 500), | |
| ('CD', 400), | |
| ('C', 100), | |
| ('XC', 90), | |
| ('L', 50), | |
| ('XL', 40), |
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
| def reverse_roman(roman_string): | |
| number_list = [] | |
| ROMANS = (('M', 1000), | |
| ('CM', 900), | |
| ('D', 500), | |
| ('CD', 400), | |
| ('C', 100), | |
| ('XC', 90), | |
| ('L', 50), | |
| ('XL', 40), |
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
| def date_time(time): | |
| time_split = time.split() | |
| ymd = time_split[0].split(".") | |
| hm = time_split[1].split(":") | |
| date = str(ymd[0]) | |
| month = str(ymd[1]) | |
| year = str(ymd[2]) | |
| hour = str(hm[0]) | |
| minute = str(hm[1]) | |
| month_names = (("01", "January"), |
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
| def checkio(number): | |
| container = "" | |
| ROMANS = (('M', 1000), | |
| ('CM', 900), | |
| ('D', 500), | |
| ('CD', 400), | |
| ('C', 100), | |
| ('XC', 90), | |
| ('L', 50), | |
| ('XL', 40), |
NewerOlder