Skip to content

Instantly share code, notes, and snippets.

View rytmis's full-sized avatar

Lauri Kotilainen rytmis

View GitHub Profile
@rytmis
rytmis / app.html
Last active February 24, 2019 08:05 — forked from jdanyow/app.html
InheritBindingContext breaks refs
<template>
<require from="./parent-element"></require>
<h1>${message}</h1>
<parent-element />
</template>
var system = require('system'),
env = system.env;
/**
* Wait until the test condition is true or a timeout occurs. Useful for waiting
* on a server response or for a ui change (fadeIn, etc.) to occur.
*
* @param testFx javascript condition that evaluates to a boolean,
* it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or
* as a callback function.
@rytmis
rytmis / as does this.cshtml
Created May 30, 2011 13:30 — forked from Tigraine/Thisworks.cshtml
Razor weirdness
<h2>Create</h2>
@using(Html.BeginForm()){
@Html.Partial("form");
}