This file contains hidden or 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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Example</title> | |
| <meta name="description" content="This is just an example"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <link rel="stylesheet" href="css/main.css"> | |
| </head> | |
| <body data-modules="foobar, lorem/ipsum"> |
This file contains hidden or 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
| define(['jquery'], function($){ | |
| var DEFAULT_DATA_TYPE = 'json'; | |
| /** | |
| * Abstract REST service model. | |
| * @author Miller Medeiros | |
| * @version 0.3.1 (2011/09/21) | |
| * @param {object} [services] Services | |
| * @see AbstractModel.services |
This file contains hidden or 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
| ({ | |
| //settings for the r.js optimizer | |
| baseUrl : '../js', | |
| name : 'main', | |
| out : '../deploy/js/main-v2.js', //here you can set the versioning | |
| excludes : [ | |
| //so we can load those modules only when needed, also to make sure | |
| //individual versioning of sections also work as expected. | |
| 'sections/search/main', | |
| 'sections/news/main', |
This file contains hidden or 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
| (function(def){ | |
| def('myModule', ['someDependency', 'somethingElse'], function(someDependency, somethingElse){ | |
| //return the module's API | |
| return {}; | |
| }); | |
| }( | |
| // wrapper to run code everywhere | |
| typeof define === 'function' && define.amd? |
This file contains hidden or 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
| /*! | |
| * RequireJS plugin for loading JSON files | |
| * - depends on Text plugin and it was HEAVILY "inspired" by it as well. | |
| * | |
| * IMPORTANT: it only works on r.js optimizer after version 0.26+ 20011/09/27 | |
| * | |
| * @author Miller Medeiros | |
| * @version 0.0.1 (2011/06/10) | |
| * Released under the WTFPL <http://sam.zoy.org/wtfpl/> | |
| */ |
This file contains hidden or 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
| " ============================================================================= | |
| " Miller Medeiros .vimrc file | |
| " ----------------------------------------------------------------------------- | |
| " heavily inspired by: @factorylabs, @scrooloose, @nvie, @gf3, @bit-theory, ... | |
| " ============================================================================= | |
| " ----------------------------------------------------------------------------- | |
| " BEHAVIOR |
This file contains hidden or 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
| #!/usr/bin/env node | |
| //npm install commander | |
| /** | |
| * Command line tool to convert TexturePacker JSON-Array data into | |
| * optimized SpriteAnim.js JSON data file. | |
| * @author Miller Medeiros | |
| * @version 0.1.0 (2011/10/18) | |
| */ |
This file contains hidden or 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
| " ============================================================================ | |
| " File: wordcount.vim | |
| " Maintainer: Miller Medeiros <http://blog.millermedeiros.com/> | |
| " Description: Fast Word and Char count to be used on the statusline. | |
| " based on Greg Sexton script: http://bit.ly/v3RfAv | |
| " Last Change: 2011-11-10 | |
| " License: This program is free software. It comes without any warranty, | |
| " to the extent permitted by applicable law. You can redistribute | |
| " it and/or modify it under the terms of the Do What The Fuck You | |
| " Want To Public License, Version 2, as published by Sam Hocevar. |
This file contains hidden or 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
| <!doctype html> | |
| <meta charset="utf-8"> | |
| <title>Using Showdown with and without jQuery: demo</title> | |
| <style> | |
| textarea, #preview { width: 500px; height: 150px; margin-bottom: 1em; padding: .5em 1em; overflow-y:auto} | |
| #preview { border: 1px solid #666; } | |
| </style> | |
| <link rel="first" href="http://mathiasbynens.be/notes/showdown-javascript-jquery" title="Using Showdown with and without jQuery"> | |
| <link rel="prefetch" href="http://mathiasbynens.be/notes/showdown-javascript-jquery" title="Using Showdown with and without jQuery"> | |
| <link rel="stylesheet" href="http://yandex.st/highlightjs/6.1/styles/default.min.css"> |
This file contains hidden or 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 DIST_FOLDER = '../deploy/'; | |
| // --- | |
| var _minimatch = require('minimatch'), | |
| _wrench = require('wrench'), | |
| _fs = require('fs'), | |
| _path = require('path'); | |
| function purgeDeploy(){ |