Skip to content

Instantly share code, notes, and snippets.

View Muirrum's full-sized avatar
🐐

Cara Salter Muirrum

🐐
View GitHub Profile
@Muirrum
Muirrum / Test.js
Created December 15, 2014 17:16
Test Of JavaScript
for (var count = 0; count < 3; count++) {
drawSnowflake('line');turnRight(90);
drawSnowflake('parallelogram');}
@Muirrum
Muirrum / Untitled.js
Created January 9, 2015 14:02
Draw A Snowflake
for (var count = 0; count < 3; count++) {
drawSnowflake('line');turnRight(90);
drawSnowflake('parallelogram');}
module.exports = [{
entry: './app.scss',
output: {
// This is necessary for webpack to compile
// But we never use style-bundle.js
filename: 'style-bundle.js',
},
module: {
rules: [{
test: /\.scss$/,
package frc.robot.utilities;
import edu.wpi.first.wpilibj.I2C;
public class FakeI2CBus extends I2C {
public FakeI2CBus(int address) {
super(I2C.Port.kOnboard, address);
}
@Muirrum
Muirrum / navbar.js
Created March 19, 2019 15:19
Javascript to create a templated navbar using bootstrap. Requires bootstrap and a <nav id="navbar"> to exist in the HTML file. Should be deferred.
// Define navbar variable
var nav = document.getElementById("navbar");
// Navbar setup
nav.setAttribute("class", "navbar navbar-expand-lg navbar-light bg-light");
// Create UL and container div
var contDiv = document.createElement("DIV");
contDiv.setAttribute("class", "collapse navbar-collapse");
contDiv.setAttribute("id", "navbarSupportedContent");
nav.appendChild(contDiv);

Keybase proof

I hereby claim:

  • I am muirrum on github.
  • I am devosmium (https://keybase.io/devosmium) on keybase.
  • I have a public key ASB48bPfY83SOpconmaEfq8BH7NIL-8X3ZDVygxGqCEzYAo

To claim this, I am signing this object:

#include <lib.h>
#include <daemons.h>
#ifndef REQUIRE_QUESTING
#define REQUIRE_QUESTING 1
#endif
inherit LIB_SENTIENT;
int hint;
int Advance(mixed arg);
mapping advancement, Levels;
@Muirrum
Muirrum / sewers.c
Created July 2, 2019 01:28
Hakkard Lennar Sewers Virtual Handler - Non-Working
#include <lib.h>
#include <dirs.h>
#include <terrain_types.h>
#include <medium.h>
#include <virtual.h>
inherit LIB_VIRT_LAND;
static private int Xpos, Ypos;

General

I'm an Eagle Scout from the Northeast United States. I write mostly in Rust now, but I used to work mainly in Java and Node.JS. Outside of coding, I enjoy hiking and radios.

Current Projects

A discord bot written in Rust using the serenity library.

Past Projects

My first foray into what could be called "real" programming, the OtmasBot is a mess of a file and a repository. The link above takes you to the last commit where those files can be browsed. Much of the commands didn't work, and when they did, they didn't work well. It still ran for a long time though, and it didn't dissuade me from trying again.

@Muirrum
Muirrum / main.js
Created August 13, 2019 23:05
OtmasBot Original Source Code
const Discord = require("discord.js");
const client = new Discord.Client();
const VERSION = "0.10.5-beta.2";
const config = require("./config.json");
const roleName = config.modRole;
var prefix = config.prefix;
const got = require("got");
//const music = require("discord.js-music");
const noisyDebug = false;