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
| @if (projects$ | async; as projects) { | |
| <div class="flex flex-col items-center justify-center h-screen"> | |
| <h1 class="text-2xl font-bold">Project Dashboard</h1> | |
| <!-- this would be table im sure then you look over each project, and you can figure all that out --> | |
| <ul class="list-disc"> | |
| @for (project of projects; track project.id) { | |
| <li> | |
| <!-- THIS HTML EXAMPLE IS EXTREMELY INCOMPLET, I"M JUST SHOWING YOU THAT YOUR HTML WOULD THEN HANDLE PASSING YOUR DATA IN SOME WAY --> | |
| <button (click)="updateProject(project)">Update</button> |
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
| // dotnet | |
| private async Task<IActionResult> GetFile(string params) | |
| { | |
| // return type HAS to be byteArray | |
| var result service.getFile(params) | |
| DetailsType.pdf => File(await _documentService.GetReportsDocument(result, "application/pdf", "report.pdf") |
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
| import { Directive } from '@angular/core'; | |
| import { ViewModel } from '@model/form-meta-data.model'; | |
| import { MetaFormBaseService } from '@services/meta-form-base.service'; | |
| import { Observable } from 'rxjs'; | |
| @Directive() // https://angular.io/guide/migration-undecorated-classes | |
| export abstract class FormBaseComponent< | |
| TFormDependency, // when constructing a form, this is the form dependencies | |
| TFormService extends MetaFormBaseService<TFormDependency, TFormKeys, TFormLabels, TData, TIn, TOut>, // the corresponding Form service, this for form service is what builds and contains the form | |
| TFormKeys extends string = string, // the form Keys |
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
| <script lang="ts"> | |
| import { createEventDispatcher, onMount } from 'svelte'; | |
| export let min = 1; | |
| export let max = 10; | |
| export let step = 1; | |
| export let value = min; | |
| let elements: Record<number, HTMLButtonElement> = {}; | |
| const dispatch = createEventDispatcher<{change: number}>(); |
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
| use std::time::Duration; | |
| use benimator::SpriteSheetAnimation; | |
| use bevy::{ | |
| prelude::{Assets, Component, Deref, DerefMut, Entity, Handle, Plugin, Res, ResMut}, | |
| sprite::TextureAtlas, | |
| }; | |
| use iyes_loopless::prelude::ConditionSet; | |
| use crate::{ |
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
| use std::{fmt::Debug, hash::Hash}; | |
| use bevy::{ecs::system::EntityCommands, prelude::*, utils::HashMap}; | |
| use iyes_loopless::{ | |
| condition::ConditionSystemSet, | |
| prelude::{AddConditionalToSet, ConditionSet}, | |
| }; | |
| use iyes_progress::Progress; | |
| use crate::powers::NextState; |
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 healingStrikePowerCard = { | |
| name: "healing-strike", | |
| description: "You call out your god's might to your enemy as you strike, challenging your foe, Your diety bestows a minor blessing of healing upon you or an ally", | |
| rules: [ | |
| { | |
| order: 1, | |
| type: "class", | |
| values: [ | |
| { | |
| type: "variable", |
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; | |
| namespace ConsoleApp2 | |
| { | |
| class Program | |
| { | |
| static void Main(string[] args) | |
| { | |
| var word = "this is a word"; |
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
| 'use strict'; | |
| const fs = require('fs'); | |
| const path = require('path'); | |
| const webpack = require('webpack'); | |
| const resolve = require('resolve'); | |
| const PnpWebpackPlugin = require('pnp-webpack-plugin'); | |
| const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
| const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin'); | |
| const InlineChunkHtmlPlugin = require('react-dev-utils/InlineChunkHtmlPlugin'); |
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; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| class Solution | |
| { | |
| static void Main(String[] args) | |
| { | |
| FizzBuzzer(3, 5, 100); | |
| } |
NewerOlder