Skip to content

Instantly share code, notes, and snippets.

View jun-uen0's full-sized avatar
🏠
Working from home

Jun Ueno jun-uen0

🏠
Working from home
View GitHub Profile
@jun-uen0
jun-uen0 / string-conversion.rs
Created March 31, 2022 16:57 — forked from jimmychu0807/string-conversion.rs
Conversion between String, str, Vec<u8>, Vec<char> in Rust
use std::str;
fn main() {
// -- FROM: vec of chars --
let src1: Vec<char> = vec!['j','{','"','i','m','m','y','"','}'];
// to String
let string1: String = src1.iter().collect::<String>();
// to str
let str1: &str = &src1.iter().collect::<String>();
// to vec of byte
@jun-uen0
jun-uen0 / submit.md
Created March 31, 2022 14:58 — forked from tanaikech/submit.md
Get File List Under a Folder on Google Drive

Get File List Under a Folder on Google Drive

This is a sample of Google Apps Script. This script is for retrieving all files and folders under a folder on Google Drive. All files and folders in the specific folder can be retrieved.

If you want to retrieve file list with all files and folders on Google Drive, please use DriveApp.getRootFolder().getId() as folderId.

When there are a lot of files in the folder, it may be over the limitation time to execute script.

Script :

my first gist