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
# coding: utf8 | |
## based on this article: http://qiita.com/mokemokechicken/items/937a82cfdc31e9a6ca12 | |
import numpy as np | |
from keras.models import Sequential | |
from keras.engine.topology import Input, Container | |
from keras.engine.training import Model | |
from keras.layers.core import Dense |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
<?if(isset(Yii::$app->request->cookies['newNumber'])){?> | |
(8332) <?echo Yii::$app->request->cookies['newNumber'];?> - директор<br> | |
(8332) <?echo Yii::$app->request->cookies['newNumber'];?> - бухгалтерия<br> | |
(8332) <?echo Yii::$app->request->cookies['newNumber'];?> - производственный отдел<br> | |
(8332) 428-000 - услуги спецавтотехники | |
<?}else{?> | |
<?= $config['contacts_phone1'] ?><br> | |
<?= $config['contacts_phone2'] ?><br> | |
<?= $config['contacts_phone3'] ?><br> | |
(8332) 428-000 - услуги спецавтотехники |
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
/********************************************* | |
* | |
* Strategy | |
* | |
**********************************************/ | |
const weapons = { | |
sword: { | |
'name': 'Excalibur', | |
'damage': 20 |
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
1.laze require => | |
Ленивая загрузка модулей - при загрузке отсутствующего модуля, lazyequire загрузит его | |
gulp_tasks/config/index.js - лежит основной конфиг проета |
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
$('element').bind('DOMMouseScroll mousewheel', function(e){ | |
event.preventDefault(); | |
if(e.originalEvent.wheelDelta > 0 || e.originalEvent.detail < 0) { | |
//Actions | |
} | |
else{ | |
//Actions | |
} | |
}); |
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
//Prototype inheritance | |
//=================================================================== | |
function Machine (power) { | |
var self = this; | |
self._enabled = false; | |
this._power = power; | |
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
//Coffie machine constructor | |
//=================================================================== | |
function CoffeMachine(power, capacity){ | |
//Define private vars //Сохранение контекста для обрращения к нему из внутренних функций | |
const WATER_HEAT_CAPACITY = 4200; | |
const POWER = power; | |
var timerId; | |
NewerOlder