Skip to content

Instantly share code, notes, and snippets.

@js1972
js1972 / VIDEO-QA with Tensorflow 1.2RC0.ipynb
Created June 20, 2017 06:13 — forked from Kjeanclaude/VIDEO-QA with Tensorflow 1.2RC0.ipynb
EXAMPLE OF VIDEO-QA IMPLEMENTATION WITH TENSORFLOW 1.2RC0
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@js1972
js1972 / ztcode.abap
Created June 20, 2017 05:54
Usage analysis of ABAP t-codes and programs
report ztcode.
parameters: month type dats default sy-datum obligatory,
user type usr02-bname obligatory default sy-uname.
types: begin of zusertcode,
operation type char30,
type type char10,
count type swncshcnt,
end of zusertcode.
@js1972
js1972 / zcl_abap_benchmark_tool.abap
Created June 20, 2017 05:42
ABAP Benchmark Tool
class ZCL_ABAP_BENCHMARK_TOOL definition
public
final
create public .
public section.
class-methods START_TIMER .
class-methods STOP_TIMER .
class-methods GC .
@js1972
js1972 / local_storage_model.js
Created June 20, 2017 04:41
SAPUI5 Local Storage Model
sap.ui.define([
"sap/ui/model/json/JSONModel",
"jquery.sap.storage"
], function(JSONModel, jQuery) {
"use strict";
return JSONModel.extend("sap.ui.demo.cart.model.CartModel", {
_STORAGE_KEY : "LOCALSTORAGE_MODEL",
_storage : jQuery.sap.storage(jQuery.sap.storage.Type.local),
import sys, cv2
# Refactored https://realpython.com/blog/python/face-recognition-with-python/
def cascade_detect(cascade, image):
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
return cascade.detectMultiScale(
gray_image,
scaleFactor = 1.15,
minNeighbors = 5,
@js1972
js1972 / index.html
Last active March 15, 2016 06:58 — forked from anonymous/index.html
GoogleMap Example with Data Binding used// source http://jsbin.com/xavuhi
<!DOCTYPE html>
<html><head>
<meta http-equiv='X-UA-Compatible' content='IE=edge' />
<title>GoogleMap Example with Data Binding used</title>
<script id='sap-ui-bootstrap' type='text/javascript'
src='https://openui5.hana.ondemand.com/resources/sap-ui-core.js'
data-sap-ui-theme='sap_bluecrystal'
data-sap-ui-libs='sap.m'></script>
@js1972
js1972 / ui5_googlemaps.html
Created September 17, 2015 01:03
Sample one-page MVC UI5 application in SAP HANA XS showing use of a map (googlemaps library).
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="UTF-8">
<title>Sample using the OpenUI5 googlemaps library</title>
<script id="sap-ui-bootstrap"
src="/sap/ui5/1/resources/sap-ui-core.js"
@js1972
js1972 / LCATSO27.abap
Created May 20, 2015 06:12
Modification to include 'LCATSO27' within function 'CATS_INTERFACE'. This is called from the following perfom chain starting at line #125 of the function: workflow_approval, workflow_account_dependent, process_approval_single_record, process_workflow_single_record. The modification replaces the existing SAP logic to determine when a new work ite…
*{ REPLACE SU1K901157 1
*\ READ TABLE orgtask_agents_sum
*\ WITH KEY org_obj = lv_orgobject.
*\ IF sy-subrc EQ 0.
*\ p_workitem = orgtask_agents_sum-workitemid.
*\ ELSE.
*\ SELECT * FROM swworgtask
*\ APPENDING TABLE lt_swworgtask
*\ WHERE org_obj = lv_orgobject AND
*\ task_obj = tcats-task.
@js1972
js1972 / is_xml_view.js
Created December 1, 2014 06:39
Help functions to determine if a given control is an XML View and to find the XML View that a control is in...
isXMLView = function(oControl) {
return oControl.getMetadata().getName() === "sap.ui.core.mvc.XMLView";
}
@js1972
js1972 / test_speed_openui5.html
Created December 1, 2014 02:41
Test OpenUI5 load speed
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta charset="UTF-8">
<title>test</title>
<script id="sap-ui-bootstrap"
xxxsrc="https://openui5.netweaver.ondemand.com/resources/sap-ui-core.js"