I hereby claim:
- I am zacharyvoase on github.
- I am meat (https://keybase.io/meat) on keybase.
- I have a public key whose fingerprint is EB8F 83DF B7F7 7478 5826 635C 8C5B 7543 A8AB F545
To claim this, I am signing this object:
| // | |
| // BindingTranslation.swift | |
| // Swoleness | |
| // | |
| // Created by Zack Voase on 5/23/20. | |
| // Copyright © 2020 Zack Voase. All rights reserved. | |
| // | |
| import Foundation | |
| import SwiftUI |
| func intTextBinding( | |
| intBinding: Binding<Int?>, | |
| numberFormatter: NumberFormatter = NumberFormatter()) -> Binding<String> { | |
| return Binding( | |
| get: { numberFormatter.string(for: intBinding.wrappedValue)! }, | |
| set: { numberString in | |
| if let number = numberFormatter.number(from: numberString) { | |
| intBinding.wrappedValue = Int(truncating: number) | |
| } else { | |
| intBinding.wrappedValue = nil |
| #!/usr/bin/env python3 | |
| from collections import namedtuple | |
| from ortools.sat.python import cp_model | |
| import itertools | |
| import sys | |
| MAX_INT = 1000000000000 | |
| RATE_SCALING = 1000000 |
| """ | |
| Do `import lazy_model_loader` as early as possible in your application's | |
| lifecycle, then: | |
| from lazymodels.my_app import MyModel | |
| def some_func(): | |
| return MyModel.objects.filter(name='Foo') | |
| We're hacking the Python import system to enable you to import lazy references |
| # -*- coding: utf-8 -*- | |
| """ | |
| Model class injectors, to make Django 1.9+'s app registry easier to work with. | |
| Django 1.9 made it an error to import an app's models submodule when importing | |
| the app module itself. Instead, you should use `apps.get_model(app_label, | |
| model_name)` to get the model class, and signals should be wired up in the | |
| `ready()` hook of a custom `AppConfig` subclass. |
| # -*- coding: utf-8 -*- | |
| """ | |
| SipHash works well as a family of pairwise-independent hash functions for a CountMinSketch. | |
| This implementation uses my Python cffi-bound version: https://github.com/zacharyvoase/python-csiphash | |
| """ | |
| import csiphash | |
| import math | |
| import numpy as np |
| """ | |
| A monad for composable translations. | |
| Wrap simple values: | |
| >>> t = Translatable.value(123) | |
| >>> t # doctest: +ELLIPSIS | |
| Translatable(translation_keys=(), function=<function <lambda> at ...>) | |
| >>> t.translate({}) | |
| 123 |
| /** | |
| * Angular's ngModel helpfully adds the `ng-invalid` class to form controls | |
| * containing invalid input. However, Bootstrap forms are typically structured | |
| * like so: | |
| * | |
| * <div class="form-group"> | |
| * <label>Name*</label> | |
| * <input class="form-control" type="text" ng-model="user.name" /> | |
| * </div> | |
| * |
| $ curl 'http://dingo.sbs.arizona.edu/~hammond/lsasummer03/newdic.txt' | awk '$2 ~ /^...''.$/ { print $4 }' | |
| abbreviation | |
| abracadabra | |
| academician | |
| accelerando | |
| accommodation | |
| acculturation | |
| adjudication | |
| alienation | |
| alleviation |
I hereby claim:
To claim this, I am signing this object: