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
import sys | |
import fileinput | |
import re | |
inputVersion = sys.argv[1] | |
print inputVersion | |
pattern = re.compile("\d*.\d*.\d*.\d*") | |
versionRegex = r'\s*const val versionNumber = "\d*\.\d*\.\d*\.\d*"' | |
versionPattern = re.compile(versionRegex, re.IGNORECASE) |
This file has been truncated, but you can view the full file.
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
VERSION 0.7 | |
FIELDS x y z rgb | |
SIZE 4 4 4 4 | |
TYPE F F F F | |
COUNT 1 1 1 1 | |
WIDTH 1 | |
HEIGHT 25791 | |
VIEWPOINT 0 0 0 1 0 0 0 | |
POINTS 25791 | |
ATA ascii |
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
class MyAwesomeApplication : Application() { | |
@Inject lateinit var appInitializers: AppInitializers | |
override fun onCreate() { | |
// ... | |
appInitializers.init(this) | |
// ... | |
} | |
} |
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
public int maxProfit(int[] a) { | |
if (a.length <= 2) { | |
return 0; | |
} | |
int currentMin = a[0]; | |
int currentMaxProfit = 0; | |
for (int i = 1; i < a.length; i++) { | |
if (a[i] < currentMin) { |
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
public class ToolbarActivity extends AppCompatActivity { | |
// Set the flags that fit your needs | |
private static final int ENABLED_SCROLL_BEHAVIOR = AppBarLayout.LayoutParams.SCROLL_FLAG_ENTER_ALWAYS | AppBarLayout.LayoutParams.SCROLL_FLAG_SCROLL; | |
private static final int DISABLED_SCROLL_BEHAVIOR = 0; | |
private static final int SCROLL_DOWN = 1; | |
//Injected via ButterKnife (http://jakewharton.github.io/butterknife) | |
@InjectView(R.id.toolbar) | |
Toolbar toolbar; | |
@InjectView(R.id.recyclerview) |
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
angular.module('myApp', ['ionic', 'myApp.services', 'myApp.controllers']) | |
.run(function(DB) { | |
DB.init(); | |
}); |
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
package carlos.munoz.sports.domain; | |
import android.content.Context; | |
import android.location.Address; | |
import android.location.Geocoder; | |
import java.io.IOException; | |
import java.util.List; | |
import java.util.Locale; |
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
/** | |
* Transforms circle coordinates into bounds for camera movement | |
* | |
* @param center | |
* @param latDistanceInMeters | |
* @param lngDistanceInMeters | |
* @return | |
*/ | |
public static LatLngBounds boundsWithCenterAndLatLngDistance(LatLng center, | |
float latDistanceInMeters, float lngDistanceInMeters) { |