Skip to content

Instantly share code, notes, and snippets.

public class Capabilities {
private int alloy;
private Range gauge;
private Range width;
}
== Info: Adding handle: conn: 0x7fd8f9004000
== Info: Adding handle: send: 0
== Info: Adding handle: recv: 0
== Info: Curl_addHandleToPipeline: length: 1
== Info: - Conn 0 (0x7fd8f9004000) send_pipe: 1, recv_pipe: 0
== Info: About to connect() to localhost port 3000 (#0)
== Info: Trying 127.0.0.1...
== Info: Connected to localhost (127.0.0.1) port 3000 (#0)
=> Send header, 82 bytes (0x52)
0000: 47 45 54 20 2f 66 69 6c 65 20 48 54 54 50 2f 31 GET /file HTTP/1
ng-class="{ 'with-border': dash.showBorder, 'without-border': !dash.showBorder }

You can also do borderClass and set it as a string or something like that. Presentationally-specific names are discouraged such as those including "border" in the name of any symbols (css class or variable).

So just as an example, say that they decide rather than a border style change they want a background color style change. Only the presentation has changed, so you could just update the border rule in the CSS to a background-color rule and be fine -- but currently all your symbols would be wrong, i.e. with-border would not specify any border rules.

I suggest: .hasDaysLeft and .noDaysLeft

Great, but has-days-left etc. preferred

var mongoose = require("mongoose"),
db = mongoose.connect("mongodb://localhost"),
Schema = mongoose.Schema,
_ = require("lodash")
;
var UserSchema = new Schema({
provider: String,
name: String,
email: String,
var _ = require('lodash');
var test_data = [
{ id: 'a', order_by: 1 },
{ id: 'b', order_by: 2 },
{ id: 'c', order_by: 3 },
{ id: 'd', order_by: 4 },
{ id: 'e', order_by: 5 },
{ id: 'f', order_by: 6 },
{ id: 'g', order_by: 7 },
{ id: 'h', order_by: 8 },
var aPromise = new Promise(function (resolve, reject) {
resolve("a promise");
});
aPromise
.then(returnAPromise)
.then(returnAValue)
.then(returnAPromise)
.catch(handleAnyError);
var aPromise = Promise.resolve("a promise");
aPromise
.then(returnAPromise)
.then(returnAValue)
.then(returnAPromise)
.catch(handleAnyError);
function returnAPromise(value) {
console.log(value);
Promise.resolve().then(
() => Promise.resolve(">").then(
() => Promise.resolve(">>").then(
() => Promise.resolve(">>>").then(
() => Promise.resolve(">>>>").then(
() => Promise.resolve(">>>>>").then(
() => Promise.resolve(">>>>>>").then(
() => Promise.resolve(">>>>>>>").then(
() => Promise.resolve(">>>>>>>").then(
() => Promise.reject("get me out!")
Promise.resolve(process.hrtime())
.then(returnAPromise)
.then(returnAValue)
.then(returnAPromise)
.then(throwAnException)
.catch(handleExceptionAndReturnPromise)
.then(returnAPromise)
.then(throwAnException)
.catch(handleFinalException)
Promise.resolve()
.then(() => Promise.resolve(">"))
.then(() => Promise.resolve(">>"))
.then(() => Promise.resolve(">>>"))
.then(() => Promise.resolve(">>>>"))
.then(() => Promise.resolve(">>>>>"))
.then(() => Promise.resolve(">>>>>>"))
.then(() => Promise.resolve(">>>>>>>"))
.then(() => Promise.resolve(">>>>>>>"))
.then(() => Promise.reject("get me out!"))