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
<?php | |
use Zend\Mail\Transport\Smtp as SmtpTransport; | |
use Zend\Mail\Transport\SmtpOptions; | |
use Zend\Mail\Message; | |
public function sendEmail($to, $subject, $body){ | |
$message = new Message(); | |
$message->addTo($to) | |
->addFrom('[email protected]') |
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
git config --global credential.helper store |
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
Bitmap origBitmapOrig = BitmapFactory.decodeFile(imageFilePath); | |
//Resize the image | |
double width = origBitmapOrig.getWidth(); | |
double height = origBitmapOrig.getHeight(); | |
int newWidth = 1600 | |
int newHeight = (int)((newWidth/width)*height); | |
Bitmap newBitmap = Bitmap.createScaledBitmap(origBitmapOrig, newWidth, newHeight, true); | |
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
-- Setup EBS context | |
fnd_global.apps_initialize(user_id, responsibility_id, responsibility_application_id); |
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
-- PL/SQL Debugging Setup | |
-- See [PL/SQL Debugging Setup](http://docs.oracle.com/html/B31355_01/plsql_debugging_setup.htm). Essentially, you just need to grant necessary privileges to the user for debugging | |
GRANT DEBUG CONNECT SESSION TO USER | |
GRANT DEBUG ANY PROCEDURE TO USER | |
-- Find PL/SQL Definition | |
-- The definition of PACKAGE, PROCEDURE, TRIGGER, FUNCTION can be found in USER_SOURCE table or ALL_SOURCE table. Here is an example. | |
SELECT name, LISTAGG(text) WITHIN GROUP (ORDER BY line) AS plsql | |
FROM ALL_SOURCE | |
WHERE type='PROCEDURE' AND name='<procedure name in upper case>' |
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
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 | |
http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.example.sandbox</groupId> | |
<artifactId>sandbox</artifactId> | |
<version>1.0</version> |
NewerOlder