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
const channel_token = "UIpPzOrXdyx4zUP1bhFd9sQg7CIsrphl7+XNHwKwOlbCWJaAkguxgxAingEdR0S69M71Nl8SptXWaSwxOe+xcRxV0Z6Qa73nQntjzVd4bFadID+1VPFiVEAZy7dh1xqzZ5qJLIkA8BNWKyOcMhfEowdB04t89/1O/w1cDnyilFU=" | |
const user_id = "U2ef379160645782a81e85ad5a583eda1" | |
const url_push = "https://api.line.me/v2/bot/message/push"; | |
const url_reply = "https://api.line.me/v2/bot/message/reply" | |
function pushMessage() { | |
let postData = { | |
"to": user_id, | |
"messages": [{ | |
"type": "text", |
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
let channel_token = "Your access token" | |
let url = "https://api.line.me/v2/bot/message/reply" | |
function doPost(e) { | |
let json = e.postData.contents | |
let events = JSON.parse(json).events; | |
events.forEach(function(event) { | |
if(event.type == "follow") { | |
follow(event); |
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
let channel_token = "Your access token" | |
let url = "https://api.line.me/v2/bot/message/reply" | |
function doPost(e) { | |
let json = e.postData.contents | |
let events = JSON.parse(json).events; | |
events.forEach(function(event) { | |
if(event.type == "follow") { | |
follow(event); |
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
<!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 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
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
<!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
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() | |
{ |
NewerOlder