目次
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
# frozen_string_literal: true | |
source "https://rubygems.org" | |
gem "serverspec", "2.36.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
# -*- coding: utf-8 -*- | |
require 'kconv' | |
require 'digest/md5' | |
require 'date' | |
KOKYAKUSAMA = '○○様' | |
JOGAI = "^00|OLD|old|~|調査|mock|\.\d\d\d\d\d\d\d\d|品質監査|Thumbs.db|参考|bak|.zip$" |
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
rpm -U http://vault.centos.org/6.6/updates/x86_64/Packages//device-mapper-libs-1.02.90-2.el6_6.3.x86_64.rpm http://vault.centos.org/6.6/updates/x86_64/Packages//device-mapper-event-1.02.90-2.el6_6.3.x86_64.rpm http://vault.centos.org/6.6/updates/x86_64/Packages//device-mapper-event-libs-1.02.90-2.el6_6.3.x86_64.rpm http://vault.centos.org/6.6/updates/x86_64/Packages//device-mapper-1.02.90-2.el6_6.3.x86_64.rpm |
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 -*- | |
# | |
# instagram.rb - embed your photo/videos in instagram to a diary | |
# | |
# Author: Tatsuya Sato | |
# License: GPL | |
require 'cgi' | |
require 'json' | |
require 'uri' | |
require 'net/http' |
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 -*- | |
# | |
# instagram.rb - embed your photo/videos in instagram to a diary | |
# | |
# Author: Tatsuya Sato | |
# License: GPL | |
require 'cgi' | |
require 'json' | |
require 'uri' | |
require 'net/http' |
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
javascript:prompt('Title%20+%20URL', '[[' + document.title+'%5Cn'+location.href + ']]')(); |
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
package sample; | |
public class HogeClient { | |
private Adapter adapter; | |
private static Class<? extends Adapter> staticAdapter; | |
public Adapter getAdaper() { | |
if ( staticAdapter != null){ | |
try { | |
this.adapter = staticAdapter.newInstance(); |
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 'uri' | |
def tabelog_badge(url, name) | |
id = File::basename(URI::parse(url).path) | |
script_url = %Q|http://tabelog.com/badge/google_badge?escape=false&rcd=#{id}| | |
return %Q|<div><strong><a href="#{url}" target="_blank">#{h(name)}</a></strong><br><script src="#{script_url}" type="text/javascript" charset="utf-8"></script></div>| | |
end |
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
(defun rst2html () | |
(interactive) | |
(let* ((rst-file (get-buffer-file-name)) | |
(html-file (concat (directory-namestring rst-file) | |
(pathname-name rst-file) | |
".html"))) | |
(call-process (concat "D:\\App\\python_2_7_5\\python D:\\App\\python_2_7_5\\Scripts\\rst2html.py " | |
rst-file | |
" " | |
html-file |