I hereby claim:
- I am sirlantis on github.
- I am sirlantis (https://keybase.io/sirlantis) on keybase.
- I have a public key ASDNk7zM33MNfuJ9gVPaqGfpSRtnIErSwY2G1AclF_c87Ao
To claim this, I am signing this object:
# /// script | |
# requires-python = ">=3.10" | |
# dependencies = [ | |
# "deepdiff", | |
# "editorconfig", | |
# "pathspec", | |
# "poetry-core", | |
# "rich", | |
# "tomlkit", | |
# "typer", |
class BooleanContainer(Container[_T]): | |
"""A container that supports boolean operations.""" | |
def __init__( | |
self, | |
container: Container[_T] | None = None, | |
predicate: Callable[[object], _T] | None = None, | |
) -> None: | |
if container is not None: | |
assert predicate is None, "Cannot specify both container and predicate" |
#!/usr/bin/env python3 | |
""" | |
Check if files end with a single newline. | |
""" | |
import argparse | |
import io | |
import logging | |
import pathlib | |
import sys | |
from collections.abc import Iterator |
I hereby claim:
To claim this, I am signing this object:
class Card {} | |
class Customer { | |
var optionalCard: Card? | |
var card: Card | |
init() { | |
self.card = Card() // required to avoid compiler error (card2 would be nil) | |
} | |
} | |
let john : Customer? = Customer() |
module ResourcesController | |
extend ActiveSupport::Concern | |
def index | |
render json: resources | |
end | |
def show | |
render json: resource |
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath 'com.android.tools.build:gradle:0.8+' | |
} | |
} |
# http://www.mono-project.com/Compiling_Mono_on_OSX | |
require 'formula' | |
class Mono < Formula | |
url 'http://download.mono-project.com/sources/mono/mono-3.2.1.tar.bz2' | |
sha1 '7f4f31e03903719e370e7ee94ded376b96bdf6d9' | |
homepage 'http://www.mono-project.com/' | |
.idea/**/*.iws | |
.idea/workspace.xml | |
.idea/tasks.xml |
class SampleViewModel extends ko.ViewModel | |
@property "firstName" | |
@property "lastName" | |
@accessor "fullName", | |
read: -> | |
@firstName() + " " + @lastName() | |
write: (v) -> | |
[first, last] = v.split(" ") | |
@firstName first |