Discover gists
// | |
// _oo0oo_ | |
// o8888888o | |
// 88" . "88 | |
// (| -_- |) | |
// 0\ = /0 | |
// ___/`---'\___ | |
// .' \\| |// '. | |
// / \\||| : |||// \ | |
// / _||||| -:- |||||- \ |
module CaseConverter | |
class Transformations | |
class << self | |
def transform(value) | |
case value | |
when Array then value.map { |item| transform(item) } | |
when Hash then value.deep_transform_keys! { |key| transform(key) } | |
when String then camelize(value) | |
else value | |
end |
# ⚠️ USE AT YOUR OWN RISK | |
# first: pip install pysqlite3-binary | |
# then in settings.py: | |
# these three lines swap the stdlib sqlite3 lib with the pysqlite3 package | |
__import__('pysqlite3') | |
import sys | |
sys.modules['sqlite3'] = sys.modules.pop('pysqlite3') | |
DATABASES = { |
No, you are not allowed to change the copyright notice. Indeed, the license text states pretty clearly:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
But you are allowed to add a copyright notice.
If you want to keep the MIT license, which is what I would advise you to do, you only need to add a single line to the license file, before or after Copyright (c) 2012 Some Name
with your own copyright notice. The final LICENSE
file will look like this:
The MIT License (MIT)
On Mac, SwiftUI's .onHover
closure is not always called on mouse exit, particularly with high cursor velocity. A grid of targets or with finer target shapes will often have multiple targets falsely active after the mouse has moved on.
It is easy to run back to AppKit's safety. Below is a SwiftUI-like modifier for reliable mouse-tracking. You can easily adapt it for other mouse tracking needs.
import SwiftUI