Skip to content

Instantly share code, notes, and snippets.

$ mocha tests/auther.js
fs.js:400
return binding.readdir(pathModule._makeLong(path));
^
Error: ENOTDIR, not a directory 'tests/auther.js'
at Object.readdirSync (fs.js:400:18)
at lookupFiles (/usr/local/lib/node_modules/mocha/bin/_mocha:396:6)
at /usr/local/lib/node_modules/mocha/bin/_mocha:241:24
at Array.forEach (native)
@mdb
mdb / gist:3150598
Created July 20, 2012 12:57
tests/author.js
var assert = require("assert");
var request = require("request");
describe('auther', function () {
var auther = require("../auther");
it('exists', function () {
it('should not be null', function () {
assert.notEqual(auther, null);
@mdb
mdb / gist:3150594
Created July 20, 2012 12:56
tests/author.js
var assert = require("assert");
var request = require("request");
describe('auther', function () {
var auther = require("../auther");
it('exists', function () {
it('should not be null', function () {
assert.notEqual(auther, null);
@mdb
mdb / gist:2569902
Created May 1, 2012 17:36
Vim FTL Syntax
" Vim syntax file
" Language: FreeMarker Template Language (FTL)
" Maintainer: Stephan Müller <stephan@chaquotay.net>
" Last Change: 2008 Oct 22
syn case match
" directives and interpolations
syn region ftlStartDirective start=+<#+ end=+>+ contains=ftlKeyword, ftlDirective, ftlString, ftlComment
syn region ftlEndDirective start=+</#+ end=+>+ contains=ftlDirective
<div id="contests-cycle">
<ul>
<!-- an example of a linked image in the slideshow: -->
<li>
<a href=""><img src=""/></a>
</li>
<!-- an example of an iframe in the slideshow: -->
<li>
<iframe src="" width="" height="" frameborder="0"></iframe>
</li>
<ul class="thumbnails standard">
<li class="item">
<a class="thumbnail standard" href="">
<img src="http://dl.dropbox.com/u/22302/2_XTV_1_Home_03.jpg">
<b class="icon play">Play</b>
<span class="air-date">3/20/11</span>
<span class="net-logo">
<img src="" alt="Network logo" />
</span>
</a>
# IMPORTANT: This file is generated by cucumber-rails - edit at your own peril.
# It is recommended to regenerate this file in the future when you upgrade to a
# newer version of cucumber-rails. Consider adding your own code to a new file
# instead of editing this one. Cucumber will automatically load all features/**/*.rb
# files.
require 'uri'
require 'cgi'
require File.expand_path(File.join(File.dirname(__FILE__), "..", "support", "paths"))
Then /^debug$/ do
debugger;1
end
!= partial('partials/carousel', { entities: fast.results.slice(0, 5), title: 'Recommended For You', showDoubleWide: true })
!= partial('partials/carousel', { entities: fast.results.slice(5, 10), title: 'In Your Watchlist' })
h2 Navigation
ul
li: a(href="/recommendations") Recommendations
li: a(href="/genres") Genres
li: a(href="/content/series") All series
li: a(href="/content/movies") All movies
<deviceName>&lt;p&gt;Blah2&lt;/p&gt;</deviceName>