Skip to content

Instantly share code, notes, and snippets.

View nikolayemrikh's full-sized avatar

Nikolay Emrikh nikolayemrikh

View GitHub Profile
static start() {
const welcomeScreen = this.showWelcome();
Loader.loadData()
.then(() => welcomeScreen.unlock());
}
static showWelcome() {
const welcomeScreen = new WelcomeScreen();
showView(welcomeScreen.element);
return welcomeScreen;
const audioData = [
{
artist: `Kevin MacLeod`,
name: `Long Stroll`,
image: `https://yt3.ggpht.com/-fkDeGauT7Co/AAAAAAAAAAI/AAAAAAAAAAA/dkF5ZKkrxRo/s900-c-k-no-mo-rj-c0xffffff/photo.jpg`,
src: `https://www.youtube.com/audiolibrary_download?vid=91624fdc22fc54ed`,
genre: `Jazz`
},
{
artist: `Jingle Punks`,
@nikolayemrikh
nikolayemrikh / rm-fingers.js
Last active February 28, 2018 12:10
Удалить пальцы
try {
const arr = [
hand1,
hand2,
hand3,
hand4,
hand5,
hand6,
hand7,
hand8,

#Развертывание moodle ##создать контейнер LAMP в с9

git clone -b MOODLE_31_STABLE git://git.moodle.org/moodle.git /var/www/html
sudo chmod -R 777 /var/www/moodle
sudo mkdir /var/moodledata
sudo chown -R www-data /var/moodledata
sudo chmod -R 777 /var/moodledata
var getCssRule = function (className, prop) {
var doc = HtmlacademyTask.getPreviewDocument();
for (var i = 0; i < doc.styleSheets.length; i++) {
var sheet = doc.styleSheets[i];
if (sheet.href) {
continue;
}
//Точность эпсилон = 0.01
var epsilon = Math.pow(10, -2);
lambda = Math.pow(10, -3);
var f = function(x) {
var result;
//result = (2-x)*Math.exp(x+1)-1;
result = Math.pow(x,3)-x+Math.exp(-x);
return result;
}
//Выбираем отрезок, на котором функция унимодальна
//Точность эпсилон = 0.01
var epsilon = Math.pow(10, -2);
lambda = Math.pow(10, -3);
var f = function(x) {
var result;
//Функция, подлежащая вычислени.
result = (2-x)*Math.exp(x+1)-1;
return result;
}
//Выбираем отрезок, на котором функция унимодальна