This file contains hidden or 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
e*&---------------------------------------------------------------------* | |
*& Report ZABAPSRC_SOLR_INDEX | |
*& | |
*&---------------------------------------------------------------------* | |
*& | |
*& | |
*&---------------------------------------------------------------------* | |
REPORT ZABAPSRC_SOLR_INDEX. |
This file contains hidden or 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
/** | |
* SyntaxHighlighter | |
* http://alexgorbatchev.com/SyntaxHighlighter | |
*e | |
* SyntaxHighlighter is donationware. If you are using it, please donate. | |
* http://alexgorbatchev.com/SyntaxHighlighter/donate.html | |
* | |
* @version | |
* 3.0.83 (July 02 2010) | |
* |
This file contains hidden or 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 fetch_source_code. | |
data: | |
lc_table(10) type c, " table name | |
lc_program(30) type c, " program name | |
ln_statement(05) type n, " statement counter | |
lc_field(10) type c, " field name | |
li_discard type i, " discard analysis | |
li_sourcestart type i, " source statement start line | |
li_sourceend type i, " source statement end line |
This file contains hidden or 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 ITAB_TO_JSON | |
*&---------------------------------------------------------------------* | |
* Get JSON representation of any plain internal table | |
*----------------------------------------------------------------------* | |
FORM itab_to_json USING it_abap TYPE STANDARD TABLE | |
CHANGING et_json TYPE string. | |
DATA : lo_object_info TYPE REF TO cl_abap_structdescr | |
, lw_attribute_info TYPE abap_compdescr. |
This file contains hidden or 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
METHOD get_attributes. | |
DATA: | |
lo_ref_obj TYPE REF TO cl_abap_objectdescr. | |
FIELD-SYMBOLS: | |
<attr_desc> TYPE abap_attrdescr. | |
" Get class description | |
lo_ref_obj ?= cl_abap_classdescr=>describe_by_object_ref( me ). |
This file contains hidden or 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
*---------------------------------------------------------------- | |
* METHOD create_tab_for_display | |
* IMPORTING | |
* edo_table type ref to data | |
* edo_struc type ref to data. | |
*---------------------------------------------------------------- | |
method create_tab_for_display. | |
data: | |
go_sdescr_new type ref to cl_abap_structdescr, |
This file contains hidden or 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
This document is outdated. | |
You should read David Bryant Copeland's excellent online book: http://angular-rails.com/crud_recipe.html | |
--------------------------------------------------------------------------------------------------------------- | |
I think it's better to install javascript/css libraries using Bower rather than gem which is Ruby packager. | |
1. Install Rails 4 and create a new project. | |
2. Install bower(Note you need to install node first.) | |
sudo npm install -g bower |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'socket' | |
require 'timeout' | |
unless ARGV.length == 2 | |
abort "Usage: ruby #{__FILE__} HOST PORT" | |
end | |
def port_open?(ip, port, seconds=1) | |
# => checks if a port is open or not on a remote host | |
Timeout::timeout(seconds) do |
This file contains hidden or 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
*----------------------------------------------------------------------* | |
* CLASS json_util DEFINITION | |
*----------------------------------------------------------------------* | |
class json_util definition. | |
public section. | |
class-methods: | |
data_to_json importing data type any | |
returning value(json) type string, | |
json_to_data importing json type string | |
changing data type any. |
This file contains hidden or 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
# create /etc/systemd/system/btsync.service | |
# systemctl start btsync.service | |
# systemctl status btsync.service | |
# systemctl enable btsync.service | |
[Unit] | |
Description=BTSync daemon | |
[Service] | |
#Type=forking | |
PIDFile=/run/btsync/btsync.pid |
OlderNewer