This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2020-07-15 12:19:50,146 Creating tables for storage events | |
2020-07-15 12:19:50,150 Migrating storage events | |
2020-07-15 12:19:50,184 Creating tables for storage errors | |
2020-07-15 12:19:50,189 Migrating storage errors | |
2020-07-15 12:19:50,211 Creating tables for storage groupedmessages | |
2020-07-15 12:19:50,212 Migrating storage groupedmessages | |
2020-07-15 12:19:50,217 Creating tables for storage groupassignees | |
2020-07-15 12:19:50,217 Migrating storage groupassignees | |
2020-07-15 12:19:50,222 Creating tables for storage outcomes_raw | |
2020-07-15 12:19:50,223 Migrating storage outcomes_raw |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shape1 = (None, 4) | |
shape2 = (None, 7) | |
shape3 = (None, 10, 500) | |
desired = (None, 10, 511) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function createActions<K extends keyof Actions>( | |
endpoint: string, | |
url: string, | |
actions: K[], | |
): Pick<Actions, K> { | |
const res: any = {}; | |
if (actions.includes('item')) { | |
res['item'] = { | |
path: `${url}/:id`, | |
endpoint: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Actions { | |
item: ItemAction; | |
} | |
export function createActions<K extends keyof Actions>( | |
endpoint: string, | |
url: string, | |
actions: K[], | |
): Pick<Actions, K> { | |
const res = {}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function createActions<K extends keyof Actions<any>, E>( | |
endpoint: string, | |
url: string, | |
actions: K[], | |
): Pick<Actions<E>, K> { | |
return { | |
item: actions.includes('item') && ( | |
path: `${url}/:id`, | |
endpoint: { | |
endpoint: `${endpoint}:id/`, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function createActions<E extends Entity, A extends (keyof E)[]>( | |
endpoint: string, | |
url: string, | |
actions: A, | |
): { [K in A]: Actions<E>[K] } { | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface Actions<E> { | |
list: ListAction; | |
add: AddAction<E>; | |
item: ItemAction; | |
} | |
type ActionType<E> = keyof Actions<E>; | |
function createActions<E extends Entity>( | |
actions: ActionType<E>[] = ['list', 'add', 'item'], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 32, kind: BrokenPipe, message: "Broken pipe" }', src/libcore/result.rs:999:5 | |
stack backtrace: | |
0: backtrace::backtrace::libunwind::trace | |
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.29/src/backtrace/libunwind.rs:88 | |
1: backtrace::backtrace::trace_unsynchronized | |
at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.29/src/backtrace/mod.rs:66 | |
2: std::sys_common::backtrace::_print | |
at src/libstd/sys_common/backtrace.rs:47 | |
3: std::sys_common::backtrace::print | |
at src/libstd/sys_common/backtrace.rs:36 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class IUniqueIndex(models.Index): | |
suffix = 'iuq' | |
sql_template = 'CREATE UNIQUE INDEX %(name)s ON %(table)s (%(columns)s);' | |
def create_sql(self, model, schema_editor, using=''): | |
assert schema_editor.connection.vendor == 'postgresql' | |
fields = [model._meta.get_field(field_name) for field_name, _ in self.fields_orders] | |
quote_name = schema_editor.quote_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(custom-set-faces | |
'(default ((t (:family "IosevkaCC" :foundry "CYEL" :slant normal :weight normal :height 128 :width normal))))) |
NewerOlder