This file contains hidden or 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
# 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 |
This file contains hidden or 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
{ | |
"basics": { | |
"name": "Jesse Zhou", | |
"label": "Software Engineer", | |
"picture": "", | |
"email": "[email protected]", | |
"website": "dev.jezhou.com", | |
"profiles": [{ | |
"network": "Twitter", | |
"username": "john", |
This file contains hidden or 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
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: |
This file contains hidden or 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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Maintainer: | |
" Amir Salihefendic | |
" http://amix.dk - [email protected] | |
" | |
" Version: | |
" 5.0 - 29/05/12 15:43:36 | |
" | |
" Blog_post: | |
" http://amix.dk/blog/post/19691#The-ultimate-Vim-configuration-on-Github |
This file contains hidden or 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
# 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\] $ " |
This file contains hidden or 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
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 |
This file contains hidden or 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
// 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]); | |
} |