Skip to content

Instantly share code, notes, and snippets.

View jakyle's full-sized avatar

James Jackson jakyle

View GitHub Profile
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;
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;
using System;
using System.Collections.Generic;
using System.IO;
class Solution
{
static void Main(String[] args)
{
FizzBuzzer(3, 5, 100);
}
'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');
using System;
namespace ConsoleApp2
{
class Program
{
static void Main(string[] args)
{
var word = "this is a word";
@jakyle
jakyle / healingStrike.js
Last active August 22, 2020 05:43
healing strike
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",
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;
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::{
@jakyle
jakyle / Slider.svelte
Created February 17, 2024 00:33
a custom slider using svelte and as much css as possible
<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}>();
@jakyle
jakyle / form-base.component.ts
Last active May 10, 2024 14:03
Angular Meta Forms
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