Skip to content

Instantly share code, notes, and snippets.

ffmpeg -i input.mp4 -qscale:v 0 -vf scale=657:1080,pad="1920:1080:632:0:black" output.mp4
package com.h6ah4i.android.example.dragdrop;
import android.app.Activity;
import android.graphics.Canvas;
import android.graphics.Point;
import android.os.Bundle;
import android.view.DragEvent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
package com.h6ah4i.android.mediaplayertest;
import android.media.MediaPlayer;
import android.net.Uri;
import android.os.Handler;
import android.support.v7.app.ActionBarActivity;
import android.support.v4.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
package com.comolib.client.utils.workaround;
import android.content.Context;
import android.graphics.Color;
import android.support.design.widget.TextInputLayout;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
@h6ah4i
h6ah4i / libvips-installer.sh
Last active August 29, 2018 06:19 — forked from h2non/libvips-installer.sh
libvips 8.5.6 cross-platform simple installer script (supports ~~OSX, Debian, Ubuntu, CentOS, Fedora,~~ Amazon Linux)
#!/bin/sh
#
# Orinally made by Lovell Fuller for sharp
# https://github.com/lovell/sharp
#
# Ensures libvips is installed and attempts to install it if not
# Currently supports:
# * Mac OS
@h6ah4i
h6ah4i / AddressSplitter.rb
Last active November 22, 2018 02:58 — forked from YSRKEN/AddressSplitter.rb
住所を上手く検出・分割するライブラリ。MITライセンス。https://qiita.com/ysrken/items/5371e67950425ace6a73
require 'unf'
require "sqlite3"
class AddressSplitter
# コンストラクタ
def initialize
# DBを読み込む
@db = SQLite3::Database.new 'zenkoku.sqlite3'
# その他初期化
@pref_list = []