Skip to content

Instantly share code, notes, and snippets.

#!/bin/env bash
PURPLE="\033[1;30;45m install \033[1;35;49m "
RESET="\033[0m"
USRNAME=${USRNAME:-caires}
HOSTNAME=${HOSTNAME:-caires}
HOME_DIR=/home/$USRNAME
echo -e "${PURPLE}Brazil mirrors${RESET}"
/*
AMD-compatible async 'define' modularization.
Contains only the 'define' module syntax compatible with the official API
and a flexible dependency resolver with no restrictions on how you load your files.
This implementation doesn't load your JS files so you have to do it. You can bundle
one big file, load multiple files, load them asynchronously, out of order, your call.
(doesn't include the 'require' and 'requirejs' objects)