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
function doGet(e) { | |
var response = UrlFetchApp.fetch("http://books.shueisha.co.jp/CGI/search/zen_list.cgi?siries_isbn=X-08-852811-5&siries_kanren_isbn=&mode=2"); | |
// var regexp = /第1巻〜第(\d+)巻/; | |
var regexp = /第1巻.第(\d+)巻/; // avoid WAVE_DASH | |
var match = regexp.exec(response.getContentText("Shift_JIS")); | |
var latest = -1 | |
if (match !== null) { | |
latest = +match[1] | |
} | |
return ContentService.createTextOutput(JSON.stringify({latest:latest})).setMimeType(ContentService.MimeType.JSON); |
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 | |
# | |
# ------------------------------------------------------------------------------ |
OlderNewer