Skip to content

Instantly share code, notes, and snippets.

View maratismailov's full-sized avatar

Marat Ismailov maratismailov

  • Central-Asian Institute for applied geosciences
View GitHub Profile
create or replace view view_training_planned_reported_data_export as
select `tbl_flagship_activity_training`.`training_id` AS `training_id`,
`tbl_flagship_activity_training`.`training_type` AS `training_type`,
json_unquote(
json_extract(
`tbl_flagship_activity_training`.`training_info`,
'$.tr_type'
)
) AS `tr_type`,
`tbl_flagship_activity_training`.`status` AS `training_status`,
create definer = root@`%` view view_training_planned_reported_data_export as
select `crpcoreix`.`tbl_flagship_activity_training`.`training_id` AS `training_id`,
`crpcoreix`.`tbl_flagship_activity_training`.`training_type` AS `training_type`,
json_unquote(json_extract(`crpcoreix`.`tbl_flagship_activity_training`.`training_info`,
'$.tr_type')) AS `tr_type`,
`crpcoreix`.`tbl_flagship_activity_training`.`training_participant` AS `training_participant_id`,
`crpcoreix`.`tbl_flagship_activity_training`.`status` AS `training_status`,
`crpcoreix`.`tbl_flagship_activity_training_report`.`status` AS `report_status`,
`tbl_user_new
<figure>
<picture>
<source srcset="/images/uploads/dimitry-anikin-R77kt9VjPjA-unsplash-small.webp 320w,
/images/uploads/dimitry-anikin-R77kt9VjPjA-unsplash-medium.webp 640w,
/images/uploads/dimitry-anikin-R77kt9VjPjA-unsplash.webp 1000w"
sizes="(max-width: calc(1000px + 2 * 2.4rem)) calc(100vw - 2 * 2.4rem), 1000px" type="image/webp">
<img src="/images/uploads/dimitry-anikin-R77kt9VjPjA-unsplash.jpg" data-src="auto" srcset="/images/uploads/dimitry-anikin-R77kt9VjPjA-unsplash-small.jpg 320w,
/images/uploads/dimitry-anikin-R77kt9VjPjA-unsplash-medium.jpg 640w,
/images/uploads/dimitry-anikin-R77kt9VjPjA-unsplash.jpg 1000w" data-srcset="/images/uploads/dimitry-anikin-R77kt9VjPjA-unsplash-small.jpg 320w,
/images/uploads/dimitry-anikin-R77kt9VjPjA-unsplash-medium.jpg 640w,
import numpy as np
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
import matplotlib.pyplot as plt
import io
@app.route('/drawplot')
def drawplotinput():
# форма загрузки файла
return render_template('input.html')
<tr v-for="(cropcomp, index) in cropcomposition" :key="index" :value="cropcomp">
<td colspan="2" style="width: 70%">
<select style="width: 90%" v-model="cropcomposition[index].woodspecies_id">
<option value="">{{dict.choose}}</option>
<option
v-for="compose in journal.composition"
:value="compose.woodspecies_id"
:key="compose.woodspecies_id"
>{{compose.woodname}}</option>
</select>
@maratismailov
maratismailov / GAMIT-GLOBK installation guide.md
Last active July 2, 2018 09:27
GAMIT/GLOBK installation guide for Ubuntu 16.04.4 (64 bit)

GAMIT/GLOBK Installation guide for Ubuntu 16.04.4 (64 bit)

Preparatory actions for Windows users

VirtualBox (only if you have CPU with Intel VT-x support)

Downlad VirtualBox, follow the setup instructions. Then click Machine => Add, select the image you received from instructors, then start it. For username enter 'user7', for password - 'user7' (without quotes).

PuTTY (if you have CPU without Intel VT-x support)

@maratismailov
maratismailov / README.md
Created February 8, 2018 00:54 — forked from joyrexus/README.md
Vanilla JS equivalents of jQuery methods

Sans jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})