Skip to content

Instantly share code, notes, and snippets.

View yazumoto's full-sized avatar

Yassu yazumoto

  • Alleeks Co., Ltd.
  • Tokyo
View GitHub Profile
@yazumoto
yazumoto / angular-material2-sample.html
Created November 12, 2016 08:33
angular-material2サンプルhtml
<div class="app-content">
<md-card>
<button md-button>FLAT</button>
<button md-raised-button md-tooltip="This is a tooltip!">RAISED</button>
<button md-raised-button color="primary">PRIMARY RAISED</button>
<button md-raised-button color="accent">ACCENT RAISED</button>
</md-card>
<md-card>
@yazumoto
yazumoto / RubyEncode.md
Last active February 1, 2016 06:56
Rubyでエンコードを行う

前の文字コードが出力、後の文字コードが入力

string.encode('UTF-8', 'Shift_JIS')
@yazumoto
yazumoto / ForBlog.paw
Created December 20, 2015 15:10
Pawの設定ファイル
<?xml version="1.0" standalone="no"?>
<!DOCTYPE database SYSTEM "file:///System/Library/DTDs/CoreData.dtd">
<database>
<databaseInfo>
<version>134481920</version>
<UUID>555F771E-499E-4E65-8E4C-C133FB6647C7</UUID>
<nextObjectID>139</nextObjectID>
<metadata>
<plist version="1.0">
@yazumoto
yazumoto / get_current_row.m
Last active December 1, 2015 06:23
[Objective-C] IndexPathで現在の行番号を得る
[indexPath indexAtPosition:[indexPath length]-1];
@yazumoto
yazumoto / file0.txt
Last active November 24, 2015 15:40
Rubyで小数点桁数指定 ref: http://qiita.com/seteen/items/c8ac3a6349cd53ef25b7
test = 1.2345
puts sprintf("%.2f", test) # format("%.2f", test)も同様
@yazumoto
yazumoto / GoogleAnalyticsまとめ.md
Last active November 17, 2015 15:03
GoogleAnalyticsについてのTipsをまとめておく
@yazumoto
yazumoto / AngularjsSEO対策まとめ.md
Last active November 17, 2015 15:01
AngularjsでのSEO対策のサイトをまとめておく
@yazumoto
yazumoto / file.md
Created November 6, 2015 07:50
gitignoreを空のディレクトリに配置する
find . -type d -empty -exec touch {}/.gitkeep \;
@yazumoto
yazumoto / file0.txt
Last active July 24, 2018 14:39
Macでチェックサム(checksum)調べる ref: https://qiita.com/seteen/items/e80cd0808377a2d10043
md5 <ファイルパス>
@yazumoto
yazumoto / file0.txt
Created October 27, 2015 15:19
Railsの自動ロードのパスの調べ方 ref: http://qiita.com/seteen/items/67cbf14c513bc04ea789
pry(main)> ActiveSupport::Dependencies.autoload_paths
# これで色々出力される(デフォルトのロードパス?)
=> ["/Users/USERNAME/rails_path/app/assets/*",
...]
pry(main)> YOUR_APPLICATION_NAME::Application.config.autoload_paths # YOUR_APPLICATION_NAMEはconfig/application.rbに記載してあるはずなので見てみよう
# 何も設定していなかったら空
=> []