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
#! ruby -Ku | |
# coding: utf-8 | |
require "json" | |
require "natto" | |
require "moji" | |
names = [] | |
raw = JSON.parse(open("./combi_nagashi.json").read) | |
raw["combi"].each do |combi| |
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
#! ruby -Ku | |
# encoding: utf-8 | |
require "yaml" | |
require "twitter" | |
require "dashed" | |
keys = YAML.load_file("./config.yml") | |
client = Twitter::REST::Client.new do |config| |
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
#! ruby -Ku | |
# encoding: utf-8 | |
require "RMagick" | |
@p = { | |
n: 8, # 画像の枚数 | |
x: 2048, | |
y: 2048, | |
f: 8, # フォントサイズ |
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
# coding: utf-8 | |
import cv2 | |
input_file = "SCAN0393_001.jpg" # http://www.quick-b.com/blog/images/SCAN0393_001.jpg | |
output_file = "result.jpg" | |
cascades_path = "/home/vagrant/.pyenv/versions/anaconda3-4.3.0/envs/py36/share/OpenCV/haarcascades/" | |
cascade_file = "haarcascade_frontalface_default.xml" |
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
#! ruby -Ku | |
# coding: utf-8 | |
# usage: ruby kk.rb filename db d | |
# ex.) ruby kk.rb hoge.mp4 -30 1.0 | |
require "fileutils" | |
def argv | |
@filename = ARGV[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
-- How to be a bad singer for FCEUX | |
-- reference: https://forums.nesdev.com/viewtopic.php?t=13827 | |
function callback() | |
-- register | |
a = memory.getregister("a") | |
y = memory.getregister("y") | |
x = memory.getregister("x") | |
pc = memory.getregister("pc") | |
-- read |
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
Shader "Nikaku" | |
{ | |
Properties { | |
_Color ("Color", Color) = (1, 1, 1, 1) | |
_NikakuCenter ("Center Position", Vector) = (0, 0, 0, 0) | |
_NikakuRadius ("Radius", Float) = 55 | |
_NikakuCoef ("Coef", Float) = 0 | |
} | |
SubShader { |
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
#! ruby -Ku | |
# coding: utf-8 | |
require "aviglitch" | |
AVI_IN = "1_avi_in" | |
AVI_OUT = "2_avi_out" | |
path = ARGV[0] | |
ffmpeg_case = ARGV[1].nil? ? "2" : 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
#!/bin/bash | |
# reference | |
# Fred's ImageMagick Scripts: THERMOGRAPHY | |
# http://www.fmwconcepts.com/imagemagick/thermography/index.php | |
# | |
# Developed by Fred Weinhaus 2/19/2013 .......... revised 5/3/2015 | |
# | |
# ------------------------------------------------------------------------------ |
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
#! ruby -Ku | |
# encoding: utf-8 | |
# generation loss | |
# usage: ruby gl.rb in.jpg [repeat_num] [step] [seed] [range_min] [range_max] | |
in_jpg = ARGV[0] | |
repeat_num = ARGV[1].nil? ? 1000 : ARGV[1].to_i | |
step = ARGV[2].nil? ? 10 : ARGV[2].to_i | |
seed = ARGV[3].nil? ? 12345 : ARGV[3].to_i |
OlderNewer