Fixes issue(s) # .
Changes proposed in this pull request:
/cc relevant people
| Create bookmark and drop this in the URL field | |
| javascript:!function(){let e,t=["kevinhyunilkim","rhkwong","yingyingchoi","t3ly","roger-mo-gusto","julieqdchen-gusto","Lizard381","jaguar1014"];function n(){if(t.length>0){const e=t.shift();document.getElementById("review-filter-field").value=e,document.getElementById("review-filter-field").dispatchEvent(new Event("focus"));let i=0;const s=function(){let t=document.querySelectorAll(".filterable-active .select-menu-item"),c=null;t.forEach(function(t){-1!==t.textContent.toLowerCase().indexOf(e.toLowerCase())&&(c=t)}),c?(c.click(),setTimeout(n,200)):i%3E8?setTimeout(n,200):(i++,setTimeout(s,500))};s()}else%20document.querySelectorAll(%22.sidebar-assignee.js-discussion-sidebar-item%20summary%22)[0].click(),e.parentNode.removeChild(e)}function%20i(){const%20e=function(){const%20t=document.querySelectorAll(%22.select-menu-list%20.select-menu-item%22).length;null==document.querySelector(%22.js-discussion-sidebar-menu%20.select-menu-header%22).offsetParent&&document.que |
| #!/usr/bin/env ruby | |
| # require 'pry' | |
| # require 'byebug' | |
| module DelegateMe | |
| def delegate_methods(methods, to:) | |
| [methods].flatten.each do |method_name| | |
| define_method method_name do |*arg, &block| | |
| base = send(to) |
Fixes issue(s) # .
Changes proposed in this pull request:
/cc relevant people
| (defun is-ruby-file (f) | |
| (if (string-match "\\.rb$" f) | |
| t | |
| nil | |
| )) | |
| (defun is-javascript-file (f) | |
| (if (or | |
| (string-match "\\.jsx?$" f) | |
| (string-match "\\.json$" f)) |
fetch is a modern browser native XHR request handler that returns a promise. https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
axios is a library that does the same thing. https://github.com/axios/axios
The way they return data is a little different. Let's compare.
| defmodule Inspector do | |
| def inspector(v,s), do: (IO.puts("[#{s}] #{inspect(v)}"); v) | |
| def inspector(v), do: (IO.puts("[check] #{inspect(v)}"); v) | |
| end |
| module Capybara | |
| class Session | |
| def has_flash?(kind, msg) | |
| within ".alert-#{kind}" do | |
| has_content?(msg) | |
| end | |
| end | |
| end | |
| end |
| require_relative "../../spec/support/test_es_server" | |
| require_relative "./webmock" | |
| TestEsServer.start | |
| at_exit do | |
| TestEsServer.stop | |
| end |
| #!/usr/bin/env ruby | |
| voices = [ | |
| "Agnes", | |
| "Kathy", | |
| "Princess", | |
| "Vicki", | |
| "Victoria", | |
| "Bruce" , | |
| "Fred" , |
| window.CachedDataService = { | |
| inProgress: { | |
| }, | |
| ajax: function(ajaxOptions) { | |
| var key = ajaxOptions.url + (JSON.stringify(ajaxOptions.data || '')) | |
| if (this.inProgress[key]) { | |
| return this.inProgress[key]; | |
| } | |
| else { |