Skip to content

Instantly share code, notes, and snippets.

View takuyan's full-sized avatar
🎯
Focusing

Takuya Kato / katton takuyan

🎯
Focusing
View GitHub Profile
crumb :oya do |oya|
link "Oya", oya_path(oya)
end
crumb :kodomo do |kodomo|
link "Kodomo", kodomo_path(kodomo)
parent :oya, kodomo.oya
end
crumb :mago do |mago|
@taea
taea / design_menter.md
Last active August 13, 2019 18:42
エンジニア向けデザインメンター(謎)をはじめて、2〜3ヶ月が経ちました

エンジニア向けデザインメンター(謎)をはじめて、2〜3ヶ月が経ちました

@ken_c_lo in 町田の部屋 新年会 2014-03-30

何やるの?

実際のプロジェクトに入って、エンジニアのデザイン業を支援する

デザインといっても広義。(案件のフェーズや人によってそれぞれ違うことやってる)

  • HTML
  • CSS
  • ビジュアルデザイン
@takuyan
takuyan / projections.json
Last active December 29, 2015 14:39 — forked from jsteiner/projections.json
rails.vim projection file for Backbone.Marionette.
{
"app/serializers/*_serializer.rb": {
"command": "serializer",
"related": "app/model/*.rb",
"alternate": "spec/serializers/%s_spec.rb"
},
"app/assets/javascripts/models/*.js.coffee": {
"command": "jmodel",
"alternate": "spec/javascripts/models/%s_spec.js.coffee",
"template": "class @AppName.Models.%S extends Backbone.Model"
@shanselman
shanselman / gist:5422230
Last active March 28, 2024 10:33
Evil Blog Comment Spammer just exposed his template through some error and the whole thing showed up in my comments.
{
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as
you did, the {internet|net|web} will be {much more|a lot more}
useful than ever before.|
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch}
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any?
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe.
Thanks.|
@japboy
japboy / jade-ftw.md
Last active October 23, 2023 11:18
Jade について。

Jade FTW

こんにちは。今回は現実逃避を兼ねて Jade の素晴らしさをお伝えしたいと思います。

Jade とは何か

[Jade][0] は JST (JavaScript Templates) の一つであり、HTML を書くための[軽量マークアップ言語][1] である [Haml][2] に影響を受けた JavaScript テンプレートエンジンでもあります。

@ympbyc
ympbyc / FunctionOriented.md
Last active March 14, 2019 08:33
LLerのための関数指向入門

LLerのための関数指向入門

2013 Minori Yamashita ympbyc@gmail.com

ターゲットを動的オブジェクト指向プログラマに絞って、関数指向の考え方を説明します。 コードサンプルでは、オブジェクト指向には CoffeeScript ^1、関数指向には Clojure を使用しますが、文章は汎用的に書いてあります。

最下部に用語集があるので、わかりづらい単語、表現があったら参照してください。

@taea
taea / balloon_mixin.sass
Last active October 12, 2016 06:58
balloon mixin : 1行でふきだしの三角部分が書けるmixin
/* balloon
=balloon-left($size: 6px, $color: #FFF, $top: 6px)
position: relative
&:after
position: absolute
content: ""
display: block
border: $size solid transparent
border-right: $size solid $color
top: $top
@Gab-km
Gab-km / github-flow.ja.md
Last active April 25, 2024 04:01 — forked from juno/github-flow.ja.md
GitHub Flow (Japanese translation)
@rtekie
rtekie / subdomains.rb
Created May 14, 2012 13:14
Support for Rspec / Capybara subdomain integration testing
# Support for Rspec / Capybara subdomain integration testing
# Make sure this file is required by spec_helper.rb
#
# Sample subdomain test:
# it "should test subdomain" do
# switch_to_subdomain("mysubdomain")
# visit root_path
# end
DEFAULT_HOST = "lvh.me"
@them0nk
them0nk / rspec_rails_cheetsheet.rb
Created March 23, 2012 03:39
Rspec Rails cheatsheet (include capybara matchers)
#Model
@user.should have(1).error_on(:username) # Checks whether there is an error in username
@user.errors[:username].should include("can't be blank") # check for the error message
#Rendering
response.should render_template(:index)
#Redirecting
response.should redirect_to(movies_path)