Skip to content

Instantly share code, notes, and snippets.

View zengabor's full-sized avatar
🐼
Building

Gabor Lenard zengabor

🐼
Building
View GitHub Profile
/**
* Zenscroll 5.0.0b
* https://github.com/zengabor/zenscroll/
*
* Copyright 2015–2019 Gabor Lenard
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
@zengabor
zengabor / zenspot.js
Last active February 25, 2018 21:01
Zenspot v1.1 - Execute something when an element is spotted (becomes visible)
/**
* Zenspot v1.1 - Execute something when an element is spotted (becomes visible)
*
* Copyright 2017-2018 Gabor Lenard, https://github.com/zengabor
*
* This is free and unencumbered software released into the public domain.
*
* Anyone is free to copy, modify, publish, use, compile, sell, or
* distribute this software, either in source code form or as a compiled
* binary, for any purpose, commercial or non-commercial, and by any
@zengabor
zengabor / gist:10516811
Last active August 29, 2015 13:59
keybase.md
### Keybase proof
I hereby claim:
* I am zengabor on github.
* I am gabor (https://keybase.io/gabor) on keybase.
* I have a public key whose fingerprint is 34E7 0926 CB35 6BBC CE8E B35C 3038 4494 3EF4 438C
To claim this, I am signing this object:
@zengabor
zengabor / gist:5305917
Last active January 23, 2022 19:16
**Custom prefix for Python unit test methods** (doing BDD in Python and wanted proper prefixes instead of the default 'test' prefix, and pytest had a bug: https://bitbucket.org/hpk42/pytest/issue/284/python_classes-and-python_functions)
import unittest
unittest.TestLoader.testMethodPrefix = 'should'
from unittest import TestCase as Specification
class MyClass(Specification):
def should_do_something():
"""This method with the 'should' prefix will be picked up by test runners"""