View test.ui.xml
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
<sap.ui.core:FragmentDefinition | |
xmlns:sap.ui.core="sap.ui.core" | |
xmlns:sap.m="sap.m" | |
xmlns:sap.ui.layout.form="sap.ui.layout.form" | |
xmlns:sap.ui.core.mvc="sap.ui.core.mvc" > | |
<sap.m:Panel headerText="dfdff" expandable="true" expanded="true"> | |
<sap.m:customData> | |
<sap.ui.core:CustomData key="sap-ui-fastnavgroup" value="true" writeToDom="true"></sap.ui.core:CustomData> | |
</sap.m:customData> | |
<sap.m:content> |
View test.controller.js
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
return (function(q, _, context) { | |
debugger; | |
var defer = q.defer(); | |
sap.ui.require(["aicomp/domain/element/api", "aicomp/service/noty"], function( | |
api, | |
noty | |
) { | |
var current = api.current(); | |
var flatcodes = flattenAndGroup(current); | |
api.model().setProperty("/flat_codes_start", shallowclone(flatcodes)); |
View test
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
Welcome to StackEdit! | |
=================== | |
Hey! I'm your first Markdown document in **StackEdit**[^stackedit]. Don't delete me, I'm very helpful! I can be recovered anyway in the **Utils** tab of the <i class="icon-cog"></i> **Settings** dialog. | |
---------- | |
Documents |
View jquery.dropbox.js
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
/*** | |
* | |
* Extends jQuery with dropbox crud functionality | |
* | |
* All API methods return a promise unless specified otherwise. | |
* | |
*/ | |
(function($) { | |
jQuery.extend({ | |
dropboxAuth: new DropboxAuth(), |
View jquery.ajax.blob.js
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
(function($) { | |
/** | |
* http://artandlogic.com/2013/11/jquery-ajax-blobs-and-array-buffers/ | |
* | |
* Register ajax transports for blob send/recieve and array buffer send/receive via XMLHttpRequest Level 2 | |
* within the comfortable framework of the jquery ajax request, with full support for promises. | |
* | |
* Notice the +* in the dataType string? The + indicates we want this transport to be prepended to the list | |
* of potential transports (so it gets first dibs if the request passes the conditions within to provide the | |
* ajax transport, preventing the standard transport from hogging the request), and the * indicates that |
View spinner-directive.js
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
(function() { | |
var app = angular.module('mcbSpin', []) | |
.directive('spinner', [Spinner]); | |
function Spinner() { | |
return { | |
restrict: 'EA', //E = element, A = attribute, C = class, M = comment | |
replace: true, | |
scope: { | |
show: '@', |
View manifest-create
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
#!/bin/bash | |
SWITCH="\e[" | |
NRM="${SWITCH}0m" YLW="${SWITCH}33m" RED="${SWITCH}31m" | |
GRN="${SWITCH}32m" | |
BLU="${SWITCH}34m" | |
dir=$(dirname "${BASH_SOURCE[0]}") | |
function error { | |
echo -e $RED$@$NRM |
View focus-directive.js
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
(function() { | |
var app = angular.module('mcbFocus', []) | |
.directive('focusOn', function() { | |
return function(scope, elem, attr) { | |
if(attr.tabIndex === undefined){ | |
elem.attr('tabindex', -1); | |
} | |
scope.$on('focusOn', function(e, name) { | |
if (name === attr.focusOn) { | |
elem[0].focus(); |
View datepicker-directive.js
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
(function() { | |
var app = angular.module("siDate", []) | |
.directive('datePicker', [datePicker]); | |
function datePicker() { | |
return { | |
restrict: 'EA', //E = element, A = attribute, C = class, M = comment | |
replace: true, | |
scope: { |
View datepicker-directive.js
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
(function($) { | |
var app = angular.module("siDate", []) | |
.directive('datePicker', [datePicker]); | |
function datePicker() { | |
return { | |
restrict: 'EA', //E = element, A = attribute, C = class, M = comment | |
replace: true, | |
scope: { |
NewerOlder