Skip to content

Instantly share code, notes, and snippets.

View OldBigBuddha's full-sized avatar
❤️
ℒℴѵℯ

Shinra Yamakawa OldBigBuddha

❤️
ℒℴѵℯ
View GitHub Profile
市名 県名
函館市 北海道
小樽市 北海道
旭川市 北海道
室蘭市 北海道
釧路市 北海道
帯広市 北海道
北見市 北海道
夕張市 北海道
岩見沢市 北海道
#!/bin/zsh
filename=$1
## sh エミュレーターモード
emulate -R sh
## 引数チェック
if [ $# -eq 0 ]
then
@OldBigBuddha
OldBigBuddha / youtube.html
Created October 31, 2016 11:47 — forked from satomacoto/youtube.html
A 連続再生 sample of YouTube Player API for <iframe> Embeds
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<title>A sample of YouTube Player API for <iframe> Embeds</title>
</head>
<body>
<!-- <iframe>(とプレイヤ)に置き換わる<div>タグ -->
<div id="player"></div>
有備無憂 そなえあればうれひなし
歳月不待人 さいげつひとをまたず
尽人事待天命 じんじをつくしててんめいをまつ
送元二使安西 げんじのあんせいにつかひするをおくる
吾日三省吾身 われひにわがみをさんせいす
少年易老学難成 せうねんおいやすくがくなりがたし
逐鹿者不見山 しかをおふものはやまをみず
懸羊頭売狗肉 やうとうをかけてくにくをうる
書足以記名姓而已 しょはもってめいせいをしるすにたるのみ
秦皇平定天下 しんくわうてんかをへいていす
@OldBigBuddha
OldBigBuddha / FizzBuzz.java
Created September 3, 2017 14:32
FizzBuzz Program with Java
public class FizzBuzz {
public static void main( String[] args ) {
String fizz = "Fizz", buzz = "Buzz";
for ( int i = 1; i <= 100; i++ ) {
if ( i % 3 == 0 && i % 5 == 0 ) {
System.out.println( fizz + buzz );
} else if ( i % 3 == 0 ) {
System.out.println( fizz );
} else if ( i % 5 == 0 ) {
@OldBigBuddha
OldBigBuddha / 01_gistfile.js
Last active September 18, 2018 14:19
gulpfile
const gulp = require("gulp");
const plugins = require("gulp-load-plugins")();
gulp.task("pug", () => {
return gulp.src("./pug/**/*.pug")
.pipe(plugins.pug({
pretty: true
}))
.pipe(gulp.dest("./static/html/"));
});
@OldBigBuddha
OldBigBuddha / gulpfile.js
Created October 24, 2018 06:26
Gulp for Hexo
// GulpでHexoのgenerateを実行する最低限のスクリプト
// ここから圧縮だったりをする
'use strict';
const gulp = require('gulp');
const del = require('del');
const runSequence = require('run-sequence');
const Hexo = require('hexo');
const hexo = new Hexo(process.cwd(), {});
@OldBigBuddha
OldBigBuddha / encode.sh
Last active October 28, 2018 08:02
ラジオ動画(静止画の動画化及び音声の合成)を作成するスクリプト
#!/bin/bash
# 参考: ffmpegで静止画と音声をくっつけた映像を作る https://qiita.com/ottyajp/items/4cd5280b4b8e8ff331e1
CMDNAME=`basename $0`
if [ $# -ne 6 ]; then
echo "Usage: $CMDNAME [-i image] [-s sound] [-o output]" 1>&2
exit 1
fi
@OldBigBuddha
OldBigBuddha / swagger.yaml
Last active November 10, 2018 18:03
OJI.la Short URL
swagger: '2.0'
info:
description: Short URL Service for OldBigBuddha by OldBigBuddha
version: 1.0.0
title: OJI.la Short URL
contact:
email: [email protected]
license:
name: Apache 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
@OldBigBuddha
OldBigBuddha / lang: eu
Created December 1, 2018 10:29
Twitter APIのレスポンス
{ statuses: [],
search_metadata:
{ completed_in: 0.012,
max_id: 1068811491065892900,
max_id_str: '1068811491065892864',
query: '%23PlzTime',
refresh_url:
'?since_id=1068811491065892864&q=%23PlzTime&lang=eu&result_type=recent&include_entities=1',
count: 10,
since_id: 0,