Instance | Branch |
---|
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
<div class="modal hide fade" id="confirm-dialog"> | |
<div class="modal-header"> | |
<a class="close" data-dismiss="modal">×</a> | |
<h3>Confirm</h3> | |
</div> | |
<div class="modal-body"> | |
| |
</div> | |
<div class="modal-footer"> | |
<a href="#" class="btn btn-danger">Ok</a> |
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
extends layout | |
block content | |
// navbar | |
div.navbar.navbar-fixed(ng-controller="NavCtrl") | |
div.navbar-inner | |
div.container | |
a.btn.btn-navbar(data-toggle="collapse", data-target=".nav-collapse") | |
span.icon-bar | |
a.brand(href="home") |
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
describe "The suit", -> | |
beforeEach -> | |
console.log('non-parameterized#beforeEach') | |
afterEach -> | |
console.log('non-parameterized#afterEach') | |
it "should execute specs in the non-parameterized part", -> | |
console.log('spec in non-parameterized') |
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
RB.filter('daterange', function () | |
{ | |
return function(conversations, start_date, end_date) | |
{ | |
var result = []; | |
// date filters | |
var start_date = (start_date && !isNaN(Date.parse(start_date))) ? Date.parse(start_date) : 0; | |
var end_date = (end_date && !isNaN(Date.parse(end_date))) ? Date.parse(end_date) : new Date().getTime(); |
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 fs = require('fs'); | |
var exec = require('child_process').exec, child; | |
// Inputs | |
var inputDir = './developer/test/unit/data/input/'; | |
var expectedDir = './developer/test/unit/data/expected/'; | |
var outputDir = './developer/test/unit/data/output/'; | |
var parserA = './server/load-it/logax-a-parser.js'; | |
var parserB = './server/load-it/logax-b-parser.js'; | |
var inputFiles = new Array(3); |
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
/** | |
* @method | |
* @public | |
* @description Take an array of objects and convert to an array of pairs whose | |
* xCol are grouped and yCol values are aggregated somehow. If | |
* grouping by day or month, dates must be in ZULU format strings! | |
* Original implementation returned an object with keys = xCol and | |
* values = yCol. It worked great but js maps(objects) cannot be | |
* sorted! | |
* @param {array} |
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
$ find node_modules -name 'README*' | xargs wc -c | tail -1 | |
531452 total | |
$ find static -type f | xargs wc -c | tail -1 | |
820587 total |
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
#!/usr/bin/env node | |
/* | |
* Design a stack with a push, pop, and min method. | |
* Min returns the smallest element. | |
* All methods must operate in O(1) time. | |
* I implemented this with simple numbers, but I could enhance it | |
* to use objects with a comparator 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
#!/usr/bin/env groovy | |
// GROOVY STYLE!!!!!!!!!!!!!!!! | |
def a = new ArrayList<String>() | |
a.add("Hello") | |
a.add("my") | |
a.add("name") | |
a.add("is") | |
a.add("Jess") |
OlderNewer