Skip to content

Instantly share code, notes, and snippets.

@jwahyoung
jwahyoung / app.html
Last active June 19, 2018 16:51 — forked from plwalters/app.html
Aurelia Bootstrap Dialog Renderer
<template>
<h1>Dialog Repro</h1>
<button click.delegate="submit()">Open Dialog</button>
</template>
@jwahyoung
jwahyoung / app.html
Created February 7, 2017 05:05 — forked from plwalters/app.html
DI inheritance
<template>
<h1>Dialog Repro</h1>
<button click.delegate="submit()">Open Dialog</button>
</template>
@jwahyoung
jwahyoung / app.html
Last active December 13, 2016 18:52 — forked from jdanyow/app.html
Object binding inside if - view caching?
<template>
<h1>Object binding inside if - view caching?</h1>
<p>Object tags do not appear to be re-rendered inside an if binding. This means that object content does not get refreshed when the if binding changes if fallback content has been inserted.</p>
<ol>
<li>Change the size of the image below using the number input. If you change the number to zero, the image will be invalid and fallback content will appear.</li>
<li>Re-add the number. The content does not refresh. This is a <a href="http://stackoverflow.com/questions/676705/changing-data-content-on-an-object-tag-in-html">known bug.</a></a></li>
<li>However, toggling the content via if.bind does not reset the object itself (although the data should be re-bound). Is the view cached?</li>
</ol>
<input type="number" value.bind="size" />
<button type="button" click.delegate="toggleShow()">Show/Hide object content</button>
using System;
using System.Data;
using System.Data.Common;
using System.Reflection;
using NHibernate;
using NHibernate.AdoNet;
using NHibernate.Driver;
using NHibernate.Engine.Query;
using NHibernate.SqlTypes;
using NHibernate.Util;
@jwahyoung
jwahyoung / gist:d4c21c0f193ef0bce724
Created August 14, 2015 18:40
Atom: Display tab whitespace characters as SublimeText does
atom-text-editor::shadow {
.invisible-character {
&.hard-tab {
position: relative;
text-decoration: line-through;
}
}
}
@jwahyoung
jwahyoung / index.html
Created October 10, 2014 19:08
Golden-Layout: Stack not saving to localstorage
<!DOCTYPE html>
<html lang="en">
<head>
<title></title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="https://golden-layout.com/files/latest/js/goldenlayout.min.js"></script>
<script type="text/javascript" src="index.js"></script>
<link type="text/css" rel="stylesheet" href="https://golden-layout.com/files/latest/css/goldenlayout-base.css" />