Skip to content

Instantly share code, notes, and snippets.

View yuya-matsushima's full-sized avatar
🏢
Working from Office

Yuya Matsushima yuya-matsushima

🏢
Working from Office
View GitHub Profile
@yuya-matsushima
yuya-matsushima / tokyo_middleman_meetup2.md
Created April 17, 2014 10:08
Tokyo Middleman Meetup#2

Tokyo Middleman Meetup#2

概要

Middleman の開発者(Thomas Reynolds)が日本に遊びにくるということで, せっかくなので Meetup して交流しましょうの会。

  • 開場: 18:30
  • 開催時間: 19:00 - 21:00

ゲスト

$ current_resource.path // => "index.html"
$ current_resource.destination_path // => "index.html"
$ current_resource.source_file // => "/path/to/dir/middleman-guides/source/index.html.erb"
$ current_resource.url // => "/"
$ current_resource.ext // => ".html"
$ current_resource.data // => {"layout"=>"layout"}
$ current_resource.data.layout // => "layout"
###
# Compass
###
# Change Compass configuration
# compass_config do |config|
# config.output_style = :compact
# end
###
@yuya-matsushima
yuya-matsushima / remoterepo.sh
Last active December 20, 2015 09:19
remoterepo.shのコード公開版
#!/usr/bin/env ruby
# coding: utf-8
conf_dir = '/path/to/gitlite/path/conf_dir/'
conf = conf_dir + 'gitolite.conf'
current = Dir::pwd.split('/').pop
new_repo = ARGV[0].to_s
if new_repo.empty?
puts "作成したいリポジトリ名を指定してください"
@yuya-matsushima
yuya-matsushima / index.haml
Last active December 19, 2015 19:28
[ Middleman で超速プロトタイピング ] #00 Haml 再入門 | Developers.IO : http://dev.classmethod.jp/ria/html5/middleman-supersonic-00-haml-relearning/ の slim 版
!!!
%html
%head
%title hello, Haml
%body
%h1 hello, Haml!
%p Lorem ipsum dolor sit amet
%ul#myList
- 3.times do |i|
%li= "item_#{i}"
@yuya-matsushima
yuya-matsushima / getSiteTitleAndUrl.js
Created July 10, 2013 00:37
TitleとURLを取得し,それぞれ使いやすい形式でalertする
javascript:var url = document.location.href;var title = document.title;var tag = '<a href="' + url + '" target="_blank">' + title + '</a>';var titleUrl = title + " : " + url;var titleUrlTag = title + ' : <a href="' + url + '" target="_blank">' + url + '</a>';var mdUrl = '[' + title + '](' + url +')';alert(tag + "\n\n" + titleUrl + "\n\n" + titleUrlTag + "\n\n" + mdUrl);
@yuya-matsushima
yuya-matsushima / agatsuma.survice03.md
Last active December 17, 2015 21:28
20130529(仮)

agatsuma.survive#03(仮) ver.20130603

agatsuma.survive は群馬県内のプログラマ, デザイナー, マークアップエンジニア, コーダーがこれからの群馬で生き残っていく為に知識やスキルをシェアする勉強会です。

Git 入門

Git の基本的なコマンドの使い方, 複数人での作業の行い方, github の活用方法をざっくり3時間くらいで実際にCLI(黒い画面)でコマンドを叩きながら学びます。とりあえず使ってみて残りはググって解決できるようになるのが目標です。

<?php
interface iBase {
public function getData();
}
class SampleA implements iBase {
public function getData() {
return 'A';
}
/ このコメントは変換後表示されない
/! このコメントは変換後HTMLコメントになる
p
| テキストテキストテキスト
テキストテキストテキスト
p
|
テキストテキストテキスト
テキストテキストテキスト