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
| // .......................................................... | |
| // TEST SETUP | |
| // | |
| NRDEBUG = true; | |
| process.mixin(GLOBAL, require('ntest')); | |
| var sys = require('sys'), | |
| redisclient = require('./lib/redisclient'), | |
| queue = require('./node_resque').create(0,"resque"), | |
| assert = require('assert'), | |
| redis = new redisclient.Client(); |
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 sys = require('sys'); | |
| // starts a new TestCase with the given description. | |
| // | |
| // var assert = require('assert') | |
| // describe("An array") | |
| // it("tracks length", function() { | |
| // var a = [1] | |
| // assert.equal(1, a.length) | |
| // }) |
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*/ | |
| // .......................................................... | |
| // REQUIRES | |
| // | |
| var Seed = require('seed'); | |
| var Co = Seed.require('seed:co'); | |
| // .......................................................... | |
| // FUNCTIONS |
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
| rowHeight: 21, | |
| customRowHeight: 32, | |
| useCustomRowHeight: YES, | |
| customRowHeightIndexes: function(){ | |
| if(!this.get('useCustomRowHeight')) return null; | |
| var ret = SC.IndexSet.create(), idx, len, nextHeaderIdx = 0; | |
| var content = this.getPath('content.treeItemChildren'); | |
| if (content) { | |
| len = content.get('length'); |
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
| /*globals Twitapp*/ | |
| Twitapp.String = { | |
| stripTags: function() { | |
| return this.replace(/<\w+(\s+("[^"]*"|'[^']*'|[^>])+)?>|<\/\w+>/gi, ''); | |
| }, | |
| unescapeHTML: function () { | |
| return this.stripTags().replace(/</g,'<').replace(/>/g,'>').replace(/&/g,'&').replace(/"/g,'\"'); |
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
| collectionViewDragViewFor: function(view, dragContent) { | |
| // TODO [JH2] Make this an imageView | |
| var content = view.getPath('selection.firstObject'); | |
| var size = content.get('naturalSize'); | |
| var dragLayer = view.get('layer').cloneNode(false); | |
| return SC.View.design({ | |
| parentView: view, | |
| layer: dragLayer, | |
| layout: { top: 0, left: 0, height: size.height, width: size.width }, | |
| childViews: [ |
NewerOlder