I hereby claim:
- I am fnimick on github.
- I am fnimick (https://keybase.io/fnimick) on keybase.
- I have a public key whose fingerprint is 5BF1 FE7A 40A1 48D2 6BD4 0CEB 7F0E 5BFE F211 F09D
To claim this, I am signing this object:
| #!/usr/bin/env node | |
| 'use strict' | |
| let churchToInt = c => c(x => x + 1)(0) | |
| let ZERO = f => x => x | |
| let ONE = f => x => f(x) | |
| let TWO = f => x => f(f(x)) | |
| let increment = n => f => x => f(n(f)(x)) | |
| let THREE = increment(TWO) |
| package church; | |
| import java.util.function.Function; | |
| import java.util.function.Supplier; | |
| import java.util.function.UnaryOperator; | |
| import org.junit.Test; | |
| public class church { |
I hereby claim:
To claim this, I am signing this object:
| diff --git a/node_modules/sequelize/lib/dialects/abstract/query-generator.js b/node_modules/sequelize/lib/dialects/abstract/query-generator.js | |
| index d2c865d..b668f38 100755 | |
| --- a/node_modules/sequelize/lib/dialects/abstract/query-generator.js | |
| +++ b/node_modules/sequelize/lib/dialects/abstract/query-generator.js | |
| @@ -302,9 +302,16 @@ class QueryGenerator { | |
| if (this._dialect.supports.inserts.updateOnDuplicate && options.updateOnDuplicate) { | |
| if (this._dialect.supports.inserts.updateOnDuplicate == ' ON CONFLICT DO UPDATE SET') { // postgres / sqlite | |
| // If no conflict target columns were specified, use the primary key names from options.upsertKeys | |
| - const conflictKeys = options.upsertKeys.map(attr => this.quoteIdentifier(attr)); | |
| const updateKeys = options.updateOnDuplicate.map(attr => `${this.quoteIdentifier(attr)}=EXCLUDED.${this.quoteIdentifier(attr)}`); |
| diff --git a/node_modules/sequelize/lib/dialects/abstract/query-generator.js b/node_modules/sequelize/lib/dialects/abstract/query-generator.js | |
| index d2c865d..b668f38 100755 | |
| --- a/node_modules/sequelize/lib/dialects/abstract/query-generator.js | |
| +++ b/node_modules/sequelize/lib/dialects/abstract/query-generator.js | |
| @@ -302,9 +302,16 @@ class QueryGenerator { | |
| if (this._dialect.supports.inserts.updateOnDuplicate && options.updateOnDuplicate) { | |
| if (this._dialect.supports.inserts.updateOnDuplicate == ' ON CONFLICT DO UPDATE SET') { // postgres / sqlite | |
| // If no conflict target columns were specified, use the primary key names from options.upsertKeys | |
| - const conflictKeys = options.upsertKeys.map(attr => this.quoteIdentifier(attr)); | |
| const updateKeys = options.updateOnDuplicate.map(attr => `${this.quoteIdentifier(attr)}=EXCLUDED.${this.quoteIdentifier(attr)}`); |
Typed helpers for low-boilerplate type inference with Remix data.
| type ChurchInput<T> = (t: T) => T; | |
| type ChurchNumeral<T> = (fn: ChurchInput<T>) => (t: T) => T; | |
| function churchToInt(c: ChurchNumeral<number>) { | |
| return c((x: number) => x + 1)(0); | |
| } | |
| function ZERO<T>(f: any) { | |
| return (x: T) => x; | |
| } |
| /** | |
| * USERS | |
| * Note: This table contains user data. Users should only be able to view and update their own data. | |
| * Some data is synced back and forth to `auth.users` as described below. | |
| * | |
| * `full_name`: synced in both directions | |
| * `email`: synced from user metadata to profile only | |
| * `avatar_url`: synced from user metadata to profile only | |
| * `terms_accepted_at`: synced from profile to user metadata only | |
| */ |
| // Necessary due to https://github.com/prisma/prisma/issues/20678 | |
| // Modeled on prisma-extension-enable-supabase-row-level-security: | |
| // https://github.com/dthyresson/prisma-extension-supabase-rls | |
| // Modified for transaction support using two clients, one for non-transactional operations, one for | |
| // transactional operations. inefficient, but seems to work. Please test yourself in your own | |
| // environment! I am not responsible for any transactional behavior failures. | |
| // I mostly used this by creating two clients and using a given one explicitly based on whether or |
| #!/bin/bash | |
| set -euo pipefail | |
| # initial export modeled on https://workos.com/docs/migrate/aws-cognito/1-exporting-cognito-user-data | |
| if [ $# -eq 0 ]; then | |
| echo "Usage: $0 <user-pool-id> <region>" | |
| exit 1 | |
| fi | |
| if ! [ -x "$(command -v aws)" ]; then |