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
@import "variables.less"; | |
.some-class { | |
color: blue; | |
// overrides for mobile | |
@media @mobile-portrait, @mobile-landscape { | |
color: green; | |
} | |
} |
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
public static class NancyContextExtensions | |
{ | |
private static readonly string[] AllowedOverrides = new [] { "POST", "PUT", "DELETE", "PATCH" }; | |
private static readonly string[] OverrideTriggers = new [] { "_method", "callback" }; | |
/// <summary> | |
/// This method checks for JSONP override | |
/// in the contexts Request item. Useful for handling unsupported verbs | |
/// from a javascript client. | |
/// |
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("MyTest", function() { | |
var Subject; | |
beforeEach(function(done) { | |
this.stub({ "stubbed_module": {}); | |
this.require(["module_to_test"], function(s) { | |
Subject = s; | |
done(); | |
}); |
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 mongoose = require("mongoose"); | |
var should = require("should"); | |
var Q = require('Q'); | |
var _ = require('underscore'); | |
var dbAccess = require("../dbAccess"); | |
var testHelpers = require("./testHelpers.js"); | |
describe("Getting posts", 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
var options = { | |
styleguideProcessors: { | |
30: styleguide => { | |
const makeHtml = html => escapeHtml(` | |
<html> | |
<head> | |
<title></title> | |
<link rel="stylesheet" href="/static/entry.css" /> | |
<link rel="stylesheet" href="/styleguide_pseudo_styles.css" /> | |
<link rel="stylesheet" href="/styleguide_helper_elements.css" /> |