This file contains hidden or 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 {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; | |
/** |
This file contains hidden or 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
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(""); | |
} |
This file contains hidden or 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
/** | |
* 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... |
This file contains hidden or 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
/** | |
* 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) { |
NewerOlder