Skip to content

Instantly share code, notes, and snippets.

View jatindhankhar's full-sized avatar
🎯
Focusing

Jatin Dhankhar jatindhankhar

🎯
Focusing
View GitHub Profile
@jatindhankhar
jatindhankhar / jcurl.sh
Last active February 19, 2019 11:35 — forked from cirla/jcurl.sh
Bash function to curl an HTTP JSON API, print the headers, and then print the body formatted using jq
# Bash function to curl an HTTP JSON API, print the headers,
# and then print the body formatted using jq
#
# Example usage: jcurl https://api.github.com/users/cirla
#function jcurl() {
# disable progress bar and print headers to stdout
# response=$(curl -sD - $@)
# split response at the first empty line (ignoring whitespace)
@jatindhankhar
jatindhankhar / 0_reuse_code.js
Last active August 29, 2015 14:11
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console