Skip to content

Instantly share code, notes, and snippets.

@yewton
yewton / org-link-prefixes-init.el
Created June 11, 2023 12:54
Org Mode でリンク種別に応じたプレフィクスを表示する
@yewton
yewton / deckset_base.md
Created March 16, 2021 12:16
Deckset で使うテンプレ

slidenumbers: true slide-transition: true theme: Next, 9 footer: フッター autoscale: true

[fit] テンプレ

名前

@yewton
yewton / github.css
Last active November 30, 2018 12:38 — forked from tuzz/github.css
Github Markdown Stylesheet
/*
Copyright (c) 2017 Chris Patuzzo
https://twitter.com/chrispatuzzo
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@yewton
yewton / revisions.md
Last active December 5, 2021 19:02
スクラムガイド 2010 年版と 2011 年版の変更点 (非公式訳)

スクラムガイド 2010 年版と 2011 年版の変更点

  1. 開発チームはスプリント計画会議で計画した作業の完了を確約することはない。 開発チームは完成させられるであろうと思う作業の予測は行うが、 スプリント中に判明することが増えるにつれてその予測は変化していく。
  2. 進捗の観測にバーンダウンチャートを使うことをスクラムでは強制はしない。 スクラムに求められるのは以下の通り。
    • スプリントの残作業の合計を毎日確認出来ること
    • スプリントを通じて作業が滞りなく進捗していること
  3. リリース計画を建てることはスクラムを使う上で価値のあることではあるものの、
@yewton
yewton / openapi.yml
Last active December 6, 2017 06:15
Swagger Petstore with OAuth 2.0 (Relative path)
openapi: 3.0.0
info:
version: 1.0.0
title: Swagger Petstore
license:
name: MIT
servers:
- url: 'http://www.example.org'
paths:
/pets:
@yewton
yewton / crop_last_n_seconds.sh
Last active January 5, 2019 12:44
Crop last N seconds w/ FFmpeg one-liner
gfind . -name '*.mp4' -print0 | gxargs -0 -I{} sh -c 'ffmpeg -i "{}" -t $(echo "$(ffprobe -i "{}" -show_entries format=duration -v quiet -of csv="p=0") - 15" | bc) "cropped_$(basename "{}")"'
@yewton
yewton / swagger.json
Last active December 21, 2015 12:29
test
{
"swagger": "2.0",
"info": {
"description": "",
"version": "1.0.0",
"title": "Swagger Petstore"
},
"host": "petstore.swagger.io",
"basePath": "/v2",
"schemes": [
@yewton
yewton / hosts
Created December 2, 2014 06:36
rubygems 繋がんない用 hosts
199.91.171.93 au-m.rubygems.org bb-m.rubygems.org
54.186.104.15 api.rubygems.org rubygems.org
@yewton
yewton / znc-1.0.20130318.diff
Last active December 15, 2015 01:59
ZNC-1.0 の Buffer Playback を Notice にする
diff -Naru znc-1.0.orig/src/Chan.cpp znc-1.0/src/Chan.cpp
--- znc-1.0.orig/src/Chan.cpp 2013-03-18 04:46:49.000000000 +0900
+++ znc-1.0/src/Chan.cpp 2013-03-18 05:20:17.000000000 +0900
@@ -548,7 +548,7 @@
NETWORKMODULECALL(OnChanBufferStarting(*this, *pUseClient), m_pNetwork->GetUser(), m_pNetwork, NULL, &bSkipStatusMsg);
if (!bSkipStatusMsg) {
- m_pNetwork->PutUser(":***!znc@znc.in PRIVMSG " + GetName() + " :Buffer Playback...", pUseClient);
+ m_pNetwork->PutUser(":***!znc@znc.in NOTICE " + GetName() + " :Buffer Playback...", pUseClient);
}
// from http://stackoverflow.com/questions/15182496/why-does-this-code-print-hello-world
import java.util.Random
import scala.annotation.tailrec
object HelloWorld extends App {
println(randomString(-229985452) +" "+ randomString(-147909649))
println(randomString2(-229985452) +" "+ randomString2(-147909649))
println(randomString3(-229985452) +" "+ randomString3(-147909649))
println(randomString4(-229985452) +" "+ randomString4(-147909649))
def randomString(i :Int) :String = {