I hereby claim:
- I am dwieeb on github.
- I am dwieeb (https://keybase.io/dwieeb) on keybase.
- I have a public key ASBUmZuuhf2WcqCVzbd0Jpgzbi2jgGCtpBBi1pWoG3VsCAo
To claim this, I am signing this object:
| import AsyncIterableSubject from '../AsyncIterableSubject' | |
| let subject: AsyncIterableSubject<number> | |
| const iterateAndReturnFirst = async <T>( | |
| subject: AsyncIterableSubject<T>, | |
| ): Promise<IteratorResult<T>> => { | |
| const iterator = subject[Symbol.asyncIterator]() | |
| return iterator.next() | |
| } |
| name: CI | |
| on: [push] | |
| jobs: | |
| setup: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| test-chunks: ${{ steps['set-test-chunks'].outputs['test-chunks'] }} | |
| test-chunk-ids: ${{ steps['set-test-chunk-ids'].outputs['test-chunk-ids'] }} | |
| steps: | |
| - uses: actions/checkout@v2 |
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDqQmHXeWG737iR40rMO5enlhHMTGTmTi4Kehql9TxheN1PPujeBlQk6Kl0ylYDjPqqUBrSxq/tdxHyyF8h5QD+L5uO9PHyEVLoNCE0gYRhvSupf6K4EhZNz91KVYchRNZcldt6esf6KQfZIF20fNKLnIBJ5rkGO3vJJJkDZIBMH3IzMI7DUyZIA3RBE7wzfbSaZC3X87GWxS3IYM31IdFHXlKwBNFQpv4PKZ3RAeLRHpSuiyXlIuBWE7KEJCxcbDSFSTc3oFNUkwQACSfDze9Gt2T3zCowVB+G5k1pTpBunmMb6uXdzcqAzR41M2cpbbqRCpRmqzbW8psUbcsyTMM5 | |
| ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDUqPyShl7jZHlQD1MeCL14jmDC3sbgAbLOqkaBBPxkWF5mpULSc1ednepPpQk9rBPNXA+C/JMTSV+6EO6cxJpPe9w5Mjbf0hdaZhrQ7t0FJabOn34CI5gpT1gsRvoDrGWYH0ldVqUGGO//2qh43qKz3k1gU59glCxKn9jRor62uXy93OE1Xg4wf82/bqnEGVemV25y+YcPmx0MI+1RHB9ky8+qFI1ccKGaPeyW5q93KGJGfvW/lyAJHK9V11/hVjqRvcm+pLufZHBrWAUpXL/JOqElsmlgpHUN8LGF1rB/7ZsYX0fyJv0WOD2lbq/kMx9S9837GAPzTQPagGmsOjozUIRuP3aTaahF5eScrxh8wZnY6c+761514HKo98ZjFwWg70N2vKCcLElHp3rjJ+WZIDs9OLwBqz7qbhpc1Ee7wUSogCjlIEiM8xiCJ82eGhTgnBxZfwQdn3D6v134IpF6gHrub9rlcUujbjRK4Up178ivnGzalTpXicazSqWD8pM= |
I hereby claim:
To claim this, I am signing this object:
| class A { a: string } | |
| class B { b: string } | |
| // Tair's example. | |
| let z = [new B(), new A()]; // z is inferred as array type of A | B | |
| let [a1, b1] = z; // a1 and b1 are of type A | B | |
| let x1 = a1.a + b1.b; // won't work (a1 could be of type B, b1 could be of type A) | |
| let x2 = a1.b + b1.a; // won't work (a1 could be of type A, b1 could be of type B) | |
| // Fixed |
| class Animal: | |
| pass | |
| # def __init__(self, name=None): | |
| # print("IN ANIMAL") | |
| # self.name = name | |
| # self.position = (0, 0) | |
| class Moveable: |
| import scala.util.{Success, Failure} | |
| import scala.concurrent._ | |
| import ExecutionContext.Implicits.global | |
| import duration._ | |
| class Thing { | |
| private var _a = 0 | |
| def a = { | |
| Thread.sleep(500L) |
| # no | |
| query = session.query(MySubModel) | |
| query = query.options(load_only("id", "type")) | |
| # yes, but does not filter type of model | |
| query = session.query(MyModel).with_polymorphic(MySubModel) | |
| query = query.options(load_only("id", "type")) | |
| # yes, but ew | |
| query = session.query(MyModel) |
| <?php | |
| require 'strptime2.php'; | |
| echo '<pre>'; | |
| echo strptime2('12/29/1989', 'm/d/Y') . "\n"; | |
| echo strptime2('7/15/1989 10:13am', 'n/d/Y h:ia') . "\n"; | |
| echo strptime2('07/15/1989 10:13AM', 'm/d/Y h:iA') . "\n"; | |
| echo strptime2('Sep 12, 2013 22:12', 'M j, Y H:i') . "\n"; | |
| echo strptime2('Thursday, July 26, 2012 - 2:48:12PM', 'l, F j, Y - g:i:sA') . "\n"; |
| <?php | |
| /** | |
| * This class is for generating a string in microformat (vCard or hCard) with supplied data. | |
| * It currently only supports vCard format version 3.0. | |
| * | |
| * Available parameters (description in parentheses) and suggested format (default value in parentheses): | |
| * - 'strict' (true = enforce strict vCard format, false = try your best) => false | |
| * - 'acceptedPhoneNumberTypes' => 'work', 'home', 'mobile' | |
| * - 'acceptedAddressTypes' => 'work', 'home' | |
| * |