(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| MessageDigest digest = null; | |
| try { | |
| digest = MessageDigest.getInstance("SHA-1"); | |
| } catch (NoSuchAlgorithmException e) { | |
| e.printStackTrace(); | |
| } | |
| byte[] apkBytes = new byte[0]; | |
| try { | |
| apkBytes = IOUtils.toByteArray(getAssets().open("app-debug.apk")); |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
I have moved this over to the Tech Interview Cheat Sheet Repo and has been expanded and even has code challenges you can run and practice against!
\
| # begin build properties | |
| # autogenerated by buildinfo.sh | |
| ro.build.id=JSS15J | |
| ro.build.display.id=JSS15J.I9505XXUEML1 | |
| ro.build.version.incremental=I9505XXUEML1 | |
| ro.build.version.sdk=18 | |
| ro.build.version.codename=REL | |
| ro.build.version.release=4.3 | |
| ro.build.date=Tue Dec 10 14:28:08 KST 2013 | |
| ro.build.date.utc=1386653288 |
| <?php | |
| function getimg($url, $path, $overwrite = false) { | |
| $imageName= basename($url); | |
| if(file_exists($path.$imageName) && !$overwrite) { | |
| return $path.$imageName; | |
| } | |
| $headers[] = 'Accept: image/gif, image/x-bitmap, image/jpeg, image/pjpeg'; | |
| $headers[] = 'Connection: Keep-Alive'; |
| import java.net.UnknownHostException; | |
| import org.mongodb.morphia.Datastore; | |
| import org.mongodb.morphia.Morphia; | |
| import com.mongodb.MongoClient; | |
| public class MongoConnectionManager { | |
| private static final MongoConnectionManager INSTANCE = new MongoConnectionManager(); |
| #!/bin/bash | |
| # Script adb+ | |
| # Usage | |
| # You can run any command adb provides on all your currently connected devices | |
| # ./adb+ <command> is the equivalent of ./adb -s <serial number> <command> | |
| # | |
| # Examples | |
| # ./adb+ version | |
| # ./adb+ install apidemo.apk | |
| # ./adb+ uninstall com.example.android.apis |
At the top of the file there should be a short introduction and/ or overview that explains what the project is. This description should match descriptions added for package managers (Gemspec, package.json, etc.)
Show what the library does as concisely as possible, developers should be able to figure out how your project solves their problem by looking at the code example. Make sure the API you are showing off is obvious, and that your code is short and concise.
| var data = "do shash'owania"; | |
| var crypto = require('crypto'); | |
| crypto.createHash('md5').update(data).digest("hex"); |