I hereby claim:
- I am yaycmyk on github.
- I am esj (https://keybase.io/esj) on keybase.
- I have a public key whose fingerprint is 2E6C 74B2 FFA5 5643 DF68 4FC7 ADFD 2C75 8979 E7E7
To claim this, I am signing this object:
| ;(function($){ | |
| $(document).ready(function(){ | |
| var x = $('[placeholder]'); | |
| for( var i=0, len=x.length; i<len; i++ ){ | |
| x.eq(i).attr('data-placeholder', x.eq(i).attr('placeholder')); | |
| } | |
| x.on('focus', function(){ $(this).attr('placeholder', ''); }) |
| // Interactive breakdown at: https://www.debuggex.com/r/6zmlYhT6GVcEn-rh | |
| var re = /^.*?(?:youtube\.com\/(?:watch\?v=|embed)/?|\/vimeo\.com\/|player\.vimeo\.com\/video\/|instagram\.com\/p\/)(.*?)\/?$/; |
| /* | |
| This function allows you to define things happen before and after the receiving | |
| controller actually gets its data. | |
| Useful for caching the result set locally in a service. | |
| After comes prior to before because we want don't want to delay return of data to the | |
| controller unless absolutely necessary. | |
| Requires access to $q. |
| [{"os":"Windows","browser":"opera","device":null,"os_version":"8","browser_version":"12.15"},{"os":"Windows","browser":"opera","device":null,"os_version":"8","browser_version":"12.16"},{"os":"Windows","browser":"chrome","device":null,"os_version":"8","browser_version":"22.0"},{"os":"Windows","browser":"chrome","device":null,"os_version":"8","browser_version":"23.0"},{"os":"Windows","browser":"chrome","device":null,"os_version":"8","browser_version":"24.0"},{"os":"Windows","browser":"chrome","device":null,"os_version":"8","browser_version":"25.0"},{"os":"Windows","browser":"chrome","device":null,"os_version":"8","browser_version":"26.0"},{"os":"Windows","browser":"chrome","device":null,"os_version":"8","browser_version":"27.0"},{"os":"Windows","browser":"chrome","device":null,"os_version":"8","browser_version":"28.0"},{"os":"Windows","browser":"chrome","device":null,"os_version":"8","browser_version":"29.0"},{"os":"Windows","browser":"chrome","device":null,"os_version":"8","browser_version":"30.0"},{"os":"Wind |
| Total qualified mortgage amount = ( 0.5 - c(m/(1-(1+m)^-n)) - T(c) - I(c) + R((A-d*12)/12) ) / ( m/(1-(1+m)^-n) + T + I ) | |
| A = gross annual income | |
| I = decimal insurance rate | |
| R = decimal maximum allowed payment/income ratio based on creditworthiness (44% -> 0.44, etc.) | |
| T = decimal tax rate / 12 | |
| c = down payment | |
| d = gross monthly debt | |
| i = decimal interest rate |
| require 'coveralls' | |
| require 'nokogiri' | |
| require 'digest' | |
| # converts cobertura xml output into the necessary coveralls JSON payload | |
| # and sends it on its way | |
| # use like `ruby pack_n_ship_to_coveralls.rb xml1.xml xml2.xml xml3.xml` | |
| # replace `ENV['TRAVIS_JOB_ID']` as needed if you don't use Travis CI |
| require 'nokogiri' | |
| require 'digest' | |
| files = ARGV | |
| source_files = [] | |
| cwd_prefix = Dir.pwd + '/' | |
| unless files.empty? | |
| files.each do |filename| | |
| xml = Nokogiri::XML(File.open(filename).read, 'r') |
| require 'coveralls' | |
| # Craft the payload... | |
| payload = { | |
| :service_job_id => ENV['TRAVIS_JOB_ID'], | |
| :service_name => 'travis-pro', | |
| :source_files => source_files, | |
| } | |
| Coveralls::API.post_json('jobs', payload) |
I hereby claim:
To claim this, I am signing this object:
Notes:
All actions should go in /actions.js and all constants should go in /constants.js (this is the one place where we deviate from keeping things together, as having all actions in one place makes understanding the entire application's potential state changes very straightforward)
The /index.js should mount the application, set up the store, and contain application routing
The /**/index.js in each child folder should contain that part of the state tree's reducer, action constants, and export /**/component.js wrapped by connect() from react-redux
If using Stylus, /style.styl can glob import all child /**/*.styl files so explicit tracking of them is not necessary
Each child /**/*.styl should only contain styles relevant to that view, without side effects
The child /**/component.js should be as simple and "pure" as possible, preferring stateless syntax where possible
If the child does not need a reducer ("pure" subview), /**/component.js can be skipped and si