This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name '*.smali' \ | |
| grep -vE 'actionbarsherlock|watson|support' \ | |
| xargs grep -F const-string \ | |
| awk '{ print substr($0, index($0, "\"")) }' \ | |
| sort \ | |
| uniq |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Validate BSN according to http://nl.wikipedia.org/wiki/Burgerservicenummer */ | |
private boolean isValidBSN(int candidate) { | |
if (candidate <= 9999999 || candidate > 999999999) { | |
return false; | |
} | |
int sum = -1 * candidate % 10; | |
for (int multiplier = 2; candidate > 0; multiplier++) { | |
int val = (candidate /= 10) % 10; | |
sum += multiplier * val; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://www.apache.org/licenses/LICENSE-2.0 | |
package nl.fnord.junit; | |
import org.junit.runner.notification.RunNotifier; | |
import org.junit.runners.BlockJUnit4ClassRunner; | |
import org.junit.runners.model.FrameworkMethod; | |
import org.junit.runners.model.InitializationError; | |
/** | |
* A JUnit {@code Runner} that behaves like the default runner on Windows and |
NewerOlder