View upftp.pl
#!/usr/bin/perl
#
# This is UpFtp, Version 1.3
# Copyright (C) 2000,2003,2006,2017 by Hiroshi Yuki.
# http://www.hyuki.com/upftp/
#
# This program is free software; you can redistribute it and/or
# modify it under the same terms as Perl itself.
#
use strict;
View error.txt
[ 2017-07-02 23:34:03.2697 29259/7f7fb7fff700 age/Cor/CoreMain.cpp:588 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
[ 2017-07-02 23:34:03.2804 29259/7f7fca2e4880 age/Cor/CoreMain.cpp:999 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
[ 2017-07-02 23:34:03.2860 29269/7fd29ffff700 age/Ust/UstRouterMain.cpp:430 ]: Signal received. Gracefully shutting down... (send signal 2 more time(s) to force shutdown)
[ 2017-07-02 23:34:03.2867 29269/7fd2a9f35880 age/Ust/UstRouterMain.cpp:500 ]: Received command to shutdown gracefully. Waiting until all clients have disconnected...
[ 2017-07-02 23:34:03.2877 29269/7fd29f7fe700 Ser/Server.h:862 ]: [UstRouterApiServer] Freed 0 spare client objects
[ 2017-07-02 23:34:03.2880 29269/7fd29f7fe700 Ser/Server.h:490 ]: [UstRouterApiServer] Shutdown finished
[ 2017-07-02 23:34:03.2878 29269/7fd29ffff700 Ser/Server.h:490 ]: [UstRouter] Shutdown finished
[ 2017-07-02 23:34:03.2855 29259/7f7fca2e
View phi.rb
require 'prime'
def φ(n)
if n == 1
return 1
end
Prime.each(n-1) do |p|
if n % p == 0
b = n
j = 0
View error.txt
$ docker-compose pull
$ docker-compose build
$ docker-compose run --rm web rails db:migrate
$ docker-compose run --rm web rails mastodon:maintenance:prepare_for_foreign_keys
$ docker-compose run --rm web rails db:migrate
$ docker-compose run --rm web rails assets:precompile
Creating mastodon user (UID : 1000 and GID : 1000)...
Updating permissions...
Executing process...
yarn install v0.24.5
View TipmonaTipBookmarklet.js
/*
* TipmonaTipBookmarklet.js
*
* When you see
* https://twitter.com/EXAMPLEUSER/...
* Then you jump to
* https://twitter.com/intent/tweet?text=@tipmona%20tip%20@EXAMPLEUSER%201%20Mona%20を贈ります。
* And when you see
* https://twitter.com/EXAMPLEUSER/status/xxxxxxxx
* Then you jump to
View girlnote150.tex
数列$\{a_n\}$$\{b_n\}$を、
$$
\left\{
\begin{align*}
a_0 &= \dfrac{1}{2\pi} \int_{0}^{2\pi} f(x) \,dx \\
b_0 &= 0 \phantom{\int_{0}^{2\pi}}\\
a_n &= \dfrac{1}{\pi} \int_{0}^{2\pi} f(x)\cos nx \,dx & (n = 1,2,3,\ldots)\\
b_n &= \dfrac{1}{\pi} \int_{0}^{2\pi} f(x)\sin nx \,dx \\
\end{align*}
\right.
View positive.tex
$n$を正の整数とする。$n$を割り切る正の整数が$1$個しかないとき、$n$を<b>単数</b>という。ちょうど$2$個あるとき、$n$を<b>素数</b>という。$3$個以上あるとき、$n$を<b>合成数</b>という。
$$
\begin{array}{|c|c|c|c|c|c|c|c|c|c}
\hline
\textbf{単数} & 1 & & & & & & & & & & \\
\hline
\textbf{素数} & & 2 & 3 & & 5 & & 7 & & & & \\
\hline
\textbf{合成数} & & & & 4 & & 6 & & 8 & 9 & 10 & \\
View mov-to-gif.rb
#!/usr/bin/env ruby
require 'tmpdir'
if ARGV.length != 3
puts "mov-to-gif: Create animation GIF"
puts "Usage: mov-to-gif 1 input.mov output.gif -- normal (x1)"
puts "Usage: mov-to-gif 2 input.mov output.gif -- faster (x2)"
puts "Usage: mov-to-gif 0.5 input.mov output.gif -- slower (x0.5)"
abort
View makeapp.rb
#!/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]
View transpoint.rb
#!/usr/bin/env ruby
# http://www.mk-mode.com/octopress/2013/08/28/ruby-write-character-by-rmagick/
# http://www.gesource.jp/weblog/?p=194
# transpoint - Twitterにpng画像をアップロードするときにjpeg圧縮が掛からないように右下隅の1ピクセルを透明にする
require 'fileutils'
require 'RMagick'
def transpoint(image_filename)
image = Magick::ImageList.new(image_filename)