Skip to content

Instantly share code, notes, and snippets.

View takahiro47's full-sized avatar

Takahiro Tsuchiya takahiro47

  • CPSF, Tokuda Lab, Environment and Information Studies, Keio University SFC.
  • Tokyo, Japan
View GitHub Profile
@takahiro47
takahiro47 / Preferences.sublime-settings.json
Last active December 20, 2015 16:19
The setting of SublimeText2.app
{
"auto_indent": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
"detect_indentation": true,
"disable_formatted_linebreak": true,
"disable_tab_abbreviations": true,
"font_size": 12.0,
"font_face": "Ricty",
"highlight_trailing_spaces_color_name": "invalid",
"ignored_packages":
$ ->
##
## Social Plugins ##
# Facebook Like Button
((d, s, id) ->
js = undefined
fjs = d.getElementsByTagName(s)[0]
return if d.getElementById(id)
js = d.createElement(s)
# See http://help.github.com/ignore-files/ for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
## OS generated files
## -------------------------------------------
# Linux
@takahiro47
takahiro47 / Gemfile
Last active December 22, 2015 12:58
source 'https://rubygems.org'
## Default Gemfiles+
## ---------------------------------------------------------------------
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.0'
# Use sqlite3 or MySQL2 as the database for Active Record
# gem 'sqlite3'
gem 'mysql2'
assets_path "assets/javascripts"
# Puts files under ./vendor/assets/components
group :vendor do
js 'jquery', '1.10.2'
js 'jquery-ujs'
js 'bootstrap', '~2.3.2'
js 'twitter'
js 'html5shiv'
js 'font-awesome'
@takahiro47
takahiro47 / config.rb
Created September 7, 2013 14:20
Compass (for rails)
# Require any additional compass plugins here.
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "app/assets/stylesheets"
sass_dir = "app/assets/stylesheets/"
images_dir = "app/assets/images"
javascripts_dir = "app/assets/javascripts/"
# You can select your preferred output style here (can be overridden via the command line):
@takahiro47
takahiro47 / Capfile
Created September 7, 2013 14:22
capistrano for rails
load 'deploy'
# Uncomment if you are using Rails' asset pipeline
# load 'deploy/assets'
load 'config/deploy' # remove this line to skip loading any of the default tasks

Startup Rails 4 Project

About

  • Using MySQL database
  • Using HAML, CoffeeScript, SASS(SCSS) templates
  • Using

Set ruby version by rbenv

@takahiro47
takahiro47 / .bash_profile
Last active December 24, 2015 14:09
zsh / tmux / vim
if [ -f ~/.bashrc ]; then
. ~/.zshrc
fi
@takahiro47
takahiro47 / brew_packages.md
Last active July 15, 2018 13:58
The note for me of the brew packages in my OS X machine. Of course, you need to type more install options for each packages if need.

Doctor

$ brew doctor

Update

$ brew update

Tap and Install packages