Skip to content

Instantly share code, notes, and snippets.

View AppWerft's full-sized avatar

Rainer Schleevoigt AppWerft

  • Hamburger AppWerft
  • Hamburg, St. Pauli
View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, target-densitydpi=device-dpi">
<meta charset="utf-8">
<title>GLmol embedding examples</title>
<style type="text/css"> * {margin:0;padding:0}</style>
</head>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, target-densitydpi=device-dpi">
<meta charset="utf-8">
<title>GLmol embedding examples</title>
<style type="text/css"> * {margin:0;padding:0}</style>
</head>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, target-densitydpi=device-dpi">
<meta charset="utf-8">
<style type="text/css"> * {margin:0;padding:0}</style>
</head>
<body>
<div id="glmol" style="width: 500px; height: 400px;background-color:#fff"> </div>
module.exports = function gk2geo() {
/* Copyright (c) 2006, HELMUT H. HEIMEIER
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included
@AppWerft
AppWerft / gist:84a0677becb144151a9f
Created May 18, 2015 07:12
ti.augmentedreality.js
var isAndroid = Ti.Platform.osname == 'android';
var numberOfpanels = 4;
/*if (isAndroid) {
// Landscape Mode
var screenWidth = Ti.Platform.displayCaps.platformHeight;
var screenHeight = Ti.Platform.displayCaps.platformWidth;
} else {*/
var LDF = Ti.Platform.displayCaps.logicalDensityFactor || 1;
var screenWidth = (Math.max(Ti.Platform.displayCaps.platformWidth, Ti.Platform.displayCaps.platformHeight)) / LDF;
var screenHeight = (Math.min(Ti.Platform.displayCaps.platformWidth, Ti.Platform.displayCaps.platformHeight)) / LDF;
loadEventsofDays : function() {
var events = [];
var that = this;
var ok = this.getEventsofDay(_date);
if (Ti.Network.online) {
var xhr = Ti.Network.createHTTPClient({
timeout : 30000,
onload : function() {
var end = new Date().getTime();
if (this.status == 200) {
Fri Jun 12 2015 20:16:00 GMT+0200 (CEST)
Operating System
Name = Mac OS X
Version = 10.10.3
Architecture = 64bit
# CPUs = 4
Memory = 8589934592
*** Date: Thursday, July 16, 2015 at 7:55:12 AM Central European Summer Time
*** Platform Details:
*** System properties:
applicationXMI=org.eclipse.ui.workbench/LegacyIDE.e4xmi
awt.toolkit=sun.lwawt.macosx.LWCToolkit
eclipse.application=com.appcelerator.titanium.rcp.application
eclipse.buildId=4.2.0.201507141207
eclipse.commands=-os
var Module = function(options) {
this.color = options.color || 'gray';
this.name = options.name || 'time';
this.size = options.size || 10;
var unit = Ti.App.Properties.getString('ti.ui.defaultunit', 'dp');
if (!icons[this.name]) {
console.log(this.name + ' not found');
return null;
}
var filehandle = Ti.Filesystem.getFile(Ti.Filesystem.isExternalStoragePresent() ? Ti.Filesystem.getExternalStorageDirectory() : Ti.Filesystem.getApplicationDataDirectory(), 'icon-' + this.name + '-' + this.size + '-' + this.color + '.png');
START:
[INFO] : MultiPlayer: Setting MP3 decoder for content type audio/mpeg
[INFO] : AACPlayer: The dynamic metainfo is sent every 16000 bytes
[INFO] : Decoder: start() starting native decoder - OpenCORE-MP3
[ERROR] : E/Decoder[OpenCORE-MP3]: start() frame decode error=2
[ERROR] : E/Decoder[OpenCORE-MP3]: start() first frame cannot be decoded - trying to sync again
[ERROR] : E/Decoder[OpenCORE-MP3]: start() cannot re-sync the stream after next 1024 bytes, status=12
[ERROR] : E/Decoder[OpenCORE-MP3]: start() frame decode error=2
[ERROR] : E/Decoder[OpenCORE-MP3]: start() first frame cannot be decoded - trying to sync again
[ERROR] : E/Decoder[OpenCORE-MP3]: start() cannot re-sync the stream after next 1024 bytes, status=12