Skip to content

Instantly share code, notes, and snippets.

View chyngyz's full-sized avatar

Chyngyz Arystan chyngyz

View GitHub Profile
{% macro status(logosm=true, logolg=false, loggedin=false) %}
<div class="th-header th-header-white-wr">
<div class="container th-no-p">
<div class="th-header-white">
<div>
<a href="/" class="th-header__logo-sm {% if logosm %} th-header__logo-sm_visible {% endif %}">
<img src="images/logo-sm.png" srcset="images/logo-sm.png 1x, images/[email protected] 2x" alt="TravelHub Logo">
</a>
import { DOCUMENT } from '@angular/platform-browser';
import { Inject, Injectable } from '@angular/core';
@Injectable()
export class AppReadyService {
private doc: Document;
private isAppReady: boolean;
constructor(@Inject(DOCUMENT) doc: any) {
this.doc = doc;
@chyngyz
chyngyz / donut.py
Last active July 19, 2018 10:30
Matplotlib donut chart
import matplotlib.pyplot as plt
config_colors = {
'red': '#f05e5e',
'orange': '#ffcf62',
'green': '#8fc980',
'blue': '#695ff6',
'purple': '#413aa1',
'grey': '#84839c'
}