View index.html
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
<!DOCTYPE html> | |
<html> | |
<!-- | |
This provides a simple, single-purpose search front-end for the an Elasticsearch index containing | |
SAP PI message payloads that were indexed with the accompanying script. For more information, visit | |
http://ceronio.net/2014/08/sap-pi-message-payload-search-using-elasticsearch/ | |
--> | |
<head> |
View json2data_test.abap
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
* Code to test https://gist.github.com/2282070 | |
* Should result in COMP1 structure filled and an entry in COMP2 of LS_DEEP | |
data: ls_deep type veri_deep1. | |
json = | |
'{"COMP1": {"F1": "0123", F5: "ab cd\nef", F7: 20090802, "F8": 23123, "F11": 123.23}, ' | |
& 'COMP2: [{"F1": "0123", F5: "gh ij\nkl", F7: 20090802, "F8": 1000, "F11": 543.23}] }'. | |
perform json_to_data using json ls_deep. |
View json2data.abap
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
REPORT ZZ_TEST_JSON_MYDOG. | |
* | |
class lcl_test definition for testing " #AU Risk_Level Harmless | |
inheriting from cl_aunit_assert. " #AU Duration Short | |
private section. | |
methods : | |
test_string for testing, | |
test_number for testing, |
View ZABAPSRC_SOLR_INDEX.abap
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
*&---------------------------------------------------------------------* | |
*& Report ZABAPSRC_SOLR_INDEX | |
*& | |
*&---------------------------------------------------------------------* | |
*& | |
*& | |
*&---------------------------------------------------------------------* | |
REPORT ZABAPSRC_SOLR_INDEX. |
View AutoHotkey.ahk
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
^!p:: | |
RegRead, ProxyOn,HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Internet Settings,ProxyEnable | |
if (ProxyOn=1) { | |
ProxyOn = 0 | |
ProxyState = Off | |
} else { | |
ProxyOn = 1 | |
ProxyState = On | |
} | |
RegWrite, REG_DWORD,HKEY_CURRENT_USER,Software\Microsoft\Windows\CurrentVersion\Internet Settings,ProxyEnable,%ProxyOn% |
View signal_slot.rb
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
require 'Qt' | |
# The class that will act as the receiver | |
class A < Qt::Object | |
slots :receive, 'receive_int(int)', 'receive_path(QString)' | |
def receive | |
puts 'event received' | |
end |
View logred.red
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
Red [needs: view] | |
turtle: #() | |
win: layout [ tfield: base 500x500 white draw [] | |
panel [ | |
text "History" return history: text-list 180x350 data [] return | |
panel [ button "Save" [save request-file history/data] | |
button "Load" [commands: load request-file foreach cmd commands [process-cmd cmd]] ] | |
] |
View account_search.json
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
{ | |
"took" : 5, | |
"timed_out" : false, | |
"_shards" : { | |
"total" : 5, | |
"successful" : 5, | |
"failed" : 0 | |
}, | |
"hits" : { | |
"total" : 1000, |
View json2data.abap
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
*&---------------------------------------------------------------------* | |
*& Form json_to_data | |
*&---------------------------------------------------------------------* | |
form json_to_data using json type string changing data type any. | |
data: lv_off type i. | |
data: lv_len type i. | |
data: lv_key type string. | |
data: lv_value type string. | |
data: lv_char type char1. "Current chacater | |
data: lv_pchar type char1. "Previous character |
View ex1.st
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
Transcript show: 'Hello Pharo!' |
OlderNewer