This file contains 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
# put line below in ~/.zshrc | |
# ZSH_THEME="my-theme" | |
PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )" | |
PROMPT+=' %{$fg[cyan]%}%d%{$reset_color%} $(git_prompt_info)' | |
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} " | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗" | |
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})" |
This file contains 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
{ | |
"Hà Nội": { | |
"Ba Đình": "I", | |
"Bắc Từ Liêm": "I", | |
"Cầu Giấy": "I", | |
"Đống Đa": "I", | |
"Hà Đông": "I", | |
"Hai Bà Trưng": "I", | |
"Hoàn Kiếm": "I", | |
"Hoàng Mai": "I", |
This file contains 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\Service\Doctrine; | |
use Doctrine\ORM\EntityManagerInterface; | |
use Generator; | |
class CollectionStreamer | |
{ | |
public static function stream(callable $fetch, int $chunkSize, callable $clear): Generator |
This file contains 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"/> | |
<title>khoahuy.com</title> | |
{% set isDarkTheme = app.request.cookies.get('defaultTheme') == 'dark' %} | |
{% set cssLightUrl = 'assets/cssLight.css' %} | |
{% set cssDarkUrl = 'assets/cssDark.css' %} | |
<link |