Skip to content

Instantly share code, notes, and snippets.

View jezhou's full-sized avatar
🚀
*typing away*

Jesse Zhou jezhou

🚀
*typing away*
View GitHub Profile
@jezhou
jezhou / gh-reviews-fzf.sh
Last active April 4, 2021 02:41
FZF Scripts
# Allows you to view your reviews checks on Github via FZF
# Dependencies: github cli
gh pr list -S "review-requested:jezhou" |\
fzf --preview 'echo {} | head -n1 | cut -f1 | xargs gh pr view | fold -w 80 -s' --height=50% --reverse --bind 'ctrl-r:refresh-preview' --header '(ctrl-r) Refresh status' |\
head -n1 |\
cut -f1 |\
xargs gh pr view -w
@jezhou
jezhou / resume.json
Last active March 29, 2020 22:04
JSON Resume
{
"basics": {
"name": "Jesse Zhou",
"label": "Software Engineer",
"picture": "",
"email": "jesse.cy.zhou@gmail.com",
"website": "dev.jezhou.com",
"profiles": [{
"network": "Twitter",
"username": "john",
@jezhou
jezhou / super.glsl
Last active February 6, 2017 02:46
cse 131 project 2 test case
int main(int x) {
int x = 0;
int x[10];
(x+x) = vec4(0.55);
1 < 2 ? 1 : 2 = x;
if (x[10] = i) {
break;
} else {
switch (x = 0) {
case 1:
@jezhou
jezhou / .vimrc
Created November 5, 2016 05:58
Jesse's Vimrc
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer:
" Amir Salihefendic
" http://amix.dk - amix@amix.dk
"
" Version:
" 5.0 - 29/05/12 15:43:36
"
" Blog_post:
" http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github
@jezhou
jezhou / .bashrc
Created July 20, 2016 22:38
Jesse's dope .bashrc (in progress)
# Git branch in prompt. Always know which branch you are on ʕノ•ᴥ•ʔノ ︵ ┻━┻
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\u@\h \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
@jezhou
jezhou / sieve.js
Created March 21, 2016 10:54
Sieve of Eratosthenes, raw javascript implementation
n = 10;
var nlist = [];
// Generate the list of desired numbers
for(var i = 2; i < n; i++){
nlist.push(true);
}
// Mark each non-prime as false
@jezhou
jezhou / trello.gs
Created September 26, 2015 09:46
Create Trello Card from Google Forms using Google Apps Script
// Fire off this function in the script editor to enable.
function init() {
var triggers = ScriptApp.getProjectTriggers();
var form = FormApp.getActiveForm();
// Delete all triggers before making a brand new one.
for(var i in triggers) {
ScriptApp.deleteTrigger(triggers[i]);
}