const propertynames = Object.keys(this)
const methodnames = Object.getOwnPropertyNames(Object.getPrototypeOf(this))
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
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=2"> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<style>body{margin:0;padding:0;}</style> | |
<script type="module"> | |
document.addEventListener('touchmove',e=>e.preventDefault(),{passive:false}) | |
import { h, app } from 'https://unpkg.com/hyperapp?module' | |
const state = { |
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
<title>Currency Coverter</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script type="module"> | |
import { h, patch } from 'https://unpkg.com/superfine?module' | |
//import { h, patch } from './superfine.js' | |
const Numberbox = self => ({ | |
type: 'number', |
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
<title>Currency Coverter</title> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script type="module"> | |
import { h, patch } from 'https://unpkg.com/superfine?module' | |
const Numberbox = self => ({ | |
type: 'number', | |
value: self.dataCount, |
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 SpriteKit | |
import PlaygroundSupport | |
class Square: SKShapeNode { | |
convenience init(position: CGPoint = .zero, oneSide: CGFloat = 0.0, strokeColor: SKColor = .white) { | |
let c = CGFloat(oneSide * 0.2) | |
let r = CGSize(width: oneSide, height: oneSide) | |
self.init(rectOf: r, cornerRadius: c) | |
self.position = position | |
self.strokeColor = strokeColor |
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 * as superfine from 'https://unpkg.com/superfine?module'; | |
export class SuperfineManager { | |
constructor(container, template) { | |
this.container = container; | |
this.template = template; | |
this.node = null; | |
this.update = null; | |
} | |
setup(node) { |
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 { h } from './fineapple.js'; | |
import * as Counter from './counter.js'; | |
const app = new Counter.Controllers(new Counter.Model(), document.body, app => | |
h('div', {}, [ | |
h('h1', {}, 'Fineapple: for building web app.'), | |
h('div', {class:'counter'}, [ | |
h('h2', {}, app.model.count), | |
h('button', { onclick: () => app.sub().info('sub',app.model) }, '-'), |
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 * as superfine from 'https://unpkg.com/superfine?module' | |
// const { h } = superfine; | |
// | |
// const view = count => | |
// h('div', {}, [ | |
// h('h1', {}, count), | |
// h('button', { onclick: () => render(count - 1) }, '-'), | |
// h('button', { onclick: () => render(count + 1) }, '+') | |
// ]) | |
// |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Ultrapp</title> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script type="module"> | |
import * as superfine from 'https://unpkg.com/superfine?module' |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Counter</title> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<style> |