rbenv, ruby-buildを更新
$ cd ~/.rbenv
$ git pull origin master
$ cd ~/.rbenv/plugins/ruby-build
$ git pull origin master
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |
| require 'spec_helper' | |
| describe Users::OauthCallbacksController, "handle facebook authentication callback" do | |
| describe "#annonymous user" do | |
| context "when facebook email doesn't exist in the system" do | |
| before(:each) do | |
| stub_env_for_omniauth | |
| get :facebook |
| Facebook Canvas apps are loaded like this: | |
| * User clicks link to app or tab ("page as tab") | |
| * An iframe is inserted which loads content from the FB server (NOT yours, yet) | |
| Something along the lines of: | |
| <iframe src="http://facebook.com/page_proxy.php?appid=123"> | |
| * The FB server returns some HTML & JS with an automatically submitting form: | |
| <form id="humbaba" target="http://you.com/facebook"> | |
| <input type="hidden" name="signed_request"/></form> |
| namespace :paperclip_migration do | |
| desc 'Migrate data' | |
| task :migrate_s3 => :environment do | |
| # Make sure that all of the models have been loaded so any attachments are registered | |
| puts 'Loading models...' | |
| Dir[Rails.root.join('app', 'models', '**/*')].each { |file| File.basename(file, '.rb').camelize.constantize } | |
| # Iterate through all of the registered attachments | |
| puts 'Migrating attachments...' |
| 更新: | 2026-01-17 |
|---|---|
| 作者: | @voluntas |
| バージョン: | 2026.1 |
| URL: | https://voluntas.github.io/ |
typo などは https://x.com/voluntas までご連絡ください。
| { | |
| "AWSTemplateFormatVersion": "2010-09-09", | |
| "Description": "VPC knowhow template", | |
| "Parameters": { | |
| "KeyName": { | |
| "Description": "Name of an existing EC2 KeyPair to enable SSH access to the instances", | |
| "Type": "String", | |
| "MinLength": "1", | |
| "MaxLength": "64", | |
| "AllowedPattern": "[-_ a-zA-Z0-9]*", |
| # Install Git needed for Git based gems | |
| packages: | |
| yum: | |
| git: [] | |
Hello, visitors! If you want an updated version of this styleguide in repo form with tons of real-life examples… check out Trellisheets! https://github.com/trello/trellisheets
“I perfectly understand our CSS. I never have any issues with cascading rules. I never have to use !important or inline styles. Even though somebody else wrote this bit of CSS, I know exactly how it works and how to extend it. Fixes are easy! I have a hard time breaking our CSS. I know exactly where to put new CSS. We use all of our CSS and it’s pretty small overall. When I delete a template, I know the exact corresponding CSS file and I can delete it all at once. Nothing gets left behind.”
You often hear updog saying stuff like this. Who’s updog? Not much, who is up with you?