Skip to content

Instantly share code, notes, and snippets.

@akinori5
akinori5 / flyer_usecase_overview_v2.html
Last active May 19, 2026 22:22
QunaSys flyer temp
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=794px, initial-scale=1">
<title>QunaSys — Use Case Overview v2</title>
<style>
@page { size: 210mm 297mm; margin: 0; }
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
@akinori5
akinori5 / read.rb
Created October 30, 2015 07:26
1行ごと読み込み、重複排除、ソート、ひらがな化
require 'pry'
require 'nkf'
words =[]
File.open('mid.txt') do |file|
file.each_line do |l|
l.gsub!("\n","")
ll = NKF.nkf("--hiragana -w", l)
words.push(ll)
@akinori5
akinori5 / trim.rb
Created October 22, 2015 09:47
trim white spaces for PNG using ruby and imagemagick (not RMagick)
# Suppose Imagemagck is installed on system.
# Get the image list in a target directry
pngs=Dir.glob("*.png")
pngs.each {|p|
system("convert -trim #{p} ./trimed/#{p}")
}