Skip to content

Instantly share code, notes, and snippets.

@tortuetorche
tortuetorche / Select2.php
Last active May 28, 2021 10:41
Select2 v3.5 helpers for the WebDriver module of Codeception 2.1 (WIP)
<?php
namespace Helper;
// Select2 helpers for the jQuery based replacement for select boxes.
// See: http://select2.github.io/select2
// Author: Tortue Torche <[email protected]>
// License: MIT
//
// Installation:
// * Put this file in your 'tests/_support/Helper' directory
@KeeperPat
KeeperPat / private.xml
Created December 30, 2016 15:31
Karabiner Configuration to Remap Surface Ergonomic Keyboard Alt and Windows Keys for Mac
<?xml version="1.0"?>
<root>
<devicevendordef>
<vendorname>Microsoft</vendorname>
<vendorid>0x045e</vendorid>
</devicevendordef>
<deviceproductdef>
<productname>SurfaceErgonomic</productname>
<productid>0x0817</productid>
@r3dm1ke
r3dm1ke / setupJest.js
Last active August 16, 2024 01:17
toBeISODate Jest matcher
expect.extend({
toBeISODate(received) {
// This regexp checks for formatting
if (
!/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(received)
) {
return {
pass: false,
message: `Expected ${received} to be a valid ISO date string`,
};