Snipt.net is closing on December 31st, 2016

For more information, please visit this blog post.

snipt

Ctrl+h for KB shortcuts

Text only

size screen Android

1
2
3
DisplayMetrics displayMetrics = getResources().getDisplayMetrics();
        screen_width = displayMetrics.widthPixels;
        screen_height = displayMetrics.heightPixels;
https://snipt.net/embed/601212f5431a1821c3ac9b31f5155745/
https://snipt.net/raw/601212f5431a1821c3ac9b31f5155745/
601212f5431a1821c3ac9b31f5155745
text
Text only
3
2016-12-06T17:40:35
True
False
False
Jan 26, 2016 at 11:20 PM
/api/public/snipt/143857/
size-screen-android
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>DisplayMetrics displayMetrics = getResources().getDisplayMetrics(); </span><span id="L-2"><a name="L-2"></a> screen_width = displayMetrics.widthPixels; </span><span id="L-3"><a name="L-3"></a> screen_height = displayMetrics.heightPixels; </span></pre></div> </td></tr></table>
"size screen", Android

Text only

How to Extract keyhash from jsk file for Facebook

1
2
3
Simply run this command in ther terminal in Mac OSx

keytool -exportcert -alias esso -keystore /pathToKey/releaseKey.jks |openssl sha1 -binary | openssl base64
https://snipt.net/embed/2528a449847ba162c7800bdb24f58599/
https://snipt.net/raw/2528a449847ba162c7800bdb24f58599/
2528a449847ba162c7800bdb24f58599
text
Text only
5
2016-12-02T16:44:58
True
False
False
Dec 18, 2013 at 10:51 AM
/api/public/snipt/101353/
how-to-extract-keyhash-from-jsk-file-for-facebook
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Simply run this command in ther terminal in Mac OSx </span><span id="L-2"><a name="L-2"></a> </span><span id="L-3"><a name="L-3"></a>keytool -exportcert -alias esso -keystore /pathToKey/releaseKey.jks |openssl sha1 -binary | openssl base64 </span></pre></div> </td></tr></table>
Android, Facebook, HashKey
Copyrighted, illegal, or inappropriate content? Email [email protected].