Skip to content

Instantly share code, notes, and snippets.

View AlexGx's full-sized avatar

Alexander Gubarev AlexGx

View GitHub Profile
@AlexGx
AlexGx / mt-template.html
Last active August 31, 2018 09:13
Medcard template
<p><strong>Селезенка</strong><br /> Размер <span class="mt-dropdown" data-config='{"classes":{"mt-dropdown":1},"id":426,"required":true,"error":false,"placeholder":"выпадающий список","value":0,"group":"","items":["не увеличена", "увеличена"]}' data-mt-widget="true"> </span><span class="mt-dropdown" data-config='{"classes":{"mt-dropdown":1},"id":574,"required":false,"error":false,"placeholder":"выпадающий список","value":0,"group":"","items":["выступает за край", "не выступает за край реберной дуги"]}' data-mt-widget="true"> </span><br /> Контуры <span class="mt-dropdown" data-config='{"classes":{"mt-dropdown":1},"id":729,"required":true,"error":false,"placeholder":"выпадающий список","value":0,"group":"","items":["ровные", "край острый"]}' data-mt-widget="true"> </span><br /> Структура <span class="mt-dropdown" data-config='{"classes":{"mt-dropdown":1},"id":1265,"required":true,"error":false,"placeholder":"выпадающий список","value":0,"group":"","items":["", "неоднородная", "однородная"]}' data-mt-widget="tr

Delete Local Branch $ git branch -d branch_name

or

$ git branch -D branch_name # force delete (for ex non-merged)

Delete Remote Branch $ git push <remote_name> --delete <branch_name>

<table border="1">
<tbody>
<tr>
<td>BLD (кровь)</td>
<td>{{#combobox}}-,+-,+,++,+++{{/combobox}}</td>
<td>{{#combobox}}отрицательно,(RBC/&micro;L){{/combobox}}&nbsp;{{{textfield}}}</td>
</tr>
<tr>
<td>BIL (биллирубин)</td>
<td>{{#combobox}}-,+-,+,++,+++{{/combobox}}</td>
SELECT engine,
count(*) as TABLES,
concat(round(sum(table_rows)/1000000,2),'M') rows,
concat(round(sum(data_length)/(1024*1024*1024),2),'G') DATA,
concat(round(sum(index_length)/(1024*1024*1024),2),'G') idx,
concat(round(sum(data_length+index_length)/(1024*1024*1024),2),'G') total_size,
round(sum(index_length)/sum(data_length),2) idxfrac
FROM information_schema.TABLES
WHERE table_schema not in ('mysql', 'performance_schema', 'information_schema')
GROUP BY engine
<?php
/**
* @param bool $short
* @return string
*/
public function getContent($short = true)
{
$body = $this->site_content;
// TODO: remove shortend

brew install mozjpeg

make symlink from mozjpeg bin folder

sudo ln -s /usr/local/Cellar/mozjpeg/3.1/bin/jpegtran /usr/local/bin/mozjpeg

open /usr/local/etc/nginx
sudo discoveryutil mdnsflushcache

sudo npm cache clean -f sudo npm install -g n sudo n stable

<?php
namespace common\components\chrome;
use DOMDocument;
/**
* Class ChromeAutoUpdate.
*/
class ChromeAutoUpdate