Skip to content

Instantly share code, notes, and snippets.

@descrip
descrip / .conkyrc
Created September 16, 2018 22:27
that one .conkyrc
background yes
use_xft yes
xftfont Sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent yes
own_window_type desktop
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
h = int(input())
for i in range(1, h+1, 2):
print(i * "*" + (2*h - 2*i) * " " + i * "*")
for i in range(h-2, 0, -2):
print(i * "*" + (2*h - 2*i) * " " + i * "*")
h = int(input())
x = 1
for i in range(h):
print(x * "*" + (2*h - 2*x) * " " + x * "*")
if i >= h // 2:
x -= 2
else:
x += 2
@descrip
descrip / .vimrc
Last active December 27, 2021 03:33
vimrc
set nocompatible
call plug#begin()
Plug 'tpope/vim-vinegar'
Plug 'mbbill/undotree'
Plug 'itchyny/lightline.vim'
Plug 'rust-lang/rust.vim'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'christoomey/vim-tmux-navigator'
@descrip
descrip / gist:d6cd883b812ec6a761d498e38171e50d
Created August 17, 2016 16:08
Wit.ai API Reponse Time Test
Total time: 717870
Average time: 7178.7
Error count: 0
All times:
10041
1123
16876
839
8814
1540
@descrip
descrip / gist:0271a502f55968e331bd001fc9731797
Created August 17, 2016 16:07
Wit.ai API Reponse Time Test, three second delay
Total time: 827370
Average time: 8273.7
Error count: 0
All times:
15702
1335
2347
2092
15439
18501
Tasks:
dmoj: vmss15c1p4 (Frank and Roads)
- You can use Dijkstra, but just BFS is fine.
dmoj: ccc15s4 (Convex Hull)
- Dijkstra. You might not get this, Leo will show the answer next week.
import java.util.*;
import java.io.*;
@descrip
descrip / vimrc
Created December 30, 2014 23:48
2014/12/30 vimrc
" jeffrey zhao vimrc
" mostly copied from https://gist.github.com/pthrasher/3933522
set nocompatible
filetype off
" handle vundle
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()