Skip to content

Instantly share code, notes, and snippets.

View wilmoore's full-sized avatar
🦄
Proverbs 3:21

Wil (₩) Moore III wilmoore

🦄
Proverbs 3:21
View GitHub Profile
@wilmoore
wilmoore / readme.md
Last active February 11, 2024 22:32
UMD-inspired Module Boilerplate

UMD-Inspired JS Module Boilerplate

This is the module format you don't know you need until you need it. Write your module once and have it work in a CJS/NodeJs, AMD, YUI (v3+), or Browser Global environment.

Best Used When...

  • You are migrating from namespaced (err, globals) code to either AMD or CJS modules or both.
  • You can't yet factor out browser globals but also need to test your code via NodeJS (e.g. Mocha).

Benefits & Trade-offs

@wilmoore
wilmoore / index.html
Last active November 20, 2023 23:21
JavaScript :: ES6 :: ES6-driven Sequence Diagram Editor
<style id="jsbin-css">
body {
background-color: #ffffff;
}
</style>
<meta name="description" content="ES6-driven Sequence Diagram Editor" />
<body>
<div id="output"></div>
<script src="http://google.github.io/traceur-compiler/bin/traceur.js"></script>
<script src="http://google.github.io/traceur-compiler/src/bootstrap.js"></script>
@wilmoore
wilmoore / first-go.md
Last active October 26, 2023 11:53
Software Engineering :: Programming :: Languages :: GoLang :: Your First Go Program
@wilmoore
wilmoore / example.com.api.vhost
Last active September 19, 2023 08:45
Software Engineering :: Talk :: Tame your build and deploy process - A look at Hudson, PHPUnit, and SSH
<VirtualHost *:80>
SetEnv APPLICATION_ENV local
ServerName api.example.com
DocumentRoot /home/api/apps/api.example.com/current/src/www
<Directory /home/api/apps/api.example.com/current/src/www/>
Options FollowSymLinks
AllowOverride None
Order Allow,Deny
Allow from All
@wilmoore
wilmoore / html5-video-error-handling.html
Created August 4, 2012 00:08
HTML5 Video Playback Error Handling POC
<p><video src="tgif.vid" autoplay controls onerror="failed(event)"></video></p>
<p><a href="tgif.vid">Download the video file</a>.</p>
@wilmoore
wilmoore / changelog-template.xml
Created February 5, 2011 05:57 — forked from tlberglund/gist:727521
Sample Liquibase Schema Refactorings
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
</databaseChangeLog>
@wilmoore
wilmoore / readme.md
Last active April 13, 2022 17:53
Cell Generator Errors
» yarn redwood generate cell example
  ✔ Generating cell files...
    ✔ Successfully wrote file `./web/src/components/ExampleCell/ExampleCell.mock.js`
    ✔ Successfully wrote file `./web/src/components/ExampleCell/ExampleCell.test.js`
    ✔ Successfully wrote file `./web/src/components/ExampleCell/ExampleCell.stories.js`
    ✔ Successfully wrote file `./web/src/components/ExampleCell/ExampleCell.js`
  ⠹ Generating types ...

Error: Could not generate GraphQL type definitions (web)
@wilmoore
wilmoore / git-shorturl.sh
Last active December 28, 2021 20:07
Git :: git.io
########################################################################################
# function for generating a git.io short url
########################################################################################
function git-shorturl {
curl -i http://git.io -F "url=$1" 2>/dev/null | grep -i "location:"
}
@wilmoore
wilmoore / readme.md
Last active December 28, 2021 20:06
Git :: Personal Git Configuration
@wilmoore
wilmoore / ie6winxp.vm.md
Created January 31, 2012 17:32
Windows 7 VM w/ IE (Virtualbox)

This will provide a much faster and favorable experience VS RDC over network (or worse, the internet). It also gives you free reign to do whatever else you might want to do on windows (which for me isn't much, but a nice-to-have none-the-less).

The following list of commands will get you a free (microsoft sponsored) Windows XP VM environment with IE6 installed. The password is "Password1". When you first login, you will be asked to activate the OS. Do this immediately over the internet. You will get 90 days of activation. Once this runs out, activate the snapshot called "The initial VM state" to go back in time.

% mkdir -p ~/.vm/hdds/windows/winxp-ie6/
% cd !$

% wget http://download.microsoft.com/download/B/7/2/B72085AE-0F04-4C6F-9182-BF1EE90F5273/Windows_XP_IE6.exe
% unrar e Windows_XP_IE6.exe