Skip to content

Instantly share code, notes, and snippets.

View alexanderfink's full-sized avatar
🏠
Working from home

Alexander Fink alexanderfink

🏠
Working from home
View GitHub Profile
@alexanderfink
alexanderfink / webflow-soft-hypen.html
Last active February 2, 2026 06:15
Copy the two brackets and insert it in your webflow project. Afterwards carefully remove the two brackets ! Do not forget to set the css property hyphens: manual
<!-- Soft Hypen -->
[­]
<!-- None Breaking Empty Space -->
[ ]
<!-- Line Break -->
[
]
const swiper = new Swiper('.swiper.marken-swiper', {
// Optional parameters
direction: 'vertical',
loop: true,
// If we need pagination
pagination: {
el: '.swiper-pagination',
},
@alexanderfink
alexanderfink / Makefile
Created March 21, 2023 05:08
node-gyp generated Make File
# We borrow heavily from the kernel build setup, though we are simpler since
# we don't have Kconfig tweaking settings on us.
# The implicit make rules have it looking for RCS files, among other things.
# We instead explicitly write all the rules we care about.
# It's even quicker (saves ~200ms) to pass -r on the command line.
MAKEFLAGS=-r
# The source directory tree.
srcdir := ..
@alexanderfink
alexanderfink / translate-mock.spec.ts
Last active December 27, 2021 08:30
Cannot read property 'subscribe' of undefined at TranslatePipe.transform (Angular / jest)
describe('MyTestComponent', () => {
// ....
const translateServiceMock = {
currentLang: 'de',
onLangChange: new EventEmitter<LangChangeEvent>(),
use: jest.fn(),
get: jest.fn().mockImplementation((key: string): Observable<string> => {
return of(key);