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
// shared/commonMain/kotlin/package/resource/UserResources.kt | |
import io.ktor.resources.* | |
import kotlinx.serialization.Serializable | |
@Serializable | |
@Resource("/users") | |
class UsersResource { | |
@Serializable | |
@Resource("/me") |
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
from typing import Dict, List | |
def main(): | |
bus_admittances: Dict[str, complex] = { | |
"1-2": 2.5 - 4j, | |
"1-3": 1 - 2j, | |
"2-3": 1.5 - 2j, | |
"1-0": 0.4 - 1j, | |
"2-0": 0.5 - 1j, |
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 <stdlib.h> | |
#include <stdbool.h> | |
int sumAvg(int, int); | |
void bubbleSort(int *, int); | |
int min(int *, int); | |
int max(int *, int); | |
int main() |
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> | |
unsigned long long int factorial(int n) | |
{ | |
if (n == 0) | |
{ | |
return 1; | |
} | |
else | |
{ |
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
<div class="home"> | |
<nav class="navbar navbar-expand-lg navbar-dark" ref="navbar"> | |
<div class="container-fluid"> | |
<span class="navbar-brand text-white">Outbox</span> | |
<button | |
class="navbar-toggler" | |
type="button" | |
data-bs-toggle="collapse" | |
data-bs-target="#navbarSupportedContent" | |
aria-controls="navbarSupportedContent" |