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 'moji' | |
def normalize_neologd(norm) | |
norm.tr!("0-9A-Za-z", "0-9A-Za-z") | |
norm = Moji.han_to_zen(norm, Moji::HAN_KATA) | |
hypon_reg = /(?:˗|֊|‐|‑|‒|–|⁃|⁻|₋|−)/ | |
norm.gsub!(hypon_reg, "-") | |
choon_reg = /(?:﹣|-|ー|—|―|─|━)/ | |
norm.gsub!(choon_reg, "ー") | |
chil_reg = /(?:~|∼|∾|〜|〰|~)/ |
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/env ruby | |
# encoding: utf-8 | |
require 'nokogiri' | |
require 'net/http' | |
MEMBER_KEY="メンバー" | |
DAY_KEY="日付" | |
def crawl(url) | |
doc = Nokogiri::HTML(Net::HTTP.get(URI(url))) |
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
class Elasticsearch14 < Formula | |
homepage "https://www.elastic.co/products/elasticsearch" | |
url "https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.4.4.tar.gz" | |
sha256 "a3158d474e68520664debaea304be22327fc7ee1f410e0bfd940747b413e8586" | |
bottle do | |
cellar :any | |
sha256 "d2a1df0938267bcff1cfae6341392ec2d4869809e7adf868e8b3d54eb0908481" => :yosemite | |
sha256 "1d18d3bf86a1b6e17a9612d0178e12f70a68fffd0eddd0c956964226d48ef3b0" => :mavericks | |
sha256 "f3bb1bfc49b1a56ddfa485c8c032d3b39beb70cf0ed9df20c69d3dbff8a2abd2" => :mountain_lion |
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
class Elasticsearch14 < Formula | |
homepage "https://www.elastic.co/products/elasticsearch" | |
url "https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.4.4.tar.gz" | |
sha256 "a3158d474e68520664debaea304be22327fc7ee1f410e0bfd940747b413e8586" | |
bottle do | |
cellar :any | |
sha256 "d2a1df0938267bcff1cfae6341392ec2d4869809e7adf868e8b3d54eb0908481" => :yosemite | |
sha256 "1d18d3bf86a1b6e17a9612d0178e12f70a68fffd0eddd0c956964226d48ef3b0" => :mavericks | |
sha256 "f3bb1bfc49b1a56ddfa485c8c032d3b39beb70cf0ed9df20c69d3dbff8a2abd2" => :mountain_lion |
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/env ruby | |
# encoding: utf-8 | |
require 'net/http' | |
require 'nokogiri' | |
uri = URI("http://www.fashion-press.net/brands/en") | |
doc = Nokogiri::HTML(Net::HTTP.get(uri)) | |
results = [] |
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/env ruby | |
# encoding: utf-8 | |
require 'mechanize' | |
def syouhyou_yomi(*keywords) | |
keywords.flatten! | |
wait_time = 0.2 | |
agent = Mechanize.new | |
agent.user_agent_alias = 'Mac Mozilla' |
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
//------------------------------------------------------ | |
// textchat communication | |
// textchat.cfg | |
//------------------------------------------------------ | |
// keyboard | |
bind "1" "say_team 1" | |
bind "2" "say_team 2" | |
bind "3" "say_team 3" | |
bind "4" "say_team 4" | |
bind "e" "say_team check this!; vocalize SmartLook" |
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
#include <sourcemod> | |
#define PLUGIN_VERSION "1.0.0" | |
public Plugin:myinfo = | |
{ | |
name = "cant say plugin", | |
author = "kimoto", | |
description = "cant use console command: say", | |
version = PLUGIN_VERSION, | |
url = "" |
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
// | |
// Name: everywhere ghost respawn SourceMod plugin | |
// History: | |
// ver0.2: | |
// cleanup source code | |
// added debug mode | |
// added keyconfig | |
// ver0.1: | |
// first release | |
// |
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
# name: | |
# auto-team-balance(all shuffle mode) concept code | |
# spec: | |
# spectators is need more +1 slot | |
# if under 2 player then not enable auto balanced function, why? should be server shutting down | |
# known bugs: | |
# *fixed: unbalance size teams so error | |
# history: | |
# bug fixed | |
# cleanup code |
OlderNewer