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
@AppWerft
AppWerft / leaflet.google.js
Created November 12, 2016 09:20
Using Google Map tiles with the Leaflet mapping library + google styles
/*
* L.TileLayer is used for standard xyz-numbered tile layers.
*/
L.Google = L.Class.extend({
includes: L.Mixin.Events,
options: {
minZoom: 0,
maxZoom: 16,
@AppWerft
AppWerft / mobileprojects.json
Created January 13, 2020 12:08
Mobile Projekte Appwerft
{
"title": "Mobile Projekte Dipl.-Ing. Rainer Schleevoigt",
"items": [
{
"projekt": "Vladi Private Islands",
"technik": "cordova/phonegap",
"plattformen": ["iOS, Android"],
"inhalt": ["Darstellung aktueller Immobilien", "redaktionelle Seiten", "Karte"],
"rolle": "Konzeption und Umsetzung",
"layoutdesign": "Eigenentwicklung",
module.exports = function() {
var $ = Ti.UI.createView({
backgroundColor : BLUE
});
const Map = require("ti.map");
var mapView = Map.createView({
bottom : 0,
userLocation : Ti.Geolocation.locationServicesEnabled ? true : false,
region : {
{
"proxies":{
"ti.map.MapModule":{
"superPackageName":"org.appcelerator.kroll",
"methods":{
"isGooglePlayServicesAvailable":{
"runOnUiThread":false,
"hasInvocation":false,
"args":[
?php
$ts = '';
$R = 'EXT:hosvisualization/Resources/Public';
$EP = "/home/mirko/.web/raw";
$NS = "hosvirt_";
$doc = new DOMDocument();
$doc->loadHTMLFile($EP . "/index.html");
$xpath = new DOMXPath($doc);
$count = 10;
foreach ($xpath->evaluate("//link[contains(@href, 'css')]") as $node) {
Rainers-MacBook-Pro-3:Hoerdat fuerst$ appc ti build --verbose -p android --sdk 8.0.0.GA
Finding latest version 7.0.10 ✓
Validating security checksum ✓
Installing ✓
Compiling platform native modules
└ external-editor/spawn-sync ✓
└ bunyan/dtrace-provider ✓
└ package/appcd ✓
└ bunyan/dtrace-provider ✓
└ axway-flow/jsonpath ✓
Rainers-MacBook-Pro-3:Hoerdat fuerst$ appc ti build --verbose -p android
Appcelerator Command-Line Interface, version 7.0.10
Copyright (c) 2014-2019, Appcelerator, Inc. All Rights Reserved.
2019-5-2 18:14:01
Operating System
Name = Mac OS X
Version = 10.14.4
Architecture = 64bit
04-18 20:41:01.695 5544 5563 I TiAPI : _openevent
04-18 20:41:01.695 5544 5563 I TiAPI : _openevent activity
04-18 20:41:01.752 5544 5544 D AndroidRuntime: Shutting down VM
04-18 20:41:01.755 5544 5544 E AndroidRuntime: FATAL EXCEPTION: main
04-18 20:41:01.755 5544 5544 E AndroidRuntime: Process: de.appwerft.hoerdat, PID: 5544
04-18 20:41:01.755 5544 5544 E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.app.Activity ti.modules.titanium.ui.TabGroupProxy.getActivity()' on a null object reference
04-18 20:41:01.755 5544 5544 E AndroidRuntime: at ti.modules.titanium.ui.widget.tabgroup.TiUIAbstractTab.getContentView(TiUIAbstractTab.java:55)
04-18 20:41:01.755 5544 5544 E AndroidRuntime: at ti.modules.titanium.ui.widget.tabgroup.TiUIActionBarTab$TabFragment.onCreateView(TiUIActionBarTab.java:52)
04-18 20:41:01.755 5544 5544 E AndroidRuntime: at android.support.v4.app.Fragment.performCreateView(Fragment.java:2346)
04-18 20:41:01.755 5544 5544 E
/* this module will called from _e.source on open event */
module.exports = function(_openevent) {
console.log("_openevent");
if (!_openevent.source)
return;
var activity = _openevent.source.getActivity();
if (activity) {
console.log("_openevent activity");
activity.onCreateOptionsMenu = function(_menu) {
console.log("_openevent onCreateOptionsMenu");
@Override
public void onError(Activity activity, int requestCode, Exception e) {
Log.e(LCAT, e.getMessage());
if (onErrorCallback != null) {
KrollDict event = new KrollDict();
event.put("message", e.getMessage());
event.put("error", e.toString());
onErrorCallback.call(getKrollObject(), event);
}
}