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
// JS array equivalents to C# LINQ methods - by Dan B. | |
// First: This version using older JavaScript notation for universal browser support (scroll down for ES6 version): | |
// Here's a simple array of "person" objects | |
var people = [ | |
{ name: "John", age: 20 }, | |
{ name: "Mary", age: 35 }, | |
{ name: "Arthur", age: 78 }, | |
{ name: "Mike", age: 27 }, |
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
using System.Collections.ObjectModel; | |
using System.Runtime.CompilerServices; | |
using System.Security.Cryptography.X509Certificates; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.EntityFrameworkCore; | |
namespace MyApplication.Web.Controllers | |
{ | |
public class ProductControl : Controller | |
{ |
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
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
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
/** | |
* @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
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
<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
function foo() { | |
var er = new Error('foo() has been removed in favor of bar(). Please update your java scripts codes.') | |
Error.captureStackTrace(er, foo) | |
throw er | |
} | |
function bar() { | |
console.log('ok') | |
} |
NewerOlder