Skip to content

Instantly share code, notes, and snippets.

@sadah
sadah / rails-environment.md
Created November 23, 2015 11:55
Rails環境構築

Rails 環境構築

この手順は OS X 10.8, 10.9, 10.10 を対象としています。

環境構築手順

Xcode インストール

App Store から Xcode をインストールする。一度 Xcode を起動し、ライセンス使用許諾契約に同意する。

@sadah
sadah / css_resources.md
Created July 20, 2014 06:07 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@sadah
sadah / rails_resources.md
Created July 20, 2014 06:07 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h
@sadah
sadah / javascript_resources.md
Created July 20, 2014 06:07 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@sadah
sadah / 0_reuse_code.js
Created July 20, 2014 06:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

github pages での静的ファイルの公開方法

github pagesはちょっとしたホスティングサービスみたいに使える。

スライドのほとんどを、HTMLとJavaScriptで作っている。使うライブラリはそのときどきで違ったけど、こういった作り方をはじめてもう3年くらい。

以前は Google Code においていて、いまは github pages に置いている。どちらもWebに公開する機能があったので、バージョン管理しながらスライドのホスティングもできる。

メリットはいろいろある。

@sadah
sadah / gist:6524303
Created September 11, 2013 14:20
first git
ファイル修正して、git statusで確認して、git add -Aで変更をローカルに追加する。
git statusで確認して、git commit -m 'test commit.'でコミットして、git pushでgitに反映させる。
⨠ git status
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: README.md
@sadah
sadah / HTML5forBeginners.md
Created June 28, 2013 12:47
HTML5とか勉強会 for ビギナー (第2回) のアジェンダ http://atnd.org/event/beginner5j02?vos=cpatnsoccap0111026001

初めてのHTML5(概念・なにができるの?)

Profile

  • 自己紹介

Questions

ざっくりどんなひとたちが来てるか、ふだん何しているか聞く。

@sadah
sadah / gist:5877328
Created June 27, 2013 15:16
install ruby 2.0 and rails 4. scaffold user.
brew update
brew upgrade rbenv
rbenv install -l
rbenv install 2.0.0-p195
rbenv global 2.0.0-p195
rbenv rehash
ruby -v
gem search rails
gem install rails
rails -v