Skip to content

Instantly share code, notes, and snippets.

View tmd45's full-sized avatar

Yoko TAMADA tmd45

View GitHub Profile
@tmd45
tmd45 / sidebar.js
Created August 29, 2012 01:39
はてなブログのサイドバーのカテゴリ表示をタグクラウド表示にするjQuery
<script>
// タグクラウドもどき
$(function() {
var categories = $(".hatena-module-category ul li a");
$.each(
categories,
function(index, domEle) {
var ele = $(domEle);
var texts = $.trim(ele.text());
// リンクテキストから記事件数を取得
@tmd45
tmd45 / github-flow.ja.md
Created October 17, 2012 02:55 — forked from Gab-km/github-flow.ja.md
GitHub Flow (Japanese translation)

GitHub Flow

31 Aug 2011

git-flowの問題点 (Issues with git-flow)

私は人々にGitを教えるためにあちこちを飛び回っているが、最近のほぼすべてのクラスやワークショップでgit-flowについてどう思うかを尋ねられた。私はいつも、git-flowは素晴らしいと思うと答えている。何百万ものワークフローを持ったシステム(Git)を提供し、ドキュメントもあるし、よくテストされている。フレキシブルなワークフローは、実に容易なやり方で多くの開発者の役に立つ。標準的なものになりつつあり、開発者はプロジェクトや企業の間を移動しつつこの標準的なワークフローに馴染むことができる。

@tmd45
tmd45 / keyword.php
Last active October 14, 2015 01:07
はてなハイクブログ - View のソースコード
<?php
$count = 0;
foreach ($articles as $a)
{
$count++;
?>
<section class="hhblog-section">
<div class="page-header">
<h3>#<?php echo $count; ?></h3>
@tmd45
tmd45 / font-face-entypo.css
Last active May 3, 2018 14:39
Using ’Entypo’ Web Fonts
/* Local Web Fonts Loaded */
/* DIRECTORY:
* assets
* |-- css
* | `-- this CSS
* `-- fonts
* `-- font-files.*
*/
/* Entypo Web Fonts */
@tmd45
tmd45 / .htaccess
Created April 5, 2013 01:22
Web Font Proxy with in font files. ref.: http://qiita.com/items/a33236a40986cd22f37d
<FilesMatch "\.(ttf|otf|eot|woff)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>
AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType font/woff .woff
@tmd45
tmd45 / rails.md
Last active December 16, 2015 07:49
Ruby on Rails coding best practices -- change to Markdown, and translate into Japanese(HOPE).

Ruby on Rails コーディング規約

{{toc}}

コードスタイル

  • UTF-8 を使うこと。21 世紀において、8 bit エンコーディングは滅亡しました。
  • インデントにはタブではなく、サイズ 2 のスペースを使うこと。
*** LOCAL GEMS ***
actionmailer (3.2.13)
actionpack (3.2.13)
activemodel (3.2.13)
activerecord (3.2.13)
activeresource (3.2.13)
activesupport (3.2.13)
arel (3.0.2)
bigdecimal (1.2.0)
@tmd45
tmd45 / gist:5443205
Last active December 16, 2015 13:39
at Windows7 with Ruby2.0
> gem install sqlite3
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing sqlite3:
ERROR: Failed to build gem native extension.
C:/Ruby200x64/bin/ruby.exe extconf.rb
checking for sqlite3.h... no
sqlite3.h is missing. Install SQLite3 from http://www.sqlite.org/ first.
*** extconf.rb failed ***

すぐれた PHP ライブラリとリソース

Awesome PHP の記事をフォークして翻訳したものです (2013年4月25日)。おどろくほどすごい PHP ライブラリ、リソースやちょっとした情報のリストです。

Composer

Composer 関連

vim-surround
vim-endwise
unite-rake
ruby-matchit
unite.vim
unite-reek
vim-rspec
unite-rails_best_practices
tcomment_vim
vim-ref