Skip to content

Instantly share code, notes, and snippets.

View abcprintf's full-sized avatar
🎯
Focusing

Mix Abcprintf abcprintf

🎯
Focusing
View GitHub Profile
@abcprintf
abcprintf / Command Line React-Native.txt
Last active October 17, 2018 07:58
command line react-native open Emulator.exe
#Install Android Studio
- Sdk
#SET Environment Variables
- Path
- Andorid Sdk
- emulator
- platform-tools
$('form').submit(function(e) {
e.preventDefault();
var formData = new FormData($(this)[0]); // array[0] !important
$.ajax({
url: '{{ url('/url') }}',
type: 'POST',
data: formData,
success: function(result)
{
// result
@abcprintf
abcprintf / gist:f3600c180f586033eb48e7470a74b32a
Created September 24, 2018 15:09
how to convert .docx to .pdf [PHPword]
$rendererLibraryPath = PHPWORD_BASE_DIR . '/vendor/dompdf/dompdf';
\PhpOffice\PhpWord\Settings::setPdfRendererPath($rendererLibraryPath);
\PhpOffice\PhpWord\Settings::setPdfRendererName('DomPDF');
$phpWord = new \PhpOffice\PhpWord\PhpWord();
//Load temp file
$phpWord = \PhpOffice\PhpWord\IOFactory::load('.docx');
//Save it