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 | |
function analytics_render_callback($map_id) | |
{ | |
$thematic = get_thematic_areas($map_id); | |
$data = get_map_data($map_id); | |
$map_details = get_map_details($map_id); | |
$all_entities = get_map_entities($map_id); | |
$subcategories = get_subcategories($map_id); | |
$encoded_data = json_encode($data); | |
$map_thema_id = json_encode($map_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
const CustomSelect = { | |
template: ` | |
<div> | |
<div class="custom-selection" @click="toggleDropdown"> | |
<div class="selected-pills"> | |
<span v-for="(category, index) in selectedCategories" :key="index" class="small-pill"> | |
{{ category }} | |
<button type="button" class="close-btn" @click.stop="removeCategory(category)">×</button> | |
</span> | |
</div> |
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
```It seems like there are issues with the InnoDB storage engine and the inability to lock the `ibdata1` file. This can be a common problem when the MySQL server is not shut down properly, or there are permission issues. | |
Here are some steps you can take to resolve this issue: | |
1. **Stop MySQL Service:** | |
``` | |
sudo service mysql stop | |
``` | |
2. **Backup Existing Data:** |
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
{ | |
"countries": [ | |
{ | |
"name": "Afghanistan", | |
"code": "AF" | |
}, | |
{ | |
"name": "Åland Islands", | |
"code": "AX" | |
}, |
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
package api | |
import ( | |
"bytes" | |
"encoding/json" | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"net/http/httptest" | |
"reflect" |
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
func (order Order) StoreTransactions() interface{} { | |
config, _ := config.LoadConfig(".") | |
var payment Payment | |
query := `INSERT INTO payments(amount, reference,payment_method,created_at) | |
VALUES(@paymentAmount, @paymentReference, @paymentMethod, @paymentCreatedAt) return(id)` | |
trans := pgx.NamedArgs{ | |
"paymentAmount": order.Total, | |
"paymentReference": Random(20), | |
"paymentMethod": "Cash", | |
"paymentCreatedAt" : time.Now(), |