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
# This is the assembler for the assembly language defined in https://www.coronasha.co.jp/np/isbn/9784339029062/ | |
import sys | |
def p_b(digits, num): | |
num_int = int(num) | |
if(num_int > 0): | |
print(format(num_int, 'b').zfill(digits), end = "", file=fw) | |
else: | |
print(format(num_int & 0xffff, 'b').zfill(digits), end = "", file=fw) |
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
function readSheet(){ | |
var data = openSheet().getDataRange().getValues(); | |
return data; | |
} | |
function doGet() { | |
const htmlOutput = HtmlService.createTemplateFromFile('ss_open_test').evaluate(); | |
htmlOutput.setTitle("スプレッドシート読み込みテスト"); | |
return htmlOutput; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<base target="_top"> | |
</head> | |
<body> | |
<h1>スプレッドシート読み込みテスト</h1> | |
<p>スプレッドシートから読み込んだ内容を表示↓</p> | |
<? | |
var data = readSheet(); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<base target="_top"> | |
<script type="text/javascript"> | |
function sendText(){ | |
google.script.run | |
.withSuccessHandler(inform()) | |
.writeSheet(document.forms['formText'].elements['message'].value); | |
} |
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
function writeSheet(e) { | |
var ss = openSheet(); | |
ss.appendRow([e]); | |
} | |
function doGet() { | |
const htmlOutput = HtmlService.createTemplateFromFile('ss_open_test').evaluate(); | |
htmlOutput.setTitle("スプレッドシート書き込みテスト"); | |
return htmlOutput; | |
} |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class BearWalk : MonoBehaviour | |
{ | |
private Animator bearAnm; | |
// Start is called before the first frame update | |
void Start() | |
{ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<base target="_top"> | |
</head> | |
<body> | |
タイトルを表示させるテスト。 | |
</body> | |
</html> |
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
function doGet() { | |
const htmlOutput = HtmlService.createTemplateFromFile('title_test').evaluate(); | |
htmlOutput.setTitle('タイトルのテスト'); | |
return htmlOutput; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<base target="_top"> | |
<script type="text/javascript"> | |
function update() { | |
google.script.run | |
.withSuccessHandler(result).getScriptUrl(); | |
function result(url){ | |
window.open(url, '_top') |
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
function doGet() { | |
const htmlOutput = HtmlService.createTemplateFromFile('reload_test').evaluate(); | |
return htmlOutput; | |
} | |
function getScriptUrl() { | |
var url = ScriptApp.getService().getUrl(); | |
return url; | |
} |
NewerOlder