Skip to content

Instantly share code, notes, and snippets.

Jason Scott js1972

Block or report user

Report or block js1972

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@js1972
js1972 / VIDEO-QA with Tensorflow 1.2RC0.ipynb
Created Jun 20, 2017 — forked from Kjeanclaude/VIDEO-QA with Tensorflow 1.2RC0.ipynb
EXAMPLE OF VIDEO-QA IMPLEMENTATION WITH TENSORFLOW 1.2RC0
View VIDEO-QA with Tensorflow 1.2RC0.ipynb
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 Jun 20, 2017
Usage analysis of ABAP t-codes and programs
View ztcode.abap
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.
View zcl_abap_benchmark_tool.abap
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 Jun 20, 2017
SAPUI5 Local Storage Model
View local_storage_model.js
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),
View face_detect.py
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 Mar 15, 2016 — forked from anonymous/index.html
GoogleMap Example with Data Binding used// source http://jsbin.com/xavuhi
View index.html
<!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 Sep 17, 2015
Sample one-page MVC UI5 application in SAP HANA XS showing use of a map (googlemaps library).
View ui5_googlemaps.html
<!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
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…
View LCATSO27.abap
*{ 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 Dec 1, 2014
Help functions to determine if a given control is an XML View and to find the XML View that a control is in...
View is_xml_view.js
isXMLView = function(oControl) {
return oControl.getMetadata().getName() === "sap.ui.core.mvc.XMLView";
}
@js1972
js1972 / test_speed_openui5.html
Created Dec 1, 2014
Test OpenUI5 load speed
View test_speed_openui5.html
<!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"
You can’t perform that action at this time.