Skip to content

Instantly share code, notes, and snippets.

View khex's full-sized avatar

Oleksii Kholiavko khex

View GitHub Profile
/**
* en.wikipedia.org/wiki/Fisher–Yates_shuffle
*/
function shuffleArray(array) {
var answ = array[0];
var answIndex, tempValue, rndIndex;
var currIndex = (array[4] === '-') ? 4 : 5;
// While there remain elements to shuffle...
while (0 !== currIndex) {
/**
* en.wikipedia.org/wiki/Fisher–Yates_shuffle
*/
function shuffleArray(textList) {
var array = textList.split(';')
var answ = array[0];
var answIndex, tempValue, rndIndex;
var currIndex = (array[4] === '-') ? 4 : 5;
// While there remain elements to shuffle...
package com.tasks6.rle;
public class Application {
public static void main( String[] args ) {
if (args != null) {
// порожній рядок або початок з пробілу >> ""
if (args[0].equal("") || args[0].charAt(0) == ' ') {
System.out.println("");
}
@khex
khex / seo.service.ts
Created April 8, 2017 13:19 — forked from kaaboeld/seo.service.ts
Example working service for adding meta tags to <head/> for angular2-universal. Based on http://blog.devcross.net/2016/04/17/angular-2-universal-seo-friendly-website/
import {Injectable,Inject,ElementRef, Renderer} from '@angular/core';
//import { DOCUMENT } from '@angular/platform/common_dom';
import {DOCUMENT} from '@angular/platform-browser';
@Injectable()
export class SeoService {
private _r: Renderer;
private _el: ElementRef;
private _document: any;
/**

to-do

  • update <met>
  • update LD+JSON
  • unite create & edit controllers
  • write algorithm fro updating Schema

Unit Test for MongooseSchema

  • read-one.component & read-one.template
  • read-many.component & read-many.template
  • crup.component & crup.template

1. Клініка та стадії наркозу

  1. Класифікація видів наркозу. (1)
  2. Клініка ефірного наркозу. (5)
  3. Клініка севофлюранового наркозу. (11)
  4. Основні показники інгаляційних анестетиків: MAС, MACawake, MACst, MAC-BAR. (16)
  5. Стадії наркозу. (31)
  6. Тотальна в/в анестезія: технологія проведення, переваги та недоліки. (36)
  7. Премедикація: її ціль та засоби її досягнення. (61)

2. Фармакологія

function y = generateSin(a, f, ph, L, Fs)
% my code goes here
if length(a) ~= length(f)
error('Different sizes of "a" and "f"');
end
if length(a) ~= length(ph)
error('Different sizes of "a" and "ph"');
end
const ROUTES: Route[] = [
{ path: 'home', component: HomeComponent },
{ path: '', redirectTo: 'home', pathMatch: 'full' },
{ path: 'redirectMe', redirectTo: 'home', pathMatch: 'full' },
{ path: 'users/:userid', component: UserComponent,
children: [
{ path: 'notes', component: NotesComponent },
{ path: 'notes/:noteid', component: NoteComponent}
]
},
@khex
khex / json-schema.js
Created December 25, 2019 10:32 — forked from JamesMessinger/json-schema.js
Using JSON Schema in Postman
// Define the JSON Schema
const customerSchema = {
"required": ["id"],
"properties": {
"id": {
"type": "integer",
"minimum": 100,
"maximum": 1000
},
"name": {

What is semantic release

Semantic Release is an Open-Source Software tool for automatically versioning your software with Semantic Versions based on your Git commit messages. It then releases/deploys the new version to the channel(s) you specify, for example, GitHub Release, NPM, PyPI, etc.

By default, Semantic Release expects commits to be in the Conventional Commit format. In its simplest form, this looks like feat: add feature X or fix: fix bug Y that perform Minor and Patch version bumps respectively.

Since Semantic Release also generates release notes and maintains a CHANGELOG.md for you, >adding quality git commit messages — including a detailed body — becomes increasingly valuable.