Skip to content

Instantly share code, notes, and snippets.

View zixu-zhao's full-sized avatar
😄
All lzz well

Zixu Zhao zixu-zhao

😄
All lzz well
  • Toronto, CA
  • 13:13 (UTC -12:00)
View GitHub Profile
@zixu-zhao
zixu-zhao / alias_matchers.md
Created October 7, 2019 19:24 — forked from JunichiIto/alias_matchers.md
List of alias matchers in RSpec 3

This list is based on aliases_spec.rb.

You can see also Module: RSpec::Matchers API.

matcher aliased to description
a_truthy_value be_truthy a truthy value
a_falsey_value be_falsey a falsey value
be_falsy be_falsey be falsy
a_falsy_value be_falsey a falsy value
@zixu-zhao
zixu-zhao / jquery.stateselector.js
Created September 16, 2019 19:02 — forked from dflynn15/jquery.stateselector.js
jQuery stateselector is a plugin that is given the state/province <select> field and dynamically populates it dependent on the country <select> field the plugin is attached to. Currently is using country codes, can be modified to take in string values of the countries on lines 97 and 104. To add more countries add a hash variable above $.fn.stat…
/**
*
* Created by: Daniel Flynn
* Date: Jan 17, 2013
* Updated: Jan 17, 2013
* jQuery plugin for a dynamic country/state select field
*
**/
(function($){