This file contains 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
android { | |
signingConfigs { | |
release | |
} | |
buildTypes { | |
release { | |
signingConfig signingConfigs.release | |
} |
This file contains 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
public class PerfectNumberFinder { | |
public static boolean isPerect(int number) { | |
// get factors | |
List<Integer> factors = new ArrayList<Integer>(); | |
factors.add(1); | |
factors.add(number); | |
for (int i = 2; i < Matj.sqrt(number); i++) { | |
if (number % i == 0) { | |
factors.add(i); | |
if (number / i != i) { |
This file contains 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
/* | |
* Copyright (c) 2009-2017, Farooq Mela | |
* All rights reserved. | |
* | |
* Redistribution and use in source and binary forms, with or without | |
* modification, are permitted provided that the following conditions are met: | |
* | |
* 1. Redistributions of source code must retain the above copyright | |
* notice, this list of conditions and the following disclaimer. | |
* 2. Redistributions in binary form must reproduce the above copyright |
This file contains 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
# Open Terminal and enter, | |
# Replace 2 with a number between 0 and 3. | |
# 0: Light | |
# 1: Standard | |
# 2: Medium | |
# 3: Bold | |
defaults -currentHost write -globalDomain AppleFontSmoothing -int 2 |