Skip to content

Instantly share code, notes, and snippets.

<HTML>
<HEAD>
<TITLE>Montessori Soundboard</TITLE>
</HEAD>
<BODY>
<center><h1>Montessori Lab School: Soundboard</h1></center>
<hr />
<button style="font-size: 48px; width: 100%; height: 100px;" id="calling_uber.mp3" onClick="play_sound(this.id)">calling_uber</button> <br /><br />
<button style="font-size: 48px; width: 100%; height: 100px;" id="car_sound_2.mp3" onClick="play_sound(this.id)">car_sound_2</button> <br /><br />
<button style="font-size: 48px; width: 100%; height: 100px;" id="car_sound_3.mp3" onClick="play_sound(this.id)">car_sound_3</button> <br /><br />
@Discordanian
Discordanian / app.rs
Created January 19, 2024 18:42
Leptos question. Probably basic and I'm probably being a dunce. Any help is appreciated.
/*
This is in my main.rs section. The suspects::SuspectID::Suspect00 is an enum.
*/
fn app() {
let (rx_suspect, tx_suspect) = create_signal(suspects::SuspectID::Suspect00);
mount_to_body(move || {
view! {
<questions::Questions rx_suspect />
@Discordanian
Discordanian / index.html
Created July 26, 2017 18:24
STL MM Search Demo
<center>
<h1>Movement Match</h1></center>
<!-- Wrapping Form and Progres Bar in Continer TOP -->
<div class="container">
<!-- Progress Bar -->
<div class="progress">
<div id="progcomplete" class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100" style="width:0%">Filtered
@Discordanian
Discordanian / index.html
Last active June 20, 2017 19:07
matrix rain
<!--
Thanks to Emily Xie and her version available here:
http://xie-emily.com/generative_art/green_rain.html
And her youtube tutorial available here:
https://www.youtube.com/watch?v=S1TQCi9axzg
Differences of note:
The code is organied a bit differently but close enough that if you follow the tutorial and other
examples you can see it's VERY similar.
#include <stdio.h>
#include <stdlib.h>
// pretend that 'a' is 0 and 'b' is one.
// return 1 if we can continue
// return 0 if we are finished
int addOne(char a, char b, int i, char * str) {
int leftMostZero = i;
for (leftMostZero = i -1; leftMostZero >=0 && str[leftMostZero] == b;leftMostZero--) {
@Discordanian
Discordanian / resync_trunk.sh
Created October 10, 2014 14:21
Helpful Error Messages
#!/bin/sh
# First we are going to prompt for the branch name and the revision number.
# If those do not exist. Exit.
# If they do exist, Prompt first before proceeding.
# This has to be run from a full checkout of tdcs
TOPDIR=`dirname $0`
echo "cd to <$TOPDIR> to make sure we are in the correct directory."
@Discordanian
Discordanian / PerlModulesList.pl
Created October 10, 2014 13:57
List Perl Modules
#!/usr/bin/perl
use File::Find;
my @files;
find(
{
wanted => sub {
push @files, $File::Find::fullname
if -f $File::Find::fullname && /\.pm$/
},
follow => 1,