Skip to content

Instantly share code, notes, and snippets.

import sys
import time
import wave
from gtts import gTTS
from io import BytesIO
from lamedec import decode
from openal import oalQuit, AL_PLAYING, WaveFile, Source,Buffer
def usage():
public static class EasyAuthApplicationBuilderExtensions
{
private static readonly string HEADER_KEY = "X-MS-CLIENT-PRINCIPAL-NAME";
public static IApplicationBuilder UseEasyAuth(this IApplicationBuilder app)
{
return app.Use(next =>
{
return context =>
{
@sengokyu
sengokyu / app-routing.module.ts
Last active January 8, 2019 14:13
[Angular] テストレシピ - ルートパラメータを渡す ref: https://qiita.com/sengoku/items/cdf2d544fdf51ba8dfcd
// (省略)
const routes: Routes = [
{
path: 'detail/:id',
component: DetailComponent,
data: { animationState: 'detailPage' }
}
];
// (省略)
@sengokyu
sengokyu / mixinの宣言
Created November 12, 2018 09:57
[Angular] Angular Materialを使うためのSCSS入門 ref: https://qiita.com/sengoku/items/35a73dfb4bd76ed5e5c1
@mixin 強調 {
font-size: 1.4em;
font-weight: bold;
}
@sengokyu
sengokyu / app.component.html
Last active October 17, 2019 07:22
[Angular] アプリケーションを複数の機能モジュールに分割する - @NgModuleとは何か (5) ref: https://qiita.com/sengoku/items/1883e0bf2a1a17bf4810
<app-current-date></app-current-date>
@sengokyu
sengokyu / .zshrc
Last active August 22, 2018 07:14
[Android] Ubuntuで始めるReact Native ref: https://qiita.com/sengoku/items/5555fcc10980b7780714
export GRADLE_OPTS=-Dorg.gradle.jvmargs=-Xmx2048M
@sengokyu
sengokyu / app.component.html
Last active July 11, 2018 09:47
[Angular] コンポーネントの作成 - UbuntuとVisual Studio Codeで始めるAngular (3) ref: https://qiita.com/sengoku/items/1ba9ef760594fdfb50a0
<!--
自動生成されたコードを消して、<h1>だけにします。
-->
<h1>{{title}}</h1>
<!--
Heroesコンポーネントを参照します。
ここで記述するのは、`selector` に記載した名前です。
-->
<app-heroes></app-heroes>
@sengokyu
sengokyu / app.component.html
Last active July 11, 2018 09:47
[Angular] アプリの新規作成 - UbuntuとVisual Studio Codeで始めるAngular (2) ref: https://qiita.com/sengoku/items/919b3759f9f2419c4bb9
<!--
自動生成されたコードを消して、<h1>だけにします。
-->
<h1>{{title}}</h1>
@sengokyu
sengokyu / .clasp.json
Created April 12, 2018 07:02
[Google] Ubuntuで始めるGoogle Apps Script開発 ref: https://qiita.com/sengoku/items/e6013655b1e5f5dfb44c
{"scriptId":"〜〜〜"}
@sengokyu
sengokyu / nsupdate
Last active September 26, 2018 02:32
[Linux] Ubuntu 16.04でDNSレコードを動的に更新する ref: https://qiita.com/sengoku/items/34dd294a1604d480458c
#
# Script fragment to make dhclient update name server records.
#
# set to 'yes', temporary file will not remove
DEBUG="no"
ip_to_ptr() {
local ip
local p