Skip to content

Instantly share code, notes, and snippets.

@rorlab
rorlab / Gemfile
Created May 24, 2014 06:24 — forked from remino/Gemfile
# Gemfile
gem 'kramdown'
@rorlab
rorlab / rorlab_translation_guide.md
Last active August 29, 2015 14:03
Michael Hartl의 Ruby on Rails Tutorial 공동번역

Ruby on Rails Tutorial 공동번역 프로젝트

주최자

  • ROR Lab.
  • 운영진 : 김대권/최효성

목적

  • Michael Hartl의 Ruby on Rails Tutorial을 한국어로 공동번역한다.
@rorlab
rorlab / google_translator_toolkit_guide.md
Last active August 29, 2015 14:03
구글 번역자 도구함 사용 가이드

구글 번역자 도구함 (Google Translator Toolkit)

번역자 도구함을 이용하여 할 수 있는 작업

  • MS 워드 문서, 오픈오피스, RTF, HTML, 일반텍스트, 위키피디아 글, 놀(knol) 문서를 업로드할 수 있다.

  • 이전의 사람이 번역한 것과 기계 번역을 이용하여 업로드한 문서를 "사전번역(pretranslate)"할 수 있다.

  • 이 도구함에서 제공하는 간단한 위지위크 에디터를 이용하면 사전번역을 효과적으로 할 수 있다.

@rorlab
rorlab / ruby_on_rails_tutorial_rorlab_guide.md
Created July 5, 2014 05:20
Ruby on Rails Tutorial 공동번역 프로젝트 안내문

Ruby on Rails Tutorial 공동번역 프로젝트

주최자

  • ROR Lab.
  • 운영진 : 김대권/최효성

목적

  • Michael Hartl의 Ruby on Rails Tutorial을 한국어로 공동번역한다.
@rorlab
rorlab / _form.html.erb
Created October 4, 2014 22:05
Simple_form scaffold erb template file for Bootstrap
<%%= simple_form_for(@<%= singular_table_name %>) do |f| %>
<%%= f.error_notification %>
<%- attributes.each do |attribute| -%>
<div class="form-group">
<%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %>, input_html: { class: 'form-control' } %>
</div>
<%- end -%>
<div class="form-actions">
@rorlab
rorlab / application_helper.rb
Last active August 29, 2015 14:07
bootstrap alert helper method
module ApplicationHelper
def flash_class(level)
case level
when :notice then "info"
when :success then "success"
when :error then "danger"
when :alert then "warning"
# else "info"
end
@rorlab
rorlab / application.html.erb
Last active August 29, 2015 14:07
Application Layout File with Bootstrap "Clear Form"
<!DOCTYPE html>
<html>
<head>
<title>Blog</title>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
<%= csrf_meta_tags %>
</head>
<body>
@rorlab
rorlab / application.html.erb
Created July 19, 2012 09:15
app/views/layouts/application.html.erb
<!DOCTYPE html>
<html>
<head>
<title>Blog, ROR Lab. Lecture</title>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
<body>
@rorlab
rorlab / layout.css.scss
Created July 19, 2012 09:16
app/assets/stylesheets/layout.css.scss
body {
background:#336699 !important;
}
#header {
margin:0 auto;
width:80%;
text-align: right;
h1 {
margin-bottom:5px;
@rorlab
rorlab / .bash_profile
Created August 1, 2012 02:48
Shell Prompt for RVM & Git
function __git_dirty {
git diff --quiet HEAD &>/dev/null
[ $? == 1 ] && echo "!"
}
function __git_branch {
__git_ps1 "%s"
}
function __my_rvm_ruby_version {