Skip to content

Instantly share code, notes, and snippets.

View slyedoc's full-sized avatar

Patrick Towles slyedoc

  • Kentucky, USA
View GitHub Profile
@slyedoc
slyedoc / build.rs
Last active July 27, 2024 17:52
build script with load folders
/// Its a bad idea, but works
/// This build script generates the Assets Enums and GameAssets file which contains the
use std::env;
use std::{
fs::{self},
io::{self, Read, Write},
path::{Path, PathBuf},
};
use std::fmt::Debug;
use bevy::{
asset::load_internal_asset,
ecs::reflect,
prelude::*,
render::{
extract_resource::ExtractResource, render_asset::RenderAssetUsages, render_graph::{RenderGraph, RenderLabel}, render_resource::{AsBindGroup, Extent3d, ShaderRef, TextureDimension, TextureFormat}, texture::TextureFormatPixelInfo
},
};
@group(0) @binding(0) var height_map: texture_storage_2d<r32float, read_write>;
@group(0) @binding(1) var brush_map: texture_storage_2d<rgba8unorm, read>;
@group(0) @binding(2) var<uniform> radius: f32; // in uv space of height map
@group(0) @binding(3) var<uniform> position: vec2<f32>; // in uv space of height map
@group(0) @binding(4) var<uniform> strength: f32; // how much to add to the height map, can be negative
@compute @workgroup_size(8, 8, 1)
fn main(
@builtin(global_invocation_id) invocation_id: vec3<u32>,
{
"domain":"everence",
"default_lender_name":"Everence Federal Credit Union",
"student_var_rate_range_with_index":"Variable rates ranging from: 4.00% to 7.75%",
"student_floor_rate":"4.00%",
"student_minimum_amount":"$2,000",
"student_undergraduate_maximum_amount":"$120,000",
"student_undergraduate_aggregate_limit":"120000.0",
"student_graduate_aggregrate_limit":"175000.0",
"student_origination_fee_list_item":"<li><span class='bold'>No Origination Fee</span> for all student borrowers</li>",
<div class="row" style="padding-top: 20px">
<div class="col-sm-5 col-md-offset-1">
<img ng-if="lender.logo" style="height: 100px" ng-src="{{ apiUrl + '/logo/' + lender.url + '.png' }}" alt="Logo">
</div>
<div class="col-sm-4 col-md-offset-1">
<a href="#" class="btn btn-primary pull-right">Sign In</a>
@slyedoc
slyedoc / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">
@slyedoc
slyedoc / designer.html
Last active August 29, 2015 14:06
designer
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-field/core-field.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-input/core-input.html">
<link rel="import" href="../core-icons/core-icons.html">