ffmpeg \
-i input.png -i input.mp3 \
-vcodec libx264 \
-r 30000/1001 \
-pix_fmt yuv420p \
-acodec aac \
-strict experimental -ab 320k -ac 2 -ar 48000 \
output.mp4
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
#!/usr/bin/env ruby | |
data = DATA.to_a | |
puts data[rand(data.size)] | |
__END__ | |
Lorem ipsum dolor sit amet. | |
Consectetur adipiscing elit. | |
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. | |
Ut enim ad minim veniam. |
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
\documentclass{book} | |
\usepackage{amsmath} | |
\begin{document} | |
\def\MATRIX{\begin{pmatrix} 1 & 0 \\ 0 & 1 \end{pmatrix}} | |
\centering$\displaystyle\MATRIX$ |
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
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# https://ulyssesapp.com/kb/x-callback-url/ | |
require 'uri' | |
FORMAT = 'text' # html, markdown | |
GROUP = URI.escape('Imported Text') | |
if ARGV.length == 0 |
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
#!/usr/bin/env ruby | |
# See https://api.slack.com/methods/files.upload | |
# See https://qiita.com/ykhirao/items/3b19ee6a1458cfb4ba21 | |
# Set your env var: SLACK_POSTER_TOKEN. | |
# $ grep SLACK_POSTER_TOKEN ~/.bash_profile | |
# export SLACK_POSTER_TOKEN=xxxx-9999999999-999999999999-ZZZZZZZZZZZZZZZZZZZZZZZZ | |
require 'json' | |
require 'slack/poster' |
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
\documentclass[dvipdfmx]{jsbook} | |
\usepackage{lmodern} | |
\usepackage{ccfonts} % ccfonts を入れると、sin, cosだけじゃなくすべての英文がConcreteになってしまうので注意 | |
\usepackage[euler-digits]{eulervm} | |
\usepackage[T1]{fontenc} | |
\usepackage{textcomp} | |
\usepackage[utf8]{inputenc} | |
\usepackage{amsmath,amssymb} | |
\pagestyle{empty} | |
\begin{document} |
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
{ | |
"¥" = ("insertText:", "\\"); | |
"~\\" = ("insertText:", "¥"); | |
} |
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
#! /usr/bin/env ruby | |
# | |
# clip-yesterday.rb - Script to send "/clip yesterday" to your channel. | |
# | |
# WARNING: This script uses Slack Legacy Tokens. Use at your own risk. | |
# | |
# Author: hyuki | |
# Based on: | |
# * https://github.com/wgkoro/lambda_slack_command | |
# * https://api.slack.com/custom-integrations/legacy-tokens |
ffmpeg -loop 1 -i input.jpg -i input.mp3 -c:a aac -ab 112k -c:v libx264 -pix_fmt yuv420p -shortest -strict -2 output.mp4
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
#! /usr/bin/ruby | |
require 'date' | |
require 'uri' | |
PROJECT='yourprojectname' | |
BODY=URI.encode(<<EOD) | |
今日は、 | |
#日記 | |
EOD |