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
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.example</groupId> | |
<artifactId>demo</artifactId> | |
<version>1.0-SNAPSHOT</version> |
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 random | |
def fetch_mad_libs_list(filename=None): | |
mad_libs_list = [] | |
if (filename is None): | |
mad_libs_list = [["Pizza was invented by a {0} {1} chef named {2}. \nTo make a pizza, you need to take a lump of {3}, and make a thin, round {4} {5}. \nThen you cover it with {6} sauce, {7} cheese and fresh chopped {8}. \nNext you have to bake it in a very hot {9}. \nWhen it is done, cut it into {10} {11}. \nSome kids like {12} pizza the best, but my favorite is the {13} pizza. \nIf I could, I would eat pizza {14} times a day." , ["adjective", "nationalitiy", "same nationality first name", "food ingredient", "adjective", "3d shape", "adjective", "adjective", "plural vegetable", "kitchen appliance", "number", "2d shape", "cheese type", "cheese type", "number"]], ["Meet our hero {0}, a super-intelligent {1}. \nA run-in with the {2} military leads him to create his alter-ego {3}, a {4} {5} giant capable of great destruction. He {6} battles the military with his girlfriend {7}. \nEventually it is disco |
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
#!/usr/bin/env python | |
# This Python file uses the following encoding: utf-8 | |
# Copyright 2015 Tin Arm Engineering AB | |
# Copyright 2018 Google LLC | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.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 kaggle.json from google drive | |
# This snippet will output a link which needs authentication from any google account | |
from googleapiclient.discovery import build | |
import io, os | |
from googleapiclient.http import MediaIoBaseDownload | |
from google.colab import auth | |
auth.authenticate_user() | |
drive_service = build('drive', 'v3') | |
results = drive_service.files().list( | |
q="name = 'kaggle.json'", fields="files(id)").execute() |