import guidance
guidance.llm = guidance.llms.OpenAI("gpt-3.5-turbo")
create_plan = guidance(
'''
{{#system~}}
Array.from(document.querySelector('div.table-responsive').querySelectorAll('table tr')).filter((e,idx)=>{return idx != 0}).map((e)=>{return e.querySelector('td').textContent}).join(' ')
Array.from(document.querySelector('div.company_block')
.querySelectorAll('table tr:nth-child(5) > td li'))
.map((e)=>{return e.textContent})
// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © Phi-Deltalytics
//@version=4
study("COVID-19 Status by Country", overlay = false)
country = input(title = "Country", defval = "Japan", type = input.string, options = ["Japan"])
smaPeriod = input(title = "SMA Period", defval = 1)
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
function RANDCHARS(len, num) { | |
let text = ""; | |
//Check if numbers | |
if(typeof len !== 'number' || typeof num !== 'number'){return text = "NaN"}; | |
const charString = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()<>-=_+:;"; | |
let charStringRange = undefined; | |
switch (num){ | |
case 0: |
以下のデータを含むGoogleSpreadSheetからGoogleFormを作成する。
QuizBody | ChoiceA | ChoiceB | ChoiceC | ChoiceD | Answer | Point |
---|---|---|---|---|---|---|
1+1= | 2 | 4 | 5 | 6 | 2 | 1 |
10+5= | 10 | 12 | 13 | 15 | 15 | 1 |
5+2= | 7 | 4 | 5 | 1 | 7 | 1 |
YOUR_FOLDER_IDはGoogleSpreadSheetファイルが存在するディレクトリ、
const QUIZ_FOLDER_ID = 'YOUR_FOLDER_ID'
function myFunction() {
addFormItems()
}
function addFormItems() {
NewerOlder