This file contains 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'; | |
const leftPad = require('left-pad'); | |
function hello(params) { | |
const name = params.name || 'World'; | |
return { payload: `Hello, ${leftPad(name, 30, ".")}!` }; | |
} | |
exports.hello = hello; |
This file contains 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'; | |
function hello(params) { | |
const name = params.name || 'World'; | |
return { payload: `Hello, ${name}!` }; | |
} | |
exports.hello = hello; |
This file contains 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
{ | |
"image":"https://static1.squarespace.com/static/58b8e713db29d62626926f2d/58bcb3945016e1f82fb3206f/58bcb3951b10e3957cd09137/1488761751400/DaveWachter.jpg?format=750w", | |
"artist":"Dave Wachter" | |
} |
This file contains 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> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="http://cmx.io/v/0.1/cmx.css"/> | |
<script src="http://cmx.io/v/0.1/cmx.js"></script> | |
<body> | |
<scene id="scene1"> | |
<label t="translate(0,346)"> | |
<tspan x="0" y="0em">A Mobile Developer's Journey'</tspan> | |
</label> | |
<actor t="translate(131,49)" pose="-11,9|-5,117|-11,99|-11,89|-11,79|-11,59|-16,34|-21,9|-6,34|-1,9|-18,79|-18,59|-6,79|-1,59"> |
This file contains 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
# Cordova Magic Commands | |
conjure() { | |
cordova create $1 $2 $3 | |
cd $1 | |
} | |
alias conjure=conjure | |
summon() { | |
cordova platform add $1 | |
} |
This file contains 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
I/ActivityManager( 930): Start proc 11438:com.android.defcontainer/u0a9 for service com.android.defcontainer/.DefaultContainerService | |
I/LoadedApk(11438): No resource references to update in package common | |
I/LoadedApk(11438): No resource references to update in package com.cyngn.hexo | |
I/ActivityManager( 930): Start proc 11456:com.android.vending/u0a19 for broadcast com.android.vending/com.google.android.vending.verifier.PackageVerificationReceiver | |
I/LoadedApk(11456): No resource references to update in package common | |
I/LoadedApk(11456): No resource references to update in package com.cyngn.hexo | |
D/Finsky (11456): [1] FinskyApp.onCreate: Initializing network with DFE https://android.clients.google.com/fdfe/ | |
D/Finsky (11456): [1] DailyHygiene.goMakeHygieneIfDirty: No need to run daily hygiene. | |
W/Settings(11456): Setting download_manager_max_bytes_over_mobile has moved from android.provider.Settings.Secure to android.provider.Settings.Global. | |
W/Settings(11456): Setting download_manager_recommended_max_bytes_ove |
This file contains 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
var app = { | |
// Application Constructor | |
initialize: function() { | |
this.initPush(); | |
this.bindEvents(); | |
}, | |
// Bind Event Listeners | |
// | |
// Bind any events that are required on startup. Common events are: | |
// 'load', 'deviceready', 'offline', and 'online'. |
This file contains 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
/* | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 |
This file contains 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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title>Web Speech API Demo</title> | |
</head> | |
<body> | |
<img id="audioIn" src="voice.jpg"/> | |
<div id="result"> |
This file contains 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
window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, function(fileSystem) { | |
fileSystem.root.getFile("localFileName.txt", {create: true, exclusive: false}, function(fileEntry) { | |
var localPath = fileEntry.fullPath; | |
if (device.platform === "Android" && localPath.indexOf("file://") === 0) { | |
localPath = localPath.substring(7); | |
} | |
var ft = new FileTransfer(); | |