Skip to content

Instantly share code, notes, and snippets.

View billyct-appest's full-sized avatar

billyct-appest

View GitHub Profile
@ufologist
ufologist / understand-require.js
Created December 27, 2013 06:55
理解RequireJS中的模块
/**
* 理解RequireJS中的模块
* ================================
* 重点在于介绍RequireJS模块定义/运作/使用的基本原理, 不考虑依赖管理即其他方面的问题.
* 看看define和require到底做了些什么.
*
* @author Sun
* @version 2013-12-27
*/
@michaelcox
michaelcox / SpecRunner.js
Last active October 12, 2024 17:11
Browser Unit Testing with Backbone Mocha Chai and RequireJS
require.config({
baseUrl: '/backbone-tests/',
paths: {
'jquery' : '/app/libs/jquery',
'underscore' : '/app/libs/underscore',
'backbone' : '/app/libs/backbone',
'mocha' : 'libs/mocha',
'chai' : 'libs/chai',
'chai-jquery' : 'libs/chai-jquery',
'models' : '/app/models'