Skip to content

Instantly share code, notes, and snippets.

@revanmj
revanmj / surface_keyboard.ahk
Last active May 28, 2020 15:25
Surface Keyboard Fn keys mappings to Fxx for specific apps
View surface_keyboard.ahk
#IfWinActive ahk_exe studio64.exe ; Android Studio
$Volume_Down::F2
$Volume_Up::F3
Return
#IfWinActive ahk_exe chrome.exe ; Google Chrome
$<#F21::Send ^+i ; Settings button (F12) to Chromium dev tools
Return
@revanmj
revanmj / SimpleJavaHttp.java
Last active September 25, 2016 18:41
Simple class for HTTP requests in Java and Android
View SimpleJavaHttp.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.HttpURLConnection;
import java.net.URL;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;