This file contains hidden or 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
class Account < ActiveRecord::Base | |
has_many :users | |
end |
This file contains hidden or 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
# /spec/features/user_registration_spec.rb | |
require 'rails_helper'; | |
describe 'User registration' do | |
let(:user_email) { '[email protected]' } | |
let(:user_password) { 'registration_test_password' } | |
before :each do | |
visit new_user_registration_path |
This file contains hidden or 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
<?php | |
function qatab_scripts_styles() { | |
if ( !is_admin() ) { | |
wp_dequeue_script('jquery'); | |
wp_deregister_script('jquery'); | |
wp_enqueue_script('jquery', '//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js', array(), '1.11.0', true); | |
} | |
} | |
add_action('wp_enqueue_scripts', 'qatab_scripts_styles'); |
This file contains hidden or 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
$lineheight-multiplier: 1.4; | |
$default-lineheight: -1; | |
// Must be the px font-size on your html element for proper rem calculation. | |
$base-font-size: 16px; | |
$base-font: arial, sans-serif; | |
/** | |
* Just specify font-size, don't override current font. | |
*/ | |
@mixin font-size($fontsize, $lineheight: $default-lineheight, $base: $base-font-size) { |
This file contains hidden or 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
192.168.0.55 www.qatab.dev | |
129.168.0.55 blog.qatab.dev |
This file contains hidden or 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
0.0.0.0 staging.domain.com |
This file contains hidden or 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
0.0.0.0 www.domain.com |
This file contains hidden or 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
$(function() { SomeSiteComponent.init(); }); |
This file contains hidden or 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
(function($, window, document) { | |
var SomeSiteComponent = { | |
init: function() { | |
if ($('.some-class').length > 0) { | |
SomeSiteComponent.setup(); | |
} | |
}, | |
setup: function() { | |
$(document).on('click', '.some-class .some-other-class', SomeSiteComponent.clickHandler); | |
}, |
This file contains hidden or 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
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> | |
<script>window.jQuery || document.write('<script src="/js/libs/jquery-1.10.2.min.js"><\/script>')</script> |