HTML
<iframe name="downloadIframe" id="downloadIframe" style="display: none"></iframe>
JAVASCRIPT
downloadTriggered() {
uri = '/api/v1/users?id=1',
downloadLink = document.createElement('a');
# Just add any subfolder in uploads path with a .gitkeep file in it to | |
# ignore all the files except the directory | |
# this doesnt work | |
public_html/uploads/**/* | |
!/**/.gitkeep | |
# instead, name it every directory that needs to ignore files | |
public_html/uploads/moduleSuperCool/* |
HTML
<iframe name="downloadIframe" id="downloadIframe" style="display: none"></iframe>
JAVASCRIPT
downloadTriggered() {
uri = '/api/v1/users?id=1',
downloadLink = document.createElement('a');
Two date inputs using daterangepicker and jQuery. If the first date gets an update, the second date will also suffer an update if the range of the first date is higher than the second one.
// this.dateRangePicker('#start_at_datepicker', '#start_at_form');
// this.dateRangePicker('#end_at_datepicker', '#end_at_form', true);
dateRangePicker(datepickerInputId, dateInputId, minDate = false) {
let input = document.querySelector(dateInputId);
#!/bin/bash | |
DB_HOST="" | |
DB_DATABASE="" | |
DB_USERNAME="" | |
DB_PASSWORD="" | |
read -r -d '' tableSizesQuery << EOF | |
SELECT | |
table_schema as 'Database', |