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
{ | |
"Albums": [ | |
{ | |
"AlbumID": 1, | |
"AlbumTitle": "Harmony Test Album", | |
"AlbumDesc": "test album description", | |
"Archived": false, | |
"DateCreated": "2019-08-06T14:22:05.000+00:00", | |
"DatedEdited": "2019-08-06T14:22:05.000+00:00", | |
"AlbumPhotos": [ |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>d3.js v5 Realtime Line chart</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.9.2/d3.min.js"></script> | |
<link rel="stylesheet" href="style.css" > | |
</head> |
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
var input = "javascript is awesome"; | |
var output = ""; | |
for(var i=0; i < input.length; i++){ | |
if(input[i] === "a"){ | |
output += "4"; | |
}else if(input[i] === "e"){ | |
output += "3"; | |
} |
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
var alphabet = "абвгдеёжзийклмнопрстуфхцчшщъыьэюя"; | |
var max_num_of_symbols = 6; | |
var num_of_symbols = 0; | |
var randomString = ""; | |
console.log("alphabet.length = ", alphabet.length); | |
while(num_of_symbols < max_num_of_symbols){ | |
var index = Math.floor(Math.random() * alphabet.length); | |
randomString += alphabet[index]; // randomString = randomString + alphabet[index]; |
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
var animals = ["Кот", "Рыба", "Лемур", "Комодский варан"] | |
for(var i=0; i < animals.length; i++) { | |
animals[i] = animals[i] + " - прекрасное животное"; | |
} | |
console.log(animals); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>d3.js v5 Multiformat Date axis</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.9.2/d3.min.js"></script> | |
<link rel="stylesheet" href="style.css" > | |
</head> |
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
<template> | |
<div v-on="$listeners" > | |
<div style="width:100%; height:100%;" ref="mapview"></div> | |
<slot></slot> | |
</div> | |
</template> | |
<script lang="ts"> | |
import * as maptalks from 'maptalks'; | |
import mapboxgl from 'mapbox-gl'; |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset='utf-8' /> | |
<title>Simple Bar chart</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/5.8.0/d3.min.js" charset="utf-8"></script> | |
<style> | |
body { | |
font-family: "Arial", sans-serif; |
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
@extends('layouts.single_column') | |
@push('head') | |
@if( ! $view->isYoutubeAvailable()) | |
<meta name="robots" content="noindex"> | |
@endif | |
@endpush | |
@push('styles') |
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
<?php | |
namespace App; | |
use Illuminate\Database\Eloquent\Model; | |
class Station extends Model | |
{ | |
const TYPE_LARGEST = 0; // важнейшие станции | |
const TYPE_MAIN = 1; // главные, узловые, конечные станции |