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 std = @import("std"); | |
| const Vec2 = struct { | |
| x: f32, | |
| y: f32, | |
| }; | |
| const Vec3 = struct { | |
| x: f32, | |
| y: f32, |
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 std = @import("std"); | |
| const mach = @import("mach"); | |
| const gpu = @import("gpu"); | |
| const App = @This(); | |
| timer: mach.Timer = undefined, | |
| pub fn init(app: *App, _: *mach.Engine) !void { | |
| app.timer = try mach.Timer.start(); |
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 std = @import("std"); | |
| const mach = @import("mach"); | |
| const js = @import("js-runtime"); | |
| pub const App = @This(); | |
| audio_ctx: js.Object, | |
| pub fn init(app: *App, _: *mach.Core) !void { | |
| const audio_ctx = js.constructType("AudioContext", &.{}); |
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
| #include <stdio.h> | |
| #include <string.h> | |
| #include <ctype.h> | |
| void dec2base(int dec, int base, char *res) { | |
| int i = 0; | |
| while (dec > 0) { | |
| int rem = dec % base; | |
| if (rem > 9) | |
| res[i] = 'A' + (rem - 10); |
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
| #include <iostream> | |
| using namespace std; | |
| class LinearQueue { | |
| int *data; | |
| int front; | |
| int rear; | |
| int size; | |
| public: |
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
| - Welcome, introduction | |
| - about the program, about attendence and tasks | |
| - feel free to ask questions | |
| - What do you mean by entrpreneurship/what comes to mind? | |
| => Entrepreneurship is the process of identifying a problem, creating a solution, and bringing that solution to life as a product, service, or venture | |
| - what do you mean by entrepreneur? |