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
def getVersionName = { getVersionProps()['appVersionName'] } | |
def getVersionProps() { | |
def versionPropsFile = file('gradle.properties') | |
if (!versionPropsFile.exists()) { | |
versionPropsFile.createNewFile() | |
} | |
def versionProps = new Properties() | |
versionProps.load(new FileInputStream(versionPropsFile)) | |
return versionProps |
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
apply from: 'deps.gradle' | |
// ... | |
dependencies { | |
compile supportLibs | |
compile rxJavaLibs | |
compile retrofitLibs | |
compile okHttpLibs |
This file has been truncated, but you can view the full file.
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
[ | |
{ | |
"_id": "58acbe62d2cc022efd9f1d32", | |
"index": 0, | |
"guid": "d6fffee6-9f05-43e0-83fa-7b5f27ac7e95", | |
"isActive": true, | |
"balance": "$2,360.24", | |
"picture": "http://placehold.it/32x32", | |
"age": 34, | |
"eyeColor": "green", |
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
import android.app.Activity; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.KeyEvent; | |
import android.view.View; | |
import com.quinny898.library.persistentsearch.SearchBox; | |
/** |
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
<?php | |
// API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'YOUR_SERVER_API_KEY' ); | |
$registrationIds = array("YOUR_DEVICE_TOKEN"); | |
// prep the bundle | |
$msg = array | |
( |
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
package controllers; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
import org.springframework.web.bind.annotation.RequestMethod; | |
import java.util.Map; | |
/** | |
* Created by user on 06.04.2016. |
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
package com.melikovivan.yummy; | |
import java.util.List; | |
import android.app.Activity; | |
import android.content.Context; | |
import android.graphics.BitmapFactory; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.View.OnClickListener; |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<quotes> | |
<quote> | |
<id>1</id> | |
<authorName>Н. Фоменко</authorName> | |
<text>порой мне кажется, что я | |
делаю какое-то дерьмо, | |
но когда я вижу, что делают | |
другие, то я чувствую себя | |
гением</text> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<quotes> | |
<quote> | |
<authorName>Н. Фоменко</authorName> | |
<text>порой мне кажется, что я | |
делаю какое-то дерьмо, | |
но когда я вижу, что делают | |
другие, то я чувствую себя | |
гением</text> | |
</quote> |
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
if (rect.Contains(Position)) // position - это координаты подростка | |
{ | |
if (Position.Y < (rect.y + rect.height) && Math.Abs(Position.X -rect.x) < 30) | |
Velocity.X *= -1; | |
else if (Position.X > rect.x && Math.Abs(Position.Y - (rect.y + rect.height)) < 30) | |
Velocity.Y *= -1; | |
} |
NewerOlder