This file contains 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
import React from 'react'; | |
import {render} from 'react-dom'; | |
import $ from 'jquery'; | |
class ApiConnectors extends React.Component { | |
constructor (props){ | |
super(props); | |
this.state = { | |
apiParams: props.apiParams, | |
apiUrl: props.apiUrl, |
This file contains 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
-- using multiple subqueries to ensure no mistakes | |
SELECT | |
average2.weekly as week, | |
ROUND(AVG(average2.backlog),1) as backlog | |
FROM | |
( | |
SELECT | |
SUM(average.is_backlog) as backlog, | |
average.weekly, | |
average.current_day |
This file contains 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
SELECT | |
a.order_id as order_id, | |
a.creation_time, | |
a.finalize_time, | |
a.c_user_id, | |
a.ug_id, | |
a.sales_type, | |
a.payment_type, | |
a.delivery_date, | |
a.ag_type_name, |
This file contains 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
import matplotlib.pyplot as plt | |
import numpy as np | |
plt.figure() | |
languages =['Python', 'SQL', 'Java', 'C++', 'JavaScript'] | |
pos = np.arange(len(languages)) | |
popularity = [56, 39, 34, 34, 29] | |
# change the bar colors to be less bright blue |
This file contains 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
# update reps | |
sudo apt-get update | |
# installation of the key software | |
# SOFTWARE | |
# server monitoring tool | |
sudo apt-get install glances | |
# just invoke glances to monitor the system | |
# FIREWALL |
This file contains 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
SELECT | |
TO_JSON(ARRAY_AGG(a)) | |
FROM ( | |
SELECT | |
raw_data.*, | |
'http://spark-in.me/post/'||raw_data.slug as disqus_article_url, | |
(SELECT to_json(array_agg(e)) FROM ( | |
SELECT DISTINCT | |
at.\"id\" as tag_id, | |
at.title as tag_title, |
This file contains 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
.find('[name="articleText"]') | |
.summernote({ | |
ace: { | |
aceTheme: 'ace/theme/dawn', | |
aceMode: 'c_cpp', | |
aceLineHeight: '32px', | |
aceFontSize: '16px', | |
aceModeSelectorLabel: 'select your language', | |
aceCodeInputAreaLabel: 'input your code', | |
aceCodeSubmitBtnLabel: 'Insert', |
This file contains 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
<p></p><p><img src="https://pics.spark-in.me/upload/7b09411ab7b91bc8da7e79c763311795.jpg" style="width: 700px;"></p><p><span style="font-style: italic;">Как всегда надо начать с заманчивой картинки, но не пояснять ее смысл!</span></p><hr><p></p><p style="text-align: justify; ">Пару дней назад ко мне обратился далекий знакомый, мол у нас политесы в компании и мы не можем никак выбрать направление развития. Ситуация типичная - <span style="font-weight: bold;">лебедь, рак и щука</span> и надо бы очень быстро <span style="font-weight: bold;">проанализировать сайты его конкурентов</span>, вот держи картинку со списком самых крупных компаний в этой сфере. Оказалось, что конкуренты из сферы форекса. Это меня смутило, но не остановило. Я посмотрел на их сайты (а, забегая вперед, некоторые из них просто огромны - миллионы страниц) и тут у меня родилась гениальная идея.</p><p style="text-align: justify; ">Я занимался ей пару суток почти без остановки и накопал относительно интересные результаты, которыми и хочу поделит |
This file contains 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
from keras.models import Model | |
from keras.layers import Input, concatenate, Conv2D, MaxPooling2D, Activation, UpSampling2D, BatchNormalization,multiply | |
from keras.optimizers import RMSprop | |
from model.losses import bce_dice_loss, dice_loss, weighted_bce_dice_loss, weighted_dice_loss, dice_coeff | |
import params | |
orig_width = 1918 | |
orig_height = 1280 |
OlderNewer