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
<% for document in @getCollection('./blogs').toJSON(): %> | |
<li typeof="sioc:Page" about="<%= document.url %>" class="<%= 'active' if @document.url is document.url %>"> | |
<a href="<%= document.url %>" property="dc:title"><%= document.title %></a> | |
</li> | |
<% end %> |
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
default.html.eco: | |
<% if tweet in @feedr.feeds.twitter: %> | |
<li datetime="<%=tweet.created_at%>"> | |
<a href="https://twitter.com/#!/<%=tweet.user.screen_name%>/status/<%=tweet.id_str%>" title="View on Twitter"> | |
<%=tweet.text%> | |
</a> | |
</li> | |
<% end %> |
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
# The fileupload module uses Express to handle the POST (https://github.com/domharrington/fileupload#usage): | |
app.post('/upload', fileupload, function(req, res) {} | |
# DocPad API tells that we can put DocPad atop a existing Express App: | |
# http://docpad.org/docs/api | |
# But it'd be nice if we could just do something closer to this: | |
server.post config.postUrl, fileupload, (req,res,next) -> |
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 __hasProp = {}.hasOwnProperty, | |
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; | |
module.exports = function(BasePlugin) { | |
var FootnotesPlugin, cheerio, fs, path, util; | |
cheerio = require("cheerio"); | |
path = require('path'); | |
fs = require('fs'); | |
util = require('util'); | |
return FootnotesPlugin = (function(_super) { |
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 __hasProp = {}.hasOwnProperty, | |
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; | |
module.exports = function(BasePlugin) { | |
var NativeCommentsPlugin; | |
return NativeCommentsPlugin = (function(_super) { | |
__extends(NativeCommentsPlugin, _super); | |
function NativeCommentsPlugin() { |
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
``` | |
npm ERR! node -v v0.10.7 | |
npm ERR! npm -v 1.2.21 | |
npm ERR! type called_on_non_object | |
npm ERR! TypeError: Object.keys called on non-object | |
npm ERR! at Function.keys (native) | |
npm ERR! at c:\Program Files\nodejs\node_modules\npm\lib\build.js:111:18 | |
npm ERR! at process._tickCallback (node.js:415:13) | |
npm ERR! If you need help, you may report this log at: | |
npm ERR! <http://github.com/isaacs/npm/issues> |
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
TypeError: Cannot read property 'a' of undefined | |
at Session.def.get (c:\Users\Michael\Desktop\MDM\Client Projects\SunStarIT.com\Development\Staging\node_modules\docpad-plugin-minicms\out\utils\sessionBridge.js:17:29) | |
at MinicmsPlugin.module.exports (c:\Users\Michael\Desktop\MDM\Client Projects\SunStarIT.com\Development\Staging\node_modules\docpad-plugin-minicms\out\routes\root.js:16:17) | |
at callbacks (c:\Users\Michael\Desktop\MDM\Client Projects\SunStarIT.com\Development\Staging\node_modules\docpad\node_modules\express\lib\router\index.js:164:37) | |
at param (c:\Users\Michael\Desktop\MDM\Client Projects\SunStarIT.com\Development\Staging\node_modules\docpad\node_modules\express\lib\router\index.js:138:11) | |
at pass (c:\Users\Michael\Desktop\MDM\Client Projects\SunStarIT.com\Development\Staging\node_modules\docpad\node_modules\express\lib\router\index.js:145:5) | |
at Router._dispatch (c:\Users\Michael\Desktop\MDM\Client Projects\SunStarIT.com\Development\Staging\node_modules\docpad\node_modules\e |
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
Michael@MIKEUMUSSURFACE ~/Desktop/MDM | |
$ nvm install v0.8.16 | |
grep: invalid option -- o | |
Usage: grep [OPTION]... PATTERN [FILE]... | |
Try `grep --help' for more information. | |
Additional options while compiling: | |
nvm: install N/A failed! | |
Michael@MIKEUMUSSURFACE ~/Desktop/MDM | |
$ nvm install 0.8.16 | |
grep: invalid option -- o |
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
Rob@ROB-PC ~/Desktop/SunStarIT.com (master) | |
$ git pull | |
remote: Counting objects: 466, done. | |
remote: Compressing objects: 100% (204/204), done. | |
rRemote: Total 466 (delta 214), reused 458 (delta 210)e | |
Receiving objects: 92% (429/466) | |
Receiving objects: 100% (466/466), 132.39 KiB | 0 bytes | |
Resolving deltas: 100% (214/214), done. | |
fatal: index-pack failed |
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
YUI().use('node', 'event', function (Y) { | |
function scrolledPast(){ | |
Y.all('#main-header').addClass('main-header-scrolled'); | |
} | |
function scrolledTop(){ | |
Y.all('#main-header').removeClass('main-header-scrolled'); | |
} |