marc at mpro in /tmp/asdasd
$ git clone https://github.com/deepkit/deepkit-framework.git
Klone nach 'deepkit-framework'...
remote: Enumerating objects: 48921, done.
remote: Counting objects: 100% (11464/11464), done.
remote: Compressing objects: 100% (1611/1611), done.
remote: Total 48921 (delta 10264), reused 10529 (delta 9841), pack-reused 37457
Empfange Objekte: 100% (48921/48921), 68.22 MiB | 4.40 MiB/s, fertig.
Löse Unterschiede auf: 100% (39231/39231), fertig.
This file contains 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
goroutine 6295360540 gp=0xc5b476bc00 m=nil [runnable]: | |
syscall.Syscall(0x102, 0xffffffffffffff9c, 0xc4452971a0, 0x1ff) | |
syscall/syscall_linux.go:69 +0x25 fp=0xc99a2169f0 sp=0xc99a216990 pc=0x492645 | |
syscall.Mkdirat(0xffffffffffffff9c, {0xc6974a7d00?, 0x412225?}, 0x1ff) | |
syscall/zsyscall_linux_amd64.go:665 +0x73 fp=0xc99a216a38 sp=0xc99a2169f0 pc=0x4902b3 | |
syscall.Mkdir(...) | |
syscall/syscall_linux.go:272 | |
os.Mkdir.func1() | |
os/file.go:304 +0x65 fp=0xc99a216a68 sp=0xc99a216a38 pc=0x4c9605 |
This file contains 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
#include <functional> | |
#include <iostream> | |
#define IMGUI_DEFINE_MATH_OPERATORS | |
#include "imgui.h" | |
#include "imgui_internal.h" | |
#include "imgui_impl_sdl2.h" | |
#include "imgui_impl_opengl3.h" |
This file contains 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
/* | |
* Deepkit Framework | |
* Copyright (C) 2021 Deepkit UG, Marc J. Schmidt | |
* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the MIT License. | |
* | |
* You should have received a copy of the MIT License along with this program. | |
*/ |
This file contains 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 class OrderFilter { | |
order: string = ''; | |
customer: string = ''; | |
article: string = ''; | |
} | |
@Component({ | |
template: ` |
This file contains 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
test('dot path to objects', () => { | |
//given values like { "myArray[0].prop1.prop2": "123" } we want to convert it to { myArray: [{ prop1: { prop2: "123" } }] } | |
interface MyObject { | |
myArray: { prop1: { prop2: string } }[]; | |
} | |
function convertPathObjectToValues(object: { [name: string]: any }): any { | |
//object has keys like "myArray[0].prop1.prop2" |
This file contains 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
""" | |
This script tests how good LSTMs are at solving mini calc tasks like 1+2, 3+4, 5*5. | |
The challenge is that the input is as string and can have arbitrary many whitespaces between the numbers and operator. | |
"1+2" | |
" 2 * 4" | |
" 3 + 3" | |
To have the problem simple enough, only 1 digit numbers are allowed. So 1+2, but not 11+2. And only 2 operators: + and *. |
This file contains 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
import { AbstractControl, FormArray, FormControl, FormControlOptions, FormControlState, FormGroup, ValidationErrors, ValidatorFn } from "@angular/forms"; | |
import { ClassType, isFunction } from "@deepkit/core"; | |
import { | |
deserialize, | |
getValidatorFunction, | |
hasDefaultValue, | |
isCustomTypeClass, | |
isOptional, | |
isType, | |
ReflectionClass, |
This file contains 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
~ | |
diff --git a/apps/frontend/src/app/app.tsx b/apps/frontend/src/app/app.tsx | |
index 0a2d3c2..7df6a6e 100644 | |
--- a/apps/frontend/src/app/app.tsx | |
+++ b/apps/frontend/src/app/app.tsx | |
@@ -1,9 +1,11 @@ | |
import React, { useEffect, useState } from 'react'; | |
-import { Message } from '@foo23/api-interfaces'; | |
+import { Message, User } from '@foo23/api-interfaces'; |
This file contains 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
type Command = | |
'foo0' | |
| 'foo1' | |
| 'foo2' | |
| 'foo3' | |
| 'foo4' | |
| 'foo5' | |
| 'foo6' | |
| 'foo7' | |
| 'foo8' |
NewerOlder