Skip to content

Instantly share code, notes, and snippets.

View davidwesst's full-sized avatar

David Wesst davidwesst

View GitHub Profile
@MichaelCurrin
MichaelCurrin / README.md
Last active September 9, 2024 23:53
GitHub GraphQL - Get files in a repository

Get GitHub Files

Get the metadata and content of all files in a given GitHub repo using the GraphQL API

You might want to get a tree summary of files in a repo without downloading the repo, or maybe you want to lookup the contents of a file again without download the whole repo.

The approach here is to query data from GitHub using the Github V4 GraphQL API.

About the query

@lkurylo
lkurylo / vimrc
Last active October 19, 2018 21:23
"disable compatibility mode with Vi
set nocompatible
filetype off
set rtp+=~/vimfiles/bundle/Vundle.vim
call vundle#begin('~/vimfiles/bundle')
"Plugin 'VundleVim/Vundle.vim'
Plugin 'bling/vim-airline'
@JamieMason
JamieMason / is_installed.sh
Last active February 17, 2024 10:12
Check if a program exists from a bash script.Thanks to twitter.com/joshnesbitt and twitter.com/mheap for the help with detecting npm packages.
#!/bin/bash
# Functions ==============================================
# return 1 if global command line program installed, else 0
# example
# echo "node: $(program_is_installed node)"
function program_is_installed {
# set to 1 initially
local return_=1