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
| import { Engine } from '@babylonjs/core/Engines/engine'; | |
| import { Scene } from '@babylonjs/core/scene'; | |
| import { ArcRotateCamera } from '@babylonjs/core/Cameras/arcRotateCamera'; | |
| import { HemisphericLight } from '@babylonjs/core/Lights/hemisphericLight'; | |
| import { Vector3 } from '@babylonjs/core/Maths/math.vector'; | |
| import { SceneLoader } from '@babylonjs/core/Loading/sceneLoader'; | |
| import '@babylonjs/loaders/glTF'; | |
| const canvas = document.getElementById('renderCanvas') as HTMLCanvasElement; |
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
| import { | |
| createEngine, | |
| createSceneContext, | |
| createArcRotateCamera, | |
| attachControl, | |
| createHemisphericLight, | |
| createSphere, | |
| createStandardMaterial, | |
| addToScene, | |
| loadGltf, |
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
| import { | |
| createEngine, | |
| createSceneContext, | |
| createArcRotateCamera, | |
| attachControl, | |
| createHemisphericLight, | |
| createSphere, | |
| createStandardMaterial, | |
| // createPbrMaterial, | |
| addToScene, |
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
| import { | |
| createEngine, | |
| createSceneContext, | |
| createArcRotateCamera, | |
| attachControl, | |
| createHemisphericLight, | |
| createSphere, | |
| createPbrMaterial, | |
| addToScene, | |
| registerScene, |
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
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| はてなブログのAtomPub APIを使ってブログ記事を取得し、 | |
| 日本語・英語両対応のワードクラウドを生成するスクリプト | |
| """ | |
| import os | |
| import re | |
| import xml.etree.ElementTree as ET |
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
| // DOM要素の取得 | |
| const chatMessages = document.getElementById('chatMessages'); | |
| const messageInput = document.getElementById('messageInput'); | |
| const sendButton = document.getElementById('sendButton'); | |
| // メッセージ送信関数 | |
| async function sendMessage() { | |
| const message = messageInput.value.trim(); | |
| if (!message) { |
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
| require('dotenv').config(); | |
| const express = require('express'); | |
| const cors = require('cors'); | |
| const { OpenAI } = require('openai'); | |
| const app = express(); | |
| const port = process.env.PORT || 3000; | |
| // ミドルウェア設定 | |
| app.use(cors()); |
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
| //起動直後にグラスに「Hello Even G2」と表示するだけ | |
| //コード作成の参考にしたページ | |
| //https://www.npmjs.com/package/@evenrealities/even_hub_sdk | |
| import { | |
| TextContainerProperty, | |
| CreateStartUpPageContainer | |
| } from '@evenrealities/even_hub_sdk' | |
| import { getBridge } from '../simulator-helper' |
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
| @import "../node_modules/@jappyjan/even-realities-ui/dist/even-realities-ui.css"; | |
| body { | |
| font-family: system-ui, -apple-system, sans-serif; | |
| max-width: 480px; | |
| margin: 0 auto; | |
| padding: 16px; | |
| } |
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
| //起動直後にグラスに「Hello Even G2」と表示するだけ | |
| //コード作成の参考にしたページ | |
| //https://www.npmjs.com/package/@evenrealities/even_hub_sdk | |
| import { | |
| waitForEvenAppBridge, | |
| TextContainerProperty, | |
| CreateStartUpPageContainer | |
| } from '@evenrealities/even_hub_sdk' |
NewerOlder