Skip to content

Instantly share code, notes, and snippets.

🤗
I'm fine thank you.

Yoko TAMADA tmd45

🤗
I'm fine thank you.
Block or report user

Report or block tmd45

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@tmd45
tmd45 / sandbox.md
Created Aug 31, 2018
Markdown to HTML to View
View sandbox.md

仕様変更があったのでコードを修正しました。

修正内容

  • 本文の文字サイズを大きくする
  • アイコンのまわりに余白を追加する

確認方法

@tmd45
tmd45 / ignore
Last active May 10, 2018
.config/git/ignore
View ignore
*.swp
*.tmp
*.work
.AppleDouble
.DS_Store
.LSOverride
.Spotlight-V100
.Trashes
.env
.env.*
@tmd45
tmd45 / classify_gcp_payments.rb
Created Aug 22, 2017
Separate GCP billing by project
View classify_gcp_payments.rb
require 'rake'
require 'csv'
#
# Usage:
#
# Need files(.csv) in same folder "junk".
#
# $ ruby junk/classify_gcp_payments.rb project-name
#
View imananishiton.gs
function myFunction() {
var email = 'xxxxx'
var token = 'xxxxx'
var inEventEmoji = ':date:'
var noEventEmoji = ':globe_with_meridians:'
var notWorking = ':house:'
var ima = new Imananishiton(email, token, inEventEmoji, noEventEmoji, notWorking)
ima.nanishiton()
}
@tmd45
tmd45 / .vimrc
Created Apr 23, 2017
vimrc for server
View .vimrc
set nocompatible
sy on
set hidden
set autoread
set autoindent
set expandtab
set list
set listchars=eol:$,tab:^\ ,extends:>,precedes:<
@tmd45
tmd45 / onthisday.sh
Created Feb 3, 2016
Qiita:Team で一年前の投稿を検索表示する。nkf コマンド必要
View onthisday.sh
#!/bin/sh -e
echo "NOTE: I need command nkf. please 'brew install nkf'."
echo "NOTE: I'll open a result in browser."
echo ""
printf "Your Qiita:Team? (only subdomain) : "
read subdomain
printf "Who are you? : "
read userid
@tmd45
tmd45 / convert.rb
Last active Aug 29, 2015
Convert to Zenkaku | Hankaku test
View convert.rb
require 'nkf'
class Convert
def self.to_han(text)
puts "----- to_han -----"
print_cp(text)
text = NKF.nkf('-wZ0', text)
print_cp(text)
end
@tmd45
tmd45 / Gemfile
Last active Aug 29, 2015
nippo.rb; refs. Githubで今日なにをしたか、調べるスクリプトを書いた - きたけーTechブログ http://kitak.hatenablog.jp/entry/2014/04/22/013849
View Gemfile
source 'https://rubygems.org'
ruby '2.1.5'
gem 'i18n'
gem 'activesupport'
gem 'octokit'
@tmd45
tmd45 / termcolor.rb
Created Apr 17, 2014
ターミナルで使える色と色番号を一覧にする ref: http://qiita.com/tmd45/items/226e7c380453809bc62a
View termcolor.rb
# -*- coding: utf-8 -*-
@fg = "\x1b[38;5;"
@bg = "\x1b[48;5;"
@rs = "\x1b[0m"
def color(code)
number = '%3d' % code
"#{@bg}#{code}m #{number}#{@rs}#{@fg}#{code}m #{number}#{@rs} "
end
View nokogiri_utils.rb
module NokogiriUtils
extend self
# http://gist.github.com/370755
def hash_from_node(node)
{ node.root.name.to_sym => xml_node_to_hash(node.root) }
end
def xml_node_to_hash(node)
return to_value(node.content.to_s) unless node.element?
You can’t perform that action at this time.