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
const COUNT_FOR_HALF_WIDTH = 1; | |
const COUNT_FOR_FULL_WIDTH = 2; | |
const MAX_COUNT_WITH_HALF_WIDTH = 46; | |
export default { | |
/** | |
* 半角かどうか確認し、半角の場合true、全角の場合falseを返す | |
* @param {string} value テキスト | |
* @returns {boolean} isPrintable | |
*/ |
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
syntax enable | |
let g:quickrun_config={} | |
"JS | |
autocmd BufNewFile,BufRead *.js set tabstop=2 shiftwidth=2 expandtab | |
"JSON | |
autocmd BufNewFile,BufRead *.json set filetype=json | |
autocmd BufNewFile,BufRead *.json set tabstop=2 shiftwidth=2 expandtab |
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 -*- | |
#!/usr/bin/rubys | |
sentence = `SayKana あけましておめでとう` | |
sentence = `SayKana ことしもよろしくおねがいいたします` | |
# びしんとももこーんより |
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 "rubygems" | |
require 'twitter' | |
search = Twitter.search("becyn", :lang => "ja", :rpp => 5).each do |r| # get 5 tweets except RT. | |
p r.profile_image_url | |
p r.from_user | |
p r.from_user_id |