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
<template> | |
<h1>${message}</h1> | |
<template repeat.for="ingredient of ingredients"> | |
<div> | |
ingredient id: ${ingredient.id}<br/> | |
number of products: ${products.length}<br/> | |
icon: ${icon} | |
</div> | |
</template> | |
</template> |
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
<template> | |
<require from="material-components-web/dist/material-components-web.css"></require> | |
<require from="menu"></require> | |
<style> | |
.material-icons:hover { cursor: pointer; } | |
.mymenu { top: auto; right: 8px; transform-origin: top right;} | |
</style> | |
<mdc-list> | |
<div style="position:relative;" repeat.for="n of [1,2,3]"> |
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
<template> | |
<require from="material-components-web/dist/material-components-web.css"></require> | |
<mdc-list> | |
<mdc-list-item> | |
<span slot="end"><div> | |
<i class="material-icons">more_vert</i> | |
</div></span> | |
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
<md-input | |
mdx-autocomplete="values.bind: values; min-char: 2; max-results: 5; value-id.two-way: valueId" | |
md-label="Test" | |
md-value.bind="test"></md-input> |
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
// Place your settings in this file to overwrite the default settings | |
{ | |
"editor.fontFamily": "'Source Code Pro', Menlo, Monaco, 'Courier New', monospace", | |
"editor.fontWeight": "normal", | |
"editor.fontSize": 13, | |
"editor.tabSize": 2, | |
"workbench.editor.showTabs": false, | |
"vim.otherModesKeyBindingsNonRecursive": [{ | |
"before": [";"], | |
"after": [], |
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
{ | |
"uri": "vehicle://door/front/left", | |
"data": { | |
"status": "closed", | |
"lock": true, | |
"zone": {} | |
} | |
} |
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
<?xml version="1.0"?> | |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
<service_bundle type="manifest" name="pm2"> | |
<service name="application/pm2" type="service" version="1"> | |
<create_default_instance enabled="true"/> | |
<single_instance/> |
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
// from: http://www.slideshare.net/Couchbase/reactive-programmingrxjavaefficientdata-benchristensenmichaelnitschinger/75 | |
Observable | |
.defer(() -> bucket.get("id")) | |
.retryWhen(attempts -> attempts | |
.zipWith(Observable.range(1,3), (n, i) -> i) | |
.flatMap(i -> { | |
System.out.println("Delaying retry by " + i + " second(s)"); | |
return Observable.timer(i, TimeUnit.SECONDS) | |
}) |
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
// slide 75 of this: http://www.slideshare.net/Couchbase/reactive-programmingrxjavaefficientdata-benchristensenmichaelnitschinger | |
Observable. | |
.defer(() -> bucket.get("id")) //create new | |
.retryWhen(attempts -> attempts | |
.zipWith(Observable.range(1,3), (n, i) -> i) // retry maximum of 3 times | |
.flatMap(i -> { | |
System.out.println("Delaying retry by " + i + " second(s)"); | |
return Observable.timer(i, TimeUnit.SECONDS); //delay the resubscribe | |
}) |
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
$ g++ -std=c++0x -fexceptions -dM -E -c ast.cpp | |
#define sa_sigaction _funcptr._sigaction | |
#define __CORRECT_ISO_CPP_STDLIB_H_PROTO 1 | |
#define _CS_POSIX_V6_LP64_OFF64_CFLAGS 808 | |
#define __DBL_MIN_EXP__ (-1021) | |
#define _STL_PAIR_H 1 | |
#define _CS_POSIX_V6_ILP32_OFFBIG_LIBS 806 | |
#define HUGE_VAL (__builtin_huge_val()) | |
#define M_SQRT1_2 0.70710678118654752440 | |
#define _SYS_FEATURE_TESTS_H |
NewerOlder