Skip to content

Instantly share code, notes, and snippets.

@dagvany
dagvany / app.component.ts
Last active September 13, 2022 18:26
Angular Error Handling POC
import { Component, OnDestroy, OnInit } from '@angular/core';
import { ConsoleLogger } from './utils/consoleLogger';
.
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: [ './app.component.scss' ]
})
export class AppComponent implements OnInit, OnDestroy {
% 4 kép
\begin{figure}[!ht]
\centering
\includegraphics[width=67mm, keepaspectratio]{example-image-a}\hspace{1cm}
\includegraphics[width=67mm, keepaspectratio]{example-image-b}\vspace{5mm}
\includegraphics[width=67mm, keepaspectratio]{example-image-c}\hspace{1cm}
\includegraphics[width=67mm, keepaspectratio]{example-image-c}
\caption{Több képfájl beillesztése esetén térközöket is érdemes használni.}
\label{fig:4_kep_egymas_mellett}
\end{figure}
@dagvany
dagvany / ninja_nerd_list_downloader.py
Last active May 23, 2020 09:24
Ninja Nerd Science yt playlist downloader
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import os
import subprocess
ytLists = {
'Hematology': 'https://www.youtube.com/watch?v=yF22BfXEO5g&list=PLTF9h-T1TcJh9T57G0nls2uGPzzHKMxxh',
'Biochemistry': 'https://www.youtube.com/watch?v=jJUoQMLMV2E&list=PLTF9h-T1TcJhcNo9M1VFXz6rMKT6CM_wd',
'Cardiovascular Physiology': 'https://www.youtube.com/watch?v=jU9w6w8LwqM&list=PLTF9h-T1TcJhp-1zjtApt2lVbQ2JHkY7b',
'Immunology': 'https://www.youtube.com/watch?v=LArxUakFsFs&list=PLTF9h-T1TcJj4AOPCxGxOUTH0IVmaH7_8&index=2&t=0s',
# my favorit prompt look
# [time] [user] [computer] [pwd] [git branch]
if [ "$color_prompt" = yes ]; then
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
git_branch () { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'; }
HOST=' \033[02;36m\h';
TIME='\033[01;31m\t \e[0;37m'
LOCATION=' \033[01;32m`pwd | sed "s#\(/[^/]\{1,\}/[^/]\{1,\}/[^/]\{1,\}/\).*\(/[^/]\{1,\}/[^/]\{1,\}\)/\{0,1\}#\1_\2#g"`'
BRANCH=' \033[00;33m$(git_branch)\[\033[00m\n\$ '
PS1=$TIME$USER$HOST$LOCATION$BRANCH