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; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
int a,b,c; | |
a = int.Parse(Console.ReadLine()); //標準入力 | |
string[] str = Console.ReadLine().Split(' ');//2つ以上のスペース区切り入力の取得 | |
b = int.Parse(str[0]); //数値で受け取りたい場合は変換する | |
c = int.Parse(str[1]); |
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
from ctypes import byref, c_float, c_void_p, CDLL | |
class RNNoise(object): | |
def __init__(self): | |
self._native = CDLL('./librnnoise.so') | |
self._native.rnnoise_process_frame.restype = c_float | |
self._native.rnnoise_process_frame.argtypes = ( | |
c_void_p, c_void_p, c_void_p) | |
self._native.rnnoise_create.restype = c_void_p |
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
# all imports | |
from IPython.display import Javascript | |
from google.colab import output | |
from base64 import b64decode | |
from io import BytesIO | |
!pip -q install pydub | |
from pydub import AudioSegment | |
RECORD = """ | |
const sleep = time => new Promise(resolve => setTimeout(resolve, time)) |
2020/5/31追記:
自分用のメモに書いていたつもりだったのですが、たくさんのスターを頂けてとても嬉しいです。
と同時に、書きかけで中途半端な状態のドキュメントをご覧いただくことになっており、大変心苦しく思っています。
このドキュメントを完成させるために、今後以下のような更新を予定しています。
- TODO部分を埋める
- 書籍を基にした理論・原則パートと、実装例パートを分割
- 現在は4層のレイヤそれぞれごとに原則の確認→実装時の課題リスト→実装例という構成ですが、同じリポジトリへの言及箇所がバラバラになってしまう問題がありました。更新後は、実装時の課題リストを全て洗い出した後にまとめて実装を確認する構成とする予定です。
2021/1/22追記:
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
/* | |
Copyright 2012 Jun Wako <wakojun@gmail.com> | |
Copyright 2015 Jack Humbert | |
This program is free software: you can redistribute it and/or modify | |
it under the terms of the GNU General Public License as published by | |
the Free Software Foundation, either version 2 of the License, or | |
(at your option) any later version. | |
This program is distributed in the hope that it will be useful, | |
but WITHOUT ANY WARRANTY; without even the implied warranty of | |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
the command zig run my_code.zig
will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)
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 sys | |
import openai | |
import json | |
def run_conversation(input): | |
content = f""" | |
ダジャレの面白さをAからEに評価して、評価の理由を論理的にコメントします。 | |
ダジャレ:{input} |
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 { watch } from 'chokidar'; | |
import { writeFile } from 'fs/promises'; | |
import { glob } from 'glob'; | |
import { format } from 'prettier'; | |
const pageGlobMatcher = './src/routes/**/+page?(@)*.svelte'; | |
export default async function generateRoutes() { | |
const paths = await getPaths(); | |
const routes = paths.map(parsePath); |
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
[ | |
{ | |
"word": "Asshole", | |
"kana": "アスホール", | |
"meaning": "いやな奴(Ass=お尻、Hole=穴)", | |
"notice": "「うざい野郎」「ろくでなし」" | |
}, | |
{ | |
"word": "あばずれ", | |
"kana": "あばずれ", |
OlderNewer