Skip to content

Instantly share code, notes, and snippets.

View htammen's full-sized avatar

Helmut Tammen htammen

View GitHub Profile
@htammen
htammen / index.html
Created September 26, 2015 05:47 — forked from anonymous/index.html
OpenUI5 Mobile Greenfield Example // source http://jsbin.com/fujevu/2
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<title>OpenUI5 Mobile Greenfield Example</title>
<script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
data-sap-ui-libs="sap.m,sap.ui.layout,sap.ui.core"
data-sap-ui-theme="sap_bluecrystal">
</script>
@htammen
htammen / index.html
Last active May 18, 2017 10:40
sap.viz.ui5 example
<!DOCTYPE html>
<html>
<head>
<script src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.m"></script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script type="sapui5/xmlview" id="view1">
<mvc:View xmlns:mvc="sap.ui.core.mvc" xmlns="sap.m" xmlns:viz="sap.viz.ui5.controls" controllerName="view1">
<IconTabBar>
@htammen
htammen / index.html
Created June 13, 2017 07:39
Expression Bindings // source http://jsbin.com/giwivi
<!DOCTYPE html>
<html>
<head>
<script
src="https://openui5.hana.ondemand.com/resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-libs="sap.m"
data-sap-ui-xx-bindingSyntax="complex">
</script>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
<script id="jsbin-javascript">
<!-- This jsbin demonstrates UI5s different selection and input fields with value helps -->
<script id="sap-ui-bootstrap"
src="https://sapui5.hana.ondemand.com/resources/sap-ui-core.js"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-xx-bindingSyntax="complex"
data-sap-ui-libs="sap.m"></script>
<div id="uiArea"></div>
<script id="view1" type="ui5/xmlview">
@htammen
htammen / ui5con-2018-ui5-goes-pwa.md
Created May 31, 2018 09:28
ui5con-2018-ui5-goes-pwa.md

Dev Notes

Das Projekt ui5con-2018-1 ist das Projekt, das ich während der Präsentation clone (remix). Es ist mit dem github Projekt ui5con-htammen.github.com Branch glitch verbunden.
D.h. Änderungen sollten in dem Github Projekt vorgenommen werden, entweder in glitch oder lokal. In der Glitch Console können folgende Befehle verwendet werden.

  • git branch -a (List both remote-tracking branches and local branches.)
  • git remote
  • git pull: zum pullen der Änderungen von github
  • git push: zum pushen der Änderung aus glitch nach github

MD Datei online anschauen

# find all README.md files in a folder hierarchy but exclude all node_modules folders
find . -path "**/node_modules" -prune -o -name "README.md" -print
# like before but also find a specific keyworkd, here "mklink" in the README.md files
find . -path "**/node_modules" -prune -o -name "README.md" -print -exec grep -Hni "mklink" {} \;
# show all files in a folder in list view
ls -l
@htammen
htammen / Component.ts
Last active July 17, 2019 13:46
Component.ts (Typescript version of UI5 component controller)
sap.ui.define([
"sap/ui/core/UIComponent",
"sap/ui/Device",
"sap/ui/model/json/JSONModel",
"de/tammenit/ui5/AppAdminApp/model/models",
"sap/base/Log",
"sap/ui/core/Popup"
], function (UIComponent: typeof sap.ui.core.UIComponent,
Device: typeof sap.ui.Device,
JSONModel: typeof sap.ui.model.json.JSONModel,
@htammen
htammen / Main.controller.ts
Last active July 17, 2019 13:32
MainController.ts (Typescript version of UI5 view controller that inherits from a BaseController)
sap.ui.define([
"de/tammenit/ui5/AppAdminApp/controller/BaseController",
"sap/ui/model/json/JSONModel",
"sap/ui/core/format/DateFormat",
"sap/ui/core/Fragment"
], function (BaseController: typeof de.tammenit.ui5.AppAdminApp.controller.BaseController,
JSONModel: typeof sap.ui.model.json.JSONModel,
DateFormat: typeof sap.ui.core.format.DateFormat,
Fragment: typeof sap.ui.core.Fragment
) {
@htammen
htammen / BaseController.ts
Last active July 17, 2019 13:27
BaseController.ts (Typescript version of UI5 BaseController from which view controller inherit)
sap.ui.define([
"sap/ui/core/mvc/Controller",
"sap/ui/core/routing/History",
"de/tammenit/ui5/AppAdminApp/Component",
"sap/ui/model/json/JSONModel"
], function(Controller: typeof sap.ui.core.mvc.Controller,
History: typeof sap.ui.core.routing.History,
Component: typeof de.tammenit.ui5.AppAdminApp.Component,
JSONModel: typeof sap.ui.model.json.JSONModel) {
"use strict";