Skip to content

Instantly share code, notes, and snippets.

View jfhector's full-sized avatar

J.F. Hector jfhector

View GitHub Profile
@jfhector
jfhector / definition.feature
Last active February 19, 2022 20:23
wrapInSynchronousTryCatch
Feature: wrapInSynchronousTryCatch
Scenario: The function returned by wrapInSynchronousTryCatch calls the function provided to wrapInSynchronousTryCatch with the same arguments
Given wrapInSynchronousTryCatch is called with a synchronous function that does not throw
When the function returned by wrapInSynchronousTryCatch is called with some arguments
Then the function provided to wrapInSynchronousTryCatch gets called with the same arguments
And the function returned by wrapInSynchronousTryCatch returns the same thing as the provided function
Scenario: It catches any error that the provided function throws
Given wrapInSynchronousTryCatch is called with a synchronous function that throws when called with some arguments
/* This special class is used to remove content visually,
without removing it from screen reader output. Use it in
place of `display: none` when you want screen readers to
identify and announce the information the (visually) hidden
element contains */
.vh {
clip-path: inset(100%) !important;
clip: rect(1px, 1px, 1px, 1px) !important;
height: 1px !important;
node_modules
@kerryhatcher
kerryhatcher / gulpfile.js
Last active June 1, 2020 17:53
Gulp Markdown Nunjucks
'use strict';
// =======================================================================
// Gulp Plugins
// =======================================================================
var gulp = require('gulp'),
nunjucks = require('nunjucks'),
markdown = require('nunjucks-markdown'),
marked = require('marked'),
rename = require('gulp-rename'),
gulpnunjucks = require('gulp-nunjucks');
@ghoseb
ghoseb / ns-cheatsheet.clj
Last active May 20, 2024 13:01 — forked from alandipert/ns-cheatsheet.clj
Clojure ns syntax cheat-sheet
;;
;; NS CHEATSHEET
;;
;; * :require makes functions available with a namespace prefix
;; and optionally can refer functions to the current ns.
;;
;; * :import refers Java classes to the current namespace.
;;
;; * :refer-clojure affects availability of built-in (clojure.core)
;; functions.