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
$ dvipdfmx test.dvi | |
GPL Ghostscript 9.16: Can't find initialization file gs_init.ps. | |
$ gs --version | |
GPL Ghostscript 9.16 (2015-03-30) | |
$ brew info gs | |
ghostscript: stable 9.25 (bottled), HEAD | |
$ brew link ghostscript |
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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<meta name="description" content=""> | |
<meta name="author" content="結城浩 / Hiroshi Yuki"> | |
<meta name="keywords" content="結城浩,Hiroshi Yuki" > | |
<title>drawicon</title> |
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
/* | |
* ShowMobileTweet.js | |
* | |
* When you see: | |
* https://twitter.com/hyuki/status/1079981317184315392 | |
* Then jump to: | |
* https://mobile.twitter.com/hyuki/status/1079981317184315392 | |
*/ | |
function start() { |
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
// dustlink.js | |
// Example HTML: <a class="DUSTLINK" href="https://example.com">example</a> | |
$(function() { | |
var ds = localStorage.getItem('dusthash'); | |
if (!ds) { | |
ds = '{}'; | |
} | |
var dusthash = JSON.parse(ds); | |
$(".DUSTLINK").on('click', function() { | |
var key = $(this).attr('href'); |
convert
(ImageMagick) is required.
$ vi update-shelf (Edit PDFDIR and SHELFDIR)
$ update-shelf
$ erb shelf.erb > index.html
$ open -a safari index.html
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
<html> | |
<textarea id="SCRAPBOX-TEXT"></textarea> | |
<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script> | |
<!-- Using https://thdoan.github.io/strftime/ --> | |
<script src="js/strftime.js"></script> | |
<script> | |
$(function() { | |
const project = 'https://scrapbox.io/YOURPROJECT/'; | |
$("#SCRAPBOX-TEXT").keydown(function(e) { |
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 | |
# cf. http://bit.ly/2raKfLZ | |
# makeopenapp - URLをオープンするだけのスクリプトをMacのアプリケーションにする | |
if ARGV.length != 2 | |
abort("Usage: makeopenapp URL Example.app") | |
end | |
url = ARGV[0] | |
appname = ARGV[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
#!/usr/bin/env ruby | |
# cf. http://bit.ly/2raKfLZ | |
# makeapp - スクリプトをMacのアプリケーションにする | |
if ARGV.length != 2 | |
abort("Usage: makeapp foo.rb Foo.app") | |
end | |
scriptname = ARGV[0] | |
appname = ARGV[1] |