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
import glob | |
import os | |
from reazonspeech.nemo.asr import load_model, transcribe, audio_from_path | |
import csv | |
import json | |
import librosa | |
# 実行時にHugging Faceからモデルを取得します (2.3GB) | |
model = load_model(device='cuda') |
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
# RPG World Creation | |
**Human:** | |
あなたはRPGの世界を想像できる神です。 | |
以下の条件に沿って世界を想像してください | |
* 冒険者が冒険できるようにモンスターのレベル対応が分けられている | |
* どの地域にどのレベル帯のモンスターがいるのかのマップが存在している | |
* 冒険者はモンスターを倒すごとに経験値とお金を得ることができる | |
* モンスターはレベルに比例した経験値とお金を持っている | |
* この世界にはスキルと魔法という概念があり、レベルが上がるごとにスキルもしくは魔法を取得できる。 |
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
手書きアルファベットの学習モデルのONNXを取得したい | |
手書きアルファベットの学習モデルのONNXを取得するためには、次のステップを踏む必要があります。 | |
手書きアルファベットのデータセットを収集する。 | |
そのデータセットを使用して、ニューラルネットワークをトレーニングする。 | |
ONNX形式に変換する。 | |
ONNX形式のモデルをダウンロードまたは取得する。 |
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 lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<!-- Semantic UI を読み込む --> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui-css@2.4.1/semantic.min.css"> | |
<link rel="stylesheet" href="main.css"> | |
<script src="https://maps.googleapis.com/maps/api/js?key=<your google maps key>"></script> |
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
import tweepy | |
import config | |
import json | |
MY_ID = '自分のユーザーの名前[@から始まる方ではない]' | |
# OAuth認証 | |
auth = tweepy.OAuthHandler(config.consumer_key, | |
config.consumer_secret) | |
auth.set_access_token(config.access_token, |
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
import tweepy | |
import config | |
# OAuth認証 | |
auth = tweepy.OAuthHandler(config.consumer_key, | |
config.consumer_secret) | |
auth.set_access_token(config.access_token, | |
config.access_token_secret) | |
#利用制限にひっかかた時に必要時間待機する |
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
import tweepy | |
import config | |
import numpy as np | |
import matplotlib.pyplot as plt | |
# OAuth認証 | |
auth = tweepy.OAuthHandler(config.consumer_key,config.consumer_secret) | |
auth.set_access_token(config.access_token,config.access_token_secret) | |
#利用制限にひっかかた時に必要時間待機する |
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; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class CameraControll : MonoBehaviour { | |
// wasdでカメラの上下左右移動 | |
// Rで初めの位置に戻る | |
[SerializeField] private float cameraSpeed = 0.03f; | |
// カメラ移動の速度 |
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; | |
using Twity.DataModels.Responses; | |
using UnityEngine.UI; | |
public class EventHandler : MonoBehaviour { | |
private config key; | |
public GameObject prefab; | |
GameObject temp; |
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; | |
using Twity.DataModels.Responses; | |
public class EventHandler : MonoBehaviour { | |
private config key; | |
void Start () { | |
key = GameObject.Find("Config").GetComponent<config>(); | |
Twity.Oauth.consumerKey = key.GetConsumerKey(); |
NewerOlder