Skip to content

Instantly share code, notes, and snippets.

@yhirano55
yhirano55 / for_speaker.md
Last active February 23, 2022 13:44
Railsdm 2018: ご登壇者向け資料

Railsdm 2019: ご登壇者向け資料

要点

発表資料について

  • 両日の会場ともに、アスペクト比は、16:9 となります。
  • スクリーンまでの距離が遠いため、 文字サイズは多少大きめ がよさそうです。

登壇方法について

@5t111111
5t111111 / application_controller_test.rb
Created April 5, 2016 07:15
ApplicationController で定義されている before_action の動作テストと、それが実際に呼ばれていることのテストについて
require 'test_helper'
# clas_eval でダミーのアクションを定義する
ApplicationController.class_eval do
def dummy_action
render :nothing
end
end
# Rails.application.routes.draw が呼ばれたときにルートをクリアする動作を無効にする
@azu
azu / js.md
Last active June 23, 2024 17:38
JavaScriptのレベル別書籍のまとめ

前提: 完成していて、比較的支持を集めていて、JavaScriptを中心にした書籍 (DOM APIよりは言語を中心とした内容)

追記: JavaScriptの入門書 #jsprimerを書いている

最初からES2015で学ぶことを前提にした初心者〜中級者向けのJavaScript本がなかったので書いてる。 ES2015でJavaScriptという言語のコア部分は大きく変わったので、それを前提とした内容にする予定。

つくって学ぶプログラミング言語 3.2を理解しよう

与えられた式

[:let,
 [[:fact,
   [:lambda, [:n], [:if, [:<, :n, 1], 1, [:*, :n, [:fact, [:-, :n, 1]]]]]]],
 [:fact, 1]]
$ brew install libxml2 libxslt
$ brew link libxml2 libxslt --force
$ wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz
$ tar xvfz libiconv-1.13.1.tar.gz
$ cd libiconv-1.13.1
$ ./configure --prefix=/usr/local/Cellar/libiconv/1.13.1
$ make
$ sudo make install
$ gem install nokogiri -- --with-xml2-include=/usr/local/Cellar/libxml2/2.7.8/include/libxml2
@udzura
udzura / tutorial.md
Created June 2, 2014 03:31
Hubot + CoffeeScript ではじめるやわらかプログラミング入門

やわらかプログラミング入門

  • Hubot であそぼう


始めに、地図を描く

@taea
taea / rm_pid.md
Last active January 12, 2023 14:22
postgres をちゃんと終了しないと.pidファイルが残っちゃって、Rails が起動しないもんだい

Rails 起動しようとするとこんなエラーでる

PG::ConnectionBad at /
could not connect to server: Connection refused
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
@axross
axross / how_to_install_ruby2.0_and_rails4.0.2_with_rbenv.md
Last active August 13, 2021 16:24
rbenvを使用しており、Rubyの普段使っているバージョンが2.0系でない方へ

rbenvを使用しており、普段使っているRubyのバージョンが2.0系でない方へ

Railsチュートリアル(4.0版)では、Rubyのバージョンとして2.0系を用いており、動作確認をしたGemを用いています。
Gemの中にはバージョンごとに別のコードで実装されているものがありますので、Rubyのバージョンを2.0系に合わせることをおすすめします。

下記に、rbenv + ruby-buildでRubyをインストールしている方向けに、Ruby2.0系でRailsチュートリアルを進めるための方法を書いておきます。

インストール可能なバージョンの確認

@mochiz
mochiz / gist:4736183
Last active April 16, 2023 03:56
rbenvとruby-buildでRuby環境を最新に保つ

rbenvとruby-buildでRuby環境を最新に保つ

更新日:2014/11/19

rbenv, ruby-buildを更新

$ cd ~/.rbenv
$ git pull origin master
$ cd ~/.rbenv/plugins/ruby-build
$ git pull origin master
@jugyo
jugyo / full-text-search-by-groonga-and-ruby.md
Created August 15, 2012 07:35
Groonga + Ruby で全文検索

Groonga + Ruby で全文検索

groonga のインストール

$ brew install groonga

rroonga のインストール

Ruby から groonga を使うために rroonga というライブラリを使う: