Skip to content

Instantly share code, notes, and snippets.

View simonrobb's full-sized avatar
🤖
beep boop

Simon Robb simonrobb

🤖
beep boop
View GitHub Profile
@simonrobb
simonrobb / create-elasticsearch-shipment-schema.sh
Last active June 6, 2022 06:47
A cURL command to create the Elasticsearch index for Packsmith shipments
curl -X PUT http://localhost:9200/job_pool -H "Content-Type: application/json" -d '{
"mappings": {
"properties": {
"id": {
"type": "keyword"
},
"type": {
"type": "keyword"
},
var myModule;
try {
// try to get a previously created module
myModule = angular.module('myModule');
} catch {
<?php
$GetTheValidationRule=mysqli_query($con,"SELECT * FROM Questions WHERE Form_ID='$FormID' AND QuestionsDataHave='YES' ORDER BY Questions_ID+0, Questions_ID");
$ValidatinArray=array();
$J=0;
while($RowVal=mysqli_fetch_array($GetTheValidationRule)){
$ValidatinArray[$J]= $RowVal['Validation_Type'];
$J++;
}
?>