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
/** | |
* Prints a line of non-ASCII text as a series of images. | |
* All doc.text methods can be replaced with this method. | |
* Works like doc.text but requires a fontsize (default is 10). | |
* | |
* Add function to jsPDF instance (do not overwrite doc.text): | |
* var doc = new jsPDF(); | |
* doc.alttext = nonASCIItext; | |
* | |
* @param {Number} x Horizontal placement |
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
* Underlined cells change to buttons else hide column. | |
IF <ls_field_catalog>-style = alv_style_font_underlined. | |
<ls_field_catalog>-style = cl_gui_alv_grid=>mc_style_button. | |
<ls_field_catalog>-convexit = 'Z2BTN'. "Conversion exit changes text to icon code. | |
<ls_field_catalog>-icon = abap_true. "Tells ALV display code as icon. | |
ELSEIF <ls_field_catalog>-style = cl_gui_alv_grid=>mc_style_button. | |
<ls_field_catalog>-style = alv_style_font_underlined. | |
<ls_field_catalog>-convexit = ''. | |
<ls_field_catalog>-icon = abap_false. |
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
SELECTION-SCREEN BEGIN OF SCREEN 0001 AS SUBSCREEN. | |
DATA: sel_fname TYPE zaif_filename, | |
sel_werks TYPE werks_d, | |
sel_vkgrp TYPE vkgrp, | |
sel_kunnr TYPE char5, | |
* sel_kunnr TYPE kunnr, | |
sel_zsdate TYPE zsdate. | |
SELECT-OPTIONS s_fname FOR sel_fname. |
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
* Get the originating file GUID. | |
DATA: lv_aif_msgguid TYPE /aif/sxmssmguid, | |
lo_exception TYPE REF TO cx_root. | |
TRY . | |
CALL FUNCTION '/AIF/FILE_GET_GLOBALS' | |
IMPORTING | |
ximsgguid = lv_aif_msgguid. | |
CATCH cx_uuid_error INTO lo_exception. |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
Tests the various feature detector algorithms in OpenCV 2.4 on one image | |
@SINCE: Thu Sep 13 23:01:23 2012 | |
@VERSION: 0.1 | |
@REQUIRES: OpenCV 2.4 (I used 2.4.0), matplotlib |
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
[global_config] | |
title_hide_sizetext = True | |
title_transmit_bg_color = "#990098" | |
title_transmit_fg_color = "#d2ffa8" | |
[keybindings] | |
[layouts] | |
[[default]] | |
[[[child1]]] | |
parent = window0 | |
type = Terminal |
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
<launch> | |
<!--TODO:Change the test number based on the scene you want loaded--> | |
<arg name="test_scene_num" value="1"/> | |
<!--Include description and control launch files--> | |
<include file="$(find pr2_robot)/launch/robot_description.launch"/> | |
<include file="$(find pr2_robot)/launch/robot_control.launch"/> | |
<include file="$(find pr2_moveit)/launch/move_group.launch"/> | |
<rosparam command="load" file="$(find pr2_moveit)/config/grasp.yaml"/> |
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
# PIL RGB 'im' to CV2 BGR 'imcv' | |
imcv = np.asarray(im)[:,:,::-1].copy() | |
# Or | |
imcv = cv2.cvtColor(np.asarray(im), cv2.COLOR_RGB2BGR) | |
# To gray image | |
imcv = np.asarray(im.convert('L')) | |
# Or | |
imcv = cv2.cvtColor(np.asarray(im), cv2.COLOR_RGB2GRAY) |
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
/** | |
* @overview This is a reference for the different ways to create components. | |
* Includes notes on when to use the different variations. | |
*/ | |
/** non-class expression. (NOT "hoisted") | |
* | |
*/ | |
const MyComponent = React.createClass({ |
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
import React from 'react'; | |
/** | |
* Creates a react element for a Font Awesome icon. | |
* | |
* ``` | |
* import FontAwesome from './FontAwesome'; | |
* var FA_SPINNING_COG = FontAwesome("cog", "fa-spin"); | |
* ``` |
NewerOlder