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
| public static int jumpingOnClouds(int[] c) | |
| { | |
| // Shortest route to get to the end | |
| // 0 is safe, 1 is a hazard (avoid) | |
| // each clound is numbered by it's index | |
| // save players current location | |
| // track jumps taken -- DOne, easy, get on my level | |
| // number of next position | |
| var jumpsTaken = 0; |
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.CodeDom.Compiler; | |
| using System.Collections.Generic; | |
| using System.Collections; | |
| using System.ComponentModel; | |
| using System.Diagnostics.CodeAnalysis; | |
| using System.Globalization; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Reflection; | |
| using System.Runtime.Serialization; |
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); | |
| } |
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; | |
| 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
| 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
| 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
| 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
| <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
| 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 |
OlderNewer