Skip to content

Instantly share code, notes, and snippets.

View dennisseah's full-sized avatar

Dennis Seah dennisseah

  • Microsoft
  • Sunnyvale
View GitHub Profile
@dennisseah
dennisseah / aboutTypescipt.md
Created January 20, 2020 15:50
Observations on Typescipt implementation

0. Avoid using any and object type

Using any or object types resulted in no type checking. Typescipt is used because we want type checking :-).

1. Use Helper Function

Whenever we copy and paste some code snippet, it is a signal to us that we need helper function. Example

if (value1 === undefined || value1 === null || value1 === "") {
    console.error("value is missing");
}
@dennisseah
dennisseah / macSetupSPK.md
Last active January 19, 2020 21:32
Initial SPK Setup on mac
@dennisseah
dennisseah / BedrockSimpleDeploy.md
Created January 15, 2020 15:12
Capture initial learning on Azure and Bedrock (OSX user)

Getting Started for Mac Users

Install Software

Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install GIT

@dennisseah
dennisseah / mdeleteRowsSapUITable.html
Last active June 2, 2019 04:01
SAPUI5: remove multiple rows in sap.ui.table.Table
<!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_belize" data-sap-ui-libs="sap.ui.commons,sap.ui.table,sap.m"></script>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
<script>
@dennisseah
dennisseah / GitHub-Forking.md
Created October 16, 2018 19:30 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@dennisseah
dennisseah / gist:817623be89866dac1e7b
Created October 1, 2015 16:15
Flip Toggle SAPUI5 Desktop button
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>SAPUI5 Flip Toggle Button</title>
<style>
.toggleFlipButton {
padding: 0px;
padding-left: 0px;
padding-right: 0px;
@dennisseah
dennisseah / gist:3222be69ef01231f218d
Last active August 29, 2015 14:06
SAPUI5: Reorder a list of buttons and sync with model.
<!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,sap.ui.commons"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style>
.horizontal {
border: 1px dotted #999;
@dennisseah
dennisseah / gist:067a6c8998b9881399a3
Created August 29, 2014 03:35
SAPUI5: Demonstrates two ways binding on sap.ui.table.Table
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script id="sap-ui-bootstrap"
type="text/javascript"
data-sap-ui-libs="sap.ui.table,sap.ui.commons,sap.m"
data-sap-ui-theme="sap_bluecrystal"
@dennisseah
dennisseah / gist:bf96f9ca5399685d429d
Last active August 29, 2015 14:05
SAPUI5: Traverse up and down hierarchically in sap.m.List
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script id="sap-ui-bootstrap"
type="text/javascript"
data-sap-ui-libs="sap.ui.table,sap.ui.commons,sap.m"
data-sap-ui-theme="sap_bluecrystal"
@dennisseah
dennisseah / gist:b2e101a2cd6fbed4a686
Created August 28, 2014 07:32
SAPUI5: sap.m.ActionSheet on Desktop
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<script id="sap-ui-bootstrap"
type="text/javascript"
data-sap-ui-libs="sap.ui.table,sap.ui.commons,sap.m"
data-sap-ui-theme="sap_bluecrystal"