Skip to content

Instantly share code, notes, and snippets.

View andrewzah's full-sized avatar
🍊
currently working on Korean educational tools.

Andrew Zah andrewzah

🍊
currently working on Korean educational tools.
View GitHub Profile
MDMP�� ���_�� 8�*Dp����8`�gG� �gGd@?gG2�CgGk�CgG�PV gG�W
gG(�
8�����p`�`r����0u�0��Џ�0��(��,�iH���,�0�&����W���Wj�(�����kk)�XMP������kk)�iH��;����,���,��O�����}k)���,���,�ek&�����}k)������,�Q��,�Q��%�e�E'����W�������P���+�������Q��W���pG�W������JP�fKU�hRR�gPQ�iL��oX��`����������,
 ���� �����o)�o)�`��� ����o)��o)�\��� ���� ����^ӑ�Zӑ�����0������,���������x��W���W�s������<������W @�� ��W��� ��W��t�������������٨�����W ��.������W ���W  @�� ��Wx��Wl���,���������x��W���W٨�����W ���W @�� ��W��� ��W��`�ߜ���\�x������WFFU]d��W@���ny���,���������x��W���W���x��Wԥ�W�
�WD@�� ��W���y���,���������x��W���W���x��W���W���W<@�� ��W��� ��W��4�������������٨�����W<٨��DH���W<,���������x��W���Wx��W���W @�� ��W��� ��W��ԥ������������٨��,���������x��W���W���W ���W @�� ��W��� ��W��D�������������٨�����W ���WI ��W���W ,���������x��W���W�������W @�� ��W��� ��W��Ԧ������������٨�����W J���W ���W  ��W����x��W̦��������H���%
name of display: :0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
GLX_ARB_context_flush_control, GLX_ARB_create_context,
GLX_ARB_create_context_no_error, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
GLX_ARB_multisample, GLX_EXT_buffer_age,
MDMP�� P1�_�� 8�:Dp����8`�gG� �gGk@OgG2�SgGk�SgG�Xf gG�g
gG(@�
h��=0���`�`��=`���0��0�=Џ�0�8j�9��X�0��l��@`���
5XT`��{ 5X@�j��`���
5X�e��@h
5X1������0���-��`��|�]XXq��l��`�����W���W����De������&�����W���W�U��De��+y��l���X�X(2��@2��������X���X@2��t1���������W���W��%�r�Z�lEll��Ĥ X�� X(2��Ϝ���� Xl��9��l��Ĥ X�� Xl���=���� X9:��l��l��η���� X3��L2��3��l������`�Xj�9l� X���W�V��@2��������Xj�90�����W������W���W���W������X����2��j�9������%�3�����������X��%�Ϝ���X+�������V�X� ���3����%��X���%�3����%���%���3��3����%�j�9��%�0��0A4X0A4Xj"�Ю��k�"�XMPΑ�Ү��k�"�j�9������%���%�ͯ�ۮ��}�"���%���%�e��ۮ��}�"�������%�Q��%�Q���e�� ��?X�4��5��P4��+����5��Q��X5��0X��4���JP�fKU�hRR�gPQ�iL��oX��`�����9����%
 ���� ������"��"�`;�� :����"���"�\;�� ���� ����^���Z����;�����5��,}��`��c���b:Xc:X�
@andrewzah
andrewzah / file.ly
Created September 3, 2020 12:29
lilypond example
\version "2.19.83"
\header {
title = "Pentatonic Doubling Exercise"
instrument = "Bass Guitar"
}
harmonies = \chordmode {
f1
}
pub async fn spawn_heavy<F, R>(func: F) -> Result<R, oneshot::error::RecvError>
where
R: Send + 'static,
F: FnOnce() -> R + Send + 'static,
{
let (tx, rx) = oneshot::channel();
rayon::spawn_fifo(|| {
if tx.send(func()).is_err() {
debug!("Unable to return heavy result.");
}
use std::{mem, pin::Pin};
use futures::task::{Context, Poll};
use futures::future::poll_fn;
use pin_project_lite::pin_project;
use tokio::io::AsyncBufRead;
use crate::utils::misc::sha256sum_data;
use futures::Stream;
@andrewzah
andrewzah / redis_cheatsheet.bash
Created July 15, 2020 17:37 — forked from LeCoupa/redis_cheatsheet.bash
Redis Cheatsheet - Basic Commands You Must Know --> UPDATED VERSION --> https://github.com/LeCoupa/awesome-cheatsheets
# Redis Cheatsheet
# All the commands you need to know
redis-server /path/redis.conf # start redis with the related configuration file
redis-cli # opens a redis prompt
# Strings.
@andrewzah
andrewzah / fetch.sh
Last active April 29, 2020 21:43
fetch youtube videos with youtube-dl
#!/usr/bin/env bash
# author: Andrew Zah <zah@andrewzah.com>
# version: v1.0
FETCH_DATA=./data
FETCH_OUTPUT=./output
FETCH_LOGS=./data/logs
general_args=" \
@andrewzah
andrewzah / error.rs
Last active February 22, 2020 18:27
rust hyper with error handling idea
use std::{fmt, error::Error, result};
pub type AppResult<T> = result::Result<T, AppError>;
#[derive(Debug)]
pub enum AppError {
Generic(String),
Http(http::Error),
Hyper(hyper::error::Error),
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCste7MJ1V5Pttt77ztuybnvh3vohAPjlsqI/w1Uat3jjMdR1RHYgNcoRhUF9ajETi6o0zcVhwHldquCNLeBlSGVrL9eRjG0kmhXV47EjqIibP5AerL1vhQ+qhQkC29yYmUL9eqqsxeVxf+EEoclDB5XT200+4AJJ6vqXcsB6WGltGYXpoZ3wlqSJg4oZJuDR4APqzYxK6MKbQTltsD9BgxpkC7CNIK9Gi364rYNUCr6pOlOinVUpEMh1vQ6WWGfBzTPV28DdIb1Xj4uoytWleXc4VbJ8lsPrPFiObYRaSrZ73dEZRk8xMKUNq4w0Hyt1QqoRTs6zMahmT6UMxP4oW6PyxoSkfAJoy6lis1EKn5dEQ3WNXAlBW3pf3+fAtldtcgM74k2nn6sHUCQa+PpPJLaS6KzjEewWkt3FyxBjk0V+dYllp5+TtDQ+xipgFH2cKPbFLIvD7spapzbDvtJqurx16syChmuVMpQgcW/F9/w1RVqH+r+0uIBZPvaf+YGcg6KSiGqR5kWg5HLRjRwq1jikohO+xGR0l4/nShjbSOtbbggL/7eU1f4K/zPvoWbr9cX6zfCyk8SfI7QegRKz4IJgrcgfbxWhDPmoQGr0naOcm8nWl4CrNGkd6o2PPK//WD1Yl8psK7sVYqegg1vlL2b8A+Zspem+kuOaDZlbdSkQ== zah@andrewzah.com