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 -*- | |
module Masoojer | |
def self.secret_protection(begin_position, end_position) | |
replace_string = "■" * (end_position - begin_position) | |
$azukiControl.Document.Replace(replace_string, begin_position, end_position) | |
end | |
end | |
menu_sp = System::Windows::Controls::MenuItem.new() |
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 -*- | |
require 'mscorlib' | |
require 'System' | |
require 'PresentationFramework' | |
module Masoojer | |
def self.kancolle | |
@webbrowser = System::Windows::Controls::WebBrowser.new | |
@webbrowser.Name = "KancolleWebBrowser" | |
@webbrowser.Height = System::Double.NaN |
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 -*- | |
require 'mscorlib' | |
require 'System' | |
require 'PresentationFramework' | |
module Masoojer | |
def self.dqmp | |
@webbrowser = System::Windows::Controls::WebBrowser.new | |
@webbrowser.Name = "DqmpWebBrowser" | |
@webbrowser.Height = System::Double.NaN |
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 -*- | |
require 'mscorlib' | |
require 'System' | |
require 'PresentationFramework' | |
module Masoojer | |
def self.full_screen | |
if @full_screen_toggle then | |
self.full_screen_off | |
else |
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
require 'PresentationFramework' | |
w = System::Windows::Window.new | |
w.width = 400 | |
w.height = 300 | |
w.Content = System::String.new("Hello, World!!") | |
w.show_dialog |
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 -*- | |
module Masoojer | |
require 'System' | |
require 'mscorlib' | |
require 'WindowsBase' | |
require 'PresentationCore' | |
require 'PresentationFramework' | |
require "Sgry.Azuki" | |
require "System.Drawing" |
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
install_log_centos6_5_vagrant.txt | |
CentOS 6.5 を vagrant 風にした時のログ | |
## インストール | |
http://masoojp.blogspot.jp/2014/02/centos-65-x8664-minimal.html | |
## root でログイン | |
## ユーザーを追加 | |
$ adduser vagrant |
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 -*- | |
module DateSortFilter | |
def date_sort_ascending(input) | |
input.sort {|a, b| | |
value = 0 | |
left_key = a.to_liquid["date"] | |
right_key = b.to_liquid["date"] | |
if left_key.nil? && right_key.nil? | |
value = 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
# coding: utf-8 | |
require 'find' | |
target_dir = ARGV[0] | |
all_string = [] | |
Find.find(target_dir) do |file| | |
if File.extname(file) == ".html" | |
content = File.open(file).read | |
file_string_array = content.split('') |
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
# Pull base image. | |
FROM ubuntu:17.04 | |
MAINTAINER FUNABARA Masao | |
# Install Ruby | |
RUN \ | |
DEBIAN_FRONTEND=noninteractive apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | |
git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties libffi-dev nodejs && \ |
OlderNewer