This file contains 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
// @ts-check | |
const { test, expect } = require('@playwright/test'); | |
test.beforeEach(async ({ page }) => { | |
await page.goto('https://demo.playwright.dev/todomvc'); | |
}); | |
const TODO_ITEMS = [ | |
'buy some cheese', | |
'feed the cat', |
This file contains 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
license: gpl-3.0 |
This file contains 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
import { keymap } from './keypress-promise'; | |
// import CrapEventEmitter from './crap-event-emitter'; | |
const page = { | |
id: 'page', | |
speech: 'voiceover-demo, web content', | |
children: [ | |
{ | |
id: 'main-heading', | |
speech: 'heading level 1, Example page', |
This file contains 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
license: gpl-3.0 |
This file contains 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
license: gpl-3.0 |
This file contains 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
const gulp = require('gulp'); | |
const webpack = require('webpack'); | |
const WebpackDevServer = require('webpack-dev-server'); | |
const webpackConfig = require('./webpack.config.js'); | |
gulp.task('js:build', function (done) { | |
webpack(webpackConfig('js:build'), function (err, stats) { | |
if (err) { | |
throw err; |
This file contains 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
'use strict'; | |
var path = require('path'); | |
var findup = require('findup-sync'); | |
var cache = {}; | |
function sassNpmImporter(url, prev, done) { | |
// Fall back to old URL | |
var newUrl = url; |
This file contains 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
require('./module1'); | |
import './module2'; | |
// Output will be "module two" followed by "module one" |
This file contains 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
import Data.List (foldl1') | |
-- Factorial function | |
fact n = foldl1' (*) [1..n] | |
-- Permutation function | |
n `p` 0 = 1 | |
n `p` 1 = n | |
n `p` r = foldl1' (*) [n-r+1..n] |
This file contains 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
Started GET "/cart" for ::1 at 2015-09-22 17:35:39 +0100 | |
Processing by Mermaid::CartController#show as HTML | |
Spree::User Load (0.3ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = $1 LIMIT 1 [["id", 1]] | |
Cache read: spree/app_configuration/supported_currencies | |
Spree::Order Load (0.2ms) SELECT "spree_orders".* FROM "spree_orders" WHERE "spree_orders"."completed_at" IS NULL AND "spree_orders"."user_id" = $1 AND "spree_orders"."guest_token" = $2 AND "spree_orders"."currency" = $3 LIMIT 1 [["user_id", 1], ["guest_token", "6NRkTjAVAUKRiHh3K6AeLw"], ["currency", "GBP"]] | |
Cache read: spree/app_configuration/supported_currencies | |
CACHE (0.0ms) SELECT "spree_users".* FROM "spree_users" WHERE "spree_users"."deleted_at" IS NULL AND "spree_users"."id" = $1 LIMIT 1 [["id", 1]] | |
Spree::LineItem Load (0.3ms) SELECT "spree_line_items".* FROM "spree_line_items" WHERE "spree_line_items"."order_id" = $1 ORDER BY spree_line_items.created_at ASC [["ord |
NewerOlder