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> | |
<div>value transformed from 1 -> 2 -> 3 when input focused and button clicked</div> | |
<input blur.trigger="onBlur() & debounce:100" focus.trigger="onFocus() & debounce:100" /> | |
<button click.delegate="clickHandler()" style="width: 50px">${value}</button> | |
</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
select | |
pg_namespace_parent.nspname as parent_schema, pg_class_parent.relname as parent_table, pg_attribute_parent.attname as parent_column, | |
pg_namespace_child.nspname as child_schema, pg_class_child.relname as child_table, pg_attribute_child.attname as child_column | |
from | |
( | |
select | |
pg_constraint.conrelid as "parent_table_id", | |
unnest(pg_constraint.conkey) as "parent_column_id", | |
pg_constraint.confrelid as "child_table_id", | |
unnest(pg_constraint.confkey) as "child_column_id" |
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="./custom"></require> | |
<h2>Example 1: (rendered)</h2> | |
<custom> | |
<div slot="first"> | |
<p>First slot</p> | |
</div> | |
</custom> | |
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
// Copyright 2015 Simon Schmidt | |
// Copyright 2012 Junqing Tan <[email protected]> and The Go Authors | |
// Use of this source code is governed by a BSD-style | |
// Part of source code is from Go fcgi package | |
// Fix bug: Can't recive more than 1 record untill FCGI_END_REQUEST 2012-09-15 | |
// By: wofeiwo | |
package fcgiclient |
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> | |
<ul class="nav nav-tabs"> | |
<li role="presentation" click.delegate="$parent.selectTab(tab)" repeat.for="tab of tabs" class="${ $parent.selectedTab === tab ? 'active' : '' }"><a href="#">${ tab.heading }</a></li> | |
</ul> | |
<div style="margin-top:8px"> | |
<content></content> | |
</div> | |
</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
import {inject, ViewCompiler, ViewResources, Container} from 'aurelia-framework'; | |
/** | |
* Compiler service | |
* | |
* compiles an HTML element with aurelia | |
*/ | |
@inject(ViewCompiler, ViewResources, Container) | |
export class Compiler { |