- aggregate
- $unwind
- $match -> where
- $regex -> like
- $or -> ||
- $and -> &&
- $eq -> =
- $ne -> !=
- $nin -> NOT IN
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
$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 |
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').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 |
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
#Install Android Studio | |
- Sdk | |
#SET Environment Variables | |
- Path | |
- Andorid Sdk | |
- emulator | |
- platform-tools | |
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
<?php | |
$apiToken = ""; // Your Token | |
$chat_id = ""; // Your Chat ID | |
$text = $_GET['text']; | |
// V1 | |
/* | |
$params = [ | |
'chat_id' => $chat_id, |
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
<?php | |
error_reporting(E_ALL); | |
// Attachments Form : | |
// $data = array( | |
// 'attachments' => array( | |
// 0 => array( | |
// 'fallback' => 'Required plain-text summary of the attachment.', | |
// 'color' => '#36a64f', | |
// 'pretext' => 'Optional text that appears above the attachment block', |
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
// Host runing https: | |
var port = 3000; | |
var express = require('express'); | |
var fs = require("fs"); | |
var cert = { | |
key: fs.readFileSync('./cert/x.key'), | |
cert: fs.readFileSync('./cert/x.cer') | |
}; | |
var app = express() | |
, http = require('http').createServer(app) |
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<form> | |
<div class="form-group"> |
moment().add(543, 'years').format('L');
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
function readURL(input) { | |
if (input.files.length > 1) { | |
var htmlPreview = $('#preview-files'); | |
htmlPreview.html(""); | |
$.each(input.files, function(i, v) { | |
var filename = v.name; | |
var filetype = v.type; |
OlderNewer