Skip to content

Instantly share code, notes, and snippets.

View yuens1002's full-sized avatar

sunny yuen yuens1002

View GitHub Profile
@yuens1002
yuens1002 / index.html
Created November 19, 2015 01:11
ojVbmM
<h1>Lorem ipsum dolor sit amet, consectetur</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam porttitor neque nisl. Nullam facilisis consectetur libero congue accumsan. Aliquam erat volutpat. Fusce in euismod tellus. Nulla eu mauris nec purus sagittis aliquam. In nisl tortor, faucibus nec enim in, tempor tempor tortor. Aenean nulla enim, feugiat eget tempus quis, aliquet et nibh. Sed imperdiet nisl sit amet fringilla aliquam. Duis non enim diam. Nam vulputate posuere pellentesque. Sed eget mattis libero. Aenean dictum leo sit amet urna vehicula tempus. Duis tellus dui, porta in sem sit amet, pharetra dictum sem. Donec euismod quam tellus, ut egestas odio varius ac. Aliquam vel ullamcorper tortor, et ultrices est.<p>
<p>Aliquam rhoncus iaculis nisl vel consectetur. Integer non felis vulputate, maximus odio at, mollis quam. Morbi aliquam, mi in consequat vulputate, risus neque luctus ante, a aliquam lorem felis vitae orci. Duis ullamcorper eros non fringilla gravida. Nulla sed ante tempor
@yuens1002
yuens1002 / gist:3ff91b82439554ca9f49a0b44cf4e47b
Created May 1, 2018 19:02
Data Binding with Proxy Example
const AppNode = {
elm: document.createElement('div'),
attri: {
class: null,
style: {}
},
handler: {
get(target, prop, receiver) {
if (prop in target) return target[prop]
else throw new ReferenceError(`'${prop}' doesn't exist`)

Keybase proof

I hereby claim:

  • I am yuens1002 on github.
  • I am syuen (https://keybase.io/syuen) on keybase.
  • I have a public key ASBwmbejgnrqHZ2zSC9CLJy-Z2t9N4o7spEnthZXzv1RuQo

To claim this, I am signing this object: