Skip to content

Instantly share code, notes, and snippets.

View jeffreymeng's full-sized avatar

Jeffrey Meng jeffreymeng

View GitHub Profile
@jeffreymeng
jeffreymeng / libaryTemplate.js
Last active August 14, 2016 00:20
A Template for a javascript library, with some utilities included
/* Copyright (c) 2016 Jeffrey Meng | MIT License
* Partially taken from http://checkman.io/blog/creating-a-javascript-library/ and/or youmightnotneedjquery.com
*/
(function(window) {
'use strict';
function define_Library() {
//UTILS
var throwError = function(txt, type) {
//throws an error
# Wordlist and getRandomWord functions Copyright 2016 Jeffrey Meng
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,