document.getElementById('contents').innerHTML += '<p>hello again</p>'
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
// | |
// JXAReader.js | |
// | |
// Created by uchcode on 2016/05/28. | |
// Copyright © 2016 uchcode. All rights reserved. | |
// | |
function read(fname) { | |
function LibPath(fname, resourcePath) { | |
return $(resourcePath + '/Script Libraries/' + fname).stringByStandardizingPath.js |
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
function run(argv) { | |
$.NSLog('%@', JSON.stringify(argv)) | |
return argv | |
} |
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
ObjC.import('Foundation') | |
ObjC.import('Carbon') | |
function virtualTyping(source) { | |
if (!source) { | |
throw new Error('Missing source') | |
} | |
if (typeof source !== 'string' || source.trim().length === 0) { | |
throw new Error('Invalid source') | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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> | |
<body> | |
<h1>Hello world</h1> | |
<div id="present"></div> | |
<script> |
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> | |
<body> | |
<h1>Hello world</h1> | |
<div id="present"></div> | |
<script> |
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> | |
<body> | |
<h1>Circulation design pattern</h1> | |
<h2>Hello world</h2> | |
<h3 style="font-size:70%;">for chrome web browser.</h3> | |
<div id="component"></div> | |
<div id="application"></div> |
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
'use strict'; | |
class Model { | |
constructor() { | |
this.name = 'John'; | |
} | |
} | |
class View { | |
render(id, contents) { |