Skip to content

Instantly share code, notes, and snippets.

View scilganon's full-sized avatar
🔥

Maxim Bulyhin scilganon

🔥
View GitHub Profile
0. level 0
0.1. HTML and CSS
0.1.1. htmlacademy.ru
0.1.2. codecademy.ru (HTML and CSS course)
0.1.3. project "Make a Website" on codecademy.com
0.1.4. take any psd template and try to implement them with knowledge gain.
0.2. Javascript
0.2.1. codecademy.com (javascript)
0.2.2. codeschool.com (javascript road trip and best practices)
0.2.3. learn.javascript.ru (going deeper in js)
@scilganon
scilganon / index.php
Created January 31, 2018 20:31
explanation of service container
<?php
class Battery {
/**
* Battery constructor.
* @param int $procent
*/
public function __construct(int $procent)
{
@scilganon
scilganon / test.js
Created December 7, 2018 15:40
Бросают два кубика. С какой вероятностью сумма чисел на них будет больше или равна 8?
let dataSet = new Set();
for(let i=1; i<=6; i++){
for(let j=1; j<=6; j++){
if(i+j>=8){
dataSet.add([i,j]);
}
}
}
@scilganon
scilganon / index.js
Created July 26, 2019 15:31
find polyndrome
function isPolyndrom(str){
const head = str.slice(0, Math.floor(str.length / 2));
const tail = Array.from(str.slice(Math.round(-str.length / 2), str.length)).reverse().join("");
console.log(head, tail);
return head === tail;
}
console.log(isPolyndrom("avva"));
@scilganon
scilganon / index.js
Last active January 8, 2020 21:05
Proxy http server to transform any img to webp
const http = require('http');
const imgmin = require('imagemin-webp');
const r = require('request');
const imgPath = 'http://cdn.pixabay.com/photo/2017/05/13/23/05/img-src-x-2310895_960_720.png';
const server = http.createServer((req, res) => {
const request = r.defaults({ encoding: null });
request.get(imgPath, async (err, iRes, body) => {
@scilganon
scilganon / gist:cc1569d71711837f4536a599e418c02b
Last active November 7, 2021 14:18
local build of onlyoffice
global deps:
- qmake
- gcc
- nodev14 + grunt
- python2
```
$> npm instal -g grunt http-server
#build for required deps (unknown for me) according to https://helpcenter.onlyoffice.com/ru/installation/docs-community-install-docker.aspx
@scilganon
scilganon / results.csv
Created February 27, 2022 14:46
пошук ресурсів за доменом `*.gov.ru`
id url
1 rosim.gov.ru
3 morflot.gov.ru
4 minpromtorg.gov.ru
5 favt.gov.ru
6 rospatent.gov.ru
7 regulation.gov.ru
8 fssp.gov.ru
9 roszdravnadzor.gov.ru
10 roskachestvo.gov.ru