This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Node.js - Require.js Build Script | |
// To run the build type the following: node app.build.js | |
// Loads the Require.js Optimizer | |
var requirejs = require('../public/js/libs/r.js'); | |
// Sets up the basic configuration | |
var baseConfig = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ jitsu deploy | |
info: Welcome to Nodejitsu gregfranko | |
info: jitsu v0.10.4, node v0.8.9 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy | |
info: Analyzing application dependencies in server.js | |
warn: Local package version appears to be old | |
warn: The package.json version will be incremented automatically | |
warn: About to write /Users/gregfranko/OS/FantasyMMA/package.json | |
data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*! jQuery UI - v1.10.0 - 2013-02-10 | |
* http://jqueryui.com | |
* Includes: jquery.ui.widget.js | |
* Copyright (c) 2013 jQuery Foundation and other contributors Licensed MIT */ | |
;(function (widgetFactory) { | |
if (typeof define === "function" && define.amd) { | |
// AMD. Register as an anonymous module. | |
define("jquery.ui.widget", ["jquery"], function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isVisible(document.getElementById('at-follow')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App = Ember.Application.create(); | |
App.ExampleView = Ember.View.extend({ | |
// This removes the whole event.target ugly checking | |
events: { | |
'.example click': function() { | |
console.log('an example image was clicked!'); | |
} | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Release AMDClean.js v0.4.0: | |
a. Remove all `require` methods that contain empty function declarations | |
b. Implement Gulp.js as the build system | |
2. Create Gulp Plugins: | |
a. Jasmine-Node | |
3. Release DownloadBuilder.js v0.8.0: | |
a. Support Require.js build configurations with the r.js web builder | |
b. Support built-in minification with the uglify.js web minifier |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. Creating Maintainable JavaScript Libraries with AMDClean | |
2. Backbone.js Custom Builds | |
3. Grunt or Gulp? | |
4. Web Components & Polymer | |
5. The Future of jQuery Plugins - A Web Components Story |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#toc').tocify({ | |
'showAndHideOnScroll': false | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Checks to see if any CSS rule using inline-block also includes the IE6 and IE7 inline-block hack | |
// If the IE hacks are not there, they are added | |
var css = require('css'), | |
_ = require('lodash'), | |
exampleCSS = '.example-selector { display: inline-block; }', | |
ast = css.parse(exampleCSS); | |
_.each(ast.stylesheet.rules, function(rule) { | |
fixIEBugs(rule); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var esprima = require('esprima'), | |
estraverse = require('estraverse'), | |
escodegen = require('escodegen'); | |
console.log('esprima', esprima); | |
console.log('estraverse', estraverse); | |
console.log('escodegen', escodegen); |
OlderNewer