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
| using System.Collections.Generic; | |
| namespace journey_01.final | |
| { | |
| public class Person | |
| { | |
| public int ID { get; set; } | |
| public string Name { get; set; } | |
| public List<string> Classes { get; set; } = new List<string>(); |
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
| using System.Collections.Generic; | |
| namespace journey_01 | |
| { | |
| public class Person01 | |
| { | |
| public int ID; | |
| public string Name; | |
| public List<string> Classes; |
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
| struct teacher { | |
| int id; | |
| char* name; | |
| int* classes; | |
| short parking_number | |
| } | |
| struct student { | |
| int id; | |
| char* 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
| let inputs = []; | |
| inputs.push(4); | |
| inputs.push(6); | |
| let result = inputs | |
| .map(x => x * x) | |
| .reduce((state, val) => state + val, 0); | |
| console.log(result); |
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
| const input1 = 4; | |
| const input2 = 6; | |
| function pow(input) { | |
| return input * input; | |
| } | |
| console.log(pow(input1) + pow(input2)); |
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
| const input1 = 4; | |
| const input2 = 6; | |
| const output1 = input1 * input1; | |
| const output2 = input2 * input2; | |
| console.log(output1 + output2); |
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
| var x = 123; | |
| asd | |
| asd | |
| asd |
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
| ;; Managing maps | |
| (defn alpha-ball-1 [wme-var] | |
| (when <alpha-tests-succeed> | |
| (when (empty? <ball-map>) | |
| (swap! empty-count dec)) | |
| (put <ball-map> (:__id wme-var) wme-var) | |
| (reset! <cur-ball-map> {(:__id wme-var) wme-var}) | |
| (main-fun) | |
| (reset! <cur-ball-map> <ball-map>))) |
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
| function once(target, propertyKey: string, descriptor: PropertyDescriptor) { | |
| let old = descriptor.value; | |
| let ran = false; | |
| descriptor.value = function () { | |
| if (!ran) { | |
| ran = true; | |
| old.call(this); | |
| } | |
| } | |
| } |
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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>Document</title> | |
| </head> | |
| <body> | |
| <script> |
NewerOlder