Skip to content

Instantly share code, notes, and snippets.

View sudhirkhanger's full-sized avatar
🎯
Focusing

Sudhir Singh Khanger sudhirkhanger

🎯
Focusing
View GitHub Profile
@sudhirkhanger
sudhirkhanger / jerbs.md
Created September 1, 2016 07:24 — forked from avinassh/jerbs.md
@sudhirkhanger
sudhirkhanger / gist:097039353ad807daecb9e8dc0f694027
Created May 20, 2016 12:17 — forked from anonymous/gist:1c04bf2423579e9d2dcd
Udacity Sunshine Networking call code
// These two need to be declared outside the try/catch
// so that they can be closed in the finally block.
HttpURLConnection urlConnection = null;
BufferedReader reader = null;
// Will contain the raw JSON response as a string.
String forecastJsonStr = null;
try {
// Construct the URL for the OpenWeatherMap query
@sudhirkhanger
sudhirkhanger / Autostart.sh
Created October 22, 2015 11:11 — forked from iiska/Autostart.sh
Using KWallet and ksshaskpass with ssh-agent
#! /bin/bash
# Put this in ~/.kde/Autostart/ssh-agent.sh
export SSH_ASKPASS=/usr/bin/ksshaskpass
/usr/bin/ssh-add