...expressions — RubyGuides; the friendlier walkthrough ▶️ Learn regular expressions in 20 minutes — Web Dev Simplified; JavaScript syntax, same concepts 🎮 RegexOne — interactive lessons 🎮 Rubular and regex101 — try an expression against sample text...
...feeds works differently in every language 📄 Testing regular expressions visually 📄 Using regular expressions in JavaScript — the differences you'll meet in the browser ReDoS ▶️ Vortrag: ReDoS-Angriffe — internal talk (in...
...concurrency controls, a dashboard, and jobs enqueued in the same transaction as your data JavaScript build Propshaft, import maps, "no build" esbuild No-build means no bundling, no Sass, no...
...jsx files. Alternatively add '.js': 'jsx' to the loader map in esbuild.config.js, so every JavaScript file may contain JSX. Add jsx: 'automatic' to the esbuild options, so you don't...
...blocks exist, or what they contain, is not. You don't need responsive behavior, JavaScript, or hover and animation polish. For rows and columns, use the Flexbox basics from CSS...
...They are picked up automatically by the glob in application.js — the same way your JavaScript will be, in a later card. Keep shared variables and mixins in partials outside that...
In a web application you often need to move data between the client (HTML, Javascript) and the server (Ruby, Rails). Step 1: Moving HTML snippets Add a find-as-you...
...of HTML from the server. For the part of the implementation that lives in Javascript, implement a Search.match(query) method that returns a promise. You should be able to use...
Best results in other decks
A JavaScript error in an E2E test with Selenium will not cause your test to fail. This may cause you to miss errors in your frontend code. Using the BrowserConsole...
...spec has ended: RSpec.configure do |config| config.after do BrowserConsole.assert_no_errors! end end Ignoring JavaScript errors for a spec We can configure RSpec to ignore JavaScript errors in specs tagged...
Capybara provides execute_script and evaluate_script to execute JavaScript code in a Selenium-controlled browser. This however is not a good solution for asynchronous JavaScript. Enter evaluate_async_script...
done("some result") }) JS Finally, you can pass additional object from Ruby to Javascript: result = page.evaluate_async_script(<<~JS, arg1, arg2) let [arg1, arg2, done] = arguments doSomethingAsynchronous().then(() => {