HTML form for file uploads
<!-- in templates/form.html -->
<form action="/upload" method="POST" enctype="multipart/form-data">
 <input type="file" name="logo">
 <button>Upload</button>
</form>| package main | |
| import "fmt" | |
| type person struct { | |
| name string | |
| } | |
| func main() { | |
| p := person{"Richard"} | 
| import pandas as pd | |
| import dgl | |
| import os | |
| import torch | |
| class MovieLens(object): | |
| def __init__(self, directory): | |
| ''' | |
| directory: path to movielens directory which should have the three | |
| files: | 
| function doGet(request) { | |
| if (request.parameters.url != undefined && request.parameters.url != "") { | |
| var imageBlob = UrlFetchApp.fetch(request.parameters.url).getBlob(); | |
| var resource = { | |
| title: imageBlob.getName(), | |
| mimeType: imageBlob.getContentType() | |
| }; | |
| var options = { | |
| ocr: true | |
| }; | 
| function extractTextOnOpen() { | |
| //ADD YOUR VALUES BELOW | |
| var folderName = "[YOUR PROJECT FOLDER]"; | |
| var sheetId = "[YOUR SHEET ID]"; | |
| //Define folder | |
| var folder = DriveApp.getFoldersByName(folderName).next(); | |
| var folderId = folder.getId(); | 
| import 'dart:async'; | |
| main() async { | |
| print('about to fetch data!'); | |
| var result = await get('http://www.google.com'); | |
| print(result); | |
| } | 
| import 'dart:async'; | |
| main(){ | |
| print('about to fetch data!'); | |
| get('http://www.google.com').then( | |
| (result){ | |
| print(result); | |
| import 'dart:math'; | |
| void main(){ | |
| final myPoint = new Point.zero(); | |
| print(myPoint); | |
| final myPoint_somevalue = new Point(2,3); | |
| print(myPoint_somevalue); | |
| //撲克牌專案12 | |
| void main() { | |
| var deck = new Deck(); | |
| print(deck); | |
| deck.removeCard('Diamonds','Ace'); | |
| print(deck); | |
| } | |
| // collection of cards | 
HTML form for file uploads
<!-- in templates/form.html -->
<form action="/upload" method="POST" enctype="multipart/form-data">
 <input type="file" name="logo">
 <button>Upload</button>
</form>