- https://didik.id/rss/
- https://rizafahmi.com/rss.xml
- https://rahard.wordpress.com/feed/
- https://kelimuttu.co/atom.xml
- https://medium.com/feed/pujanggateknologi
- https://wwwid.org/index.xml
- https://anchor.fm/s/30348d4/podcast/rss
- https://anchor.fm/s/10638908/podcast/rss
- https://anchor.fm/s/91cbbb0/podcast/rss
- https://anchor.fm/s/9cae1b8/podcast/rss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# put this in your staging.rb file. Obviously you'll need more config than this it's just an example. | |
Rails.application.configure do | |
config.action_mailer.preview_path ||= defined?(Rails.root) ? "#{Rails.root}/test/mailers/previews" : nil | |
config.autoload_paths += [config.action_mailer.preview_path] | |
routes.append do | |
get '/rails/mailers' => "rails/mailers#index" | |
get '/rails/mailers/*path' => "rails/mailers#preview" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# explicitly disable mouse control | |
setw -g mode-mouse off | |
set -g mouse-select-pane off | |
set -g mouse-resize-pane off | |
set -g mouse-select-window off | |
# Disable window rename | |
set-option -g allow-rename off | |
# Start windows and panes at 1, not 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem "bower-rails", "~> 0.8.3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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) |
I have two models, Post and Tag. This is not my real scenario. In order to simplify it, lets assume that:
- each Post can have many Tags,
- Tag name can be saved as empty when Post's status is
:draft
. The reason is so that user could not be bothered with validation when all they want is just save Post as a draft.
This is the models that I have in mind:
# Post model
class Post < ActiveRecord::Base
$ yum update
$ yum install curl git vim`
$ git config --global user.name "Your name"
$ git config --global user.email "[email protected]"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
// http://guides.rubyonrails.org/contributing_to_ruby_on_rails.html | |
"tab_size": 2, | |
"translate_tabs_to_spaces": true | |
} |
NewerOlder