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 com.danilov.supermanga.core.repository; | |
import android.support.annotation.NonNull; | |
import android.support.annotation.Nullable; | |
import com.danilov.supermanga.core.http.ExtendedHttpClient; | |
import com.danilov.supermanga.core.util.IoUtils; | |
import org.apache.http.Header; | |
import org.apache.http.HttpResponse; |
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^="status"]:first-child{ | |
border-radius: 10px 0px 0px 0px; | |
-moz-border-radius: 10px 0px 0px 10px; | |
-webkit-border-radius: 10px 0px 0px 10px; | |
-ms-border-radius: 10px 0px 0px 10px; | |
} | |
[class="category_totals"]{ | |
border-bottom: 1px solid #B3B3B3; | |
border-right: 1px solid #E5E5E5; |
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
var id = setInterval(function () { | |
var val = jQuery(".metadata-display").text(); | |
val++; | |
val--; | |
console.log("Left: " + val); | |
if (val <= 0) { | |
clearInterval(id); | |
return; | |
} |
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
private int getScreenOrientation() { | |
final WindowManager wm = (WindowManager) getApplicationContext().getSystemService(Context.WINDOW_SERVICE); | |
int rotation = wm.getDefaultDisplay().getRotation(); | |
DisplayMetrics dm = new DisplayMetrics(); | |
wm.getDefaultDisplay().getMetrics(dm); | |
int width = dm.widthPixels; | |
int height = dm.heightPixels; | |
int orientation; | |
// if the device's natural orientation is portrait: |
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
<tiles:useAttribute id="jsList" name="jsList" classname="java.util.List"/> | |
<c:forEach items="${jsList}" var="jsRawLink"> | |
<c:set var="jsLink">${pageContext.request.contextPath}${jsRawLink}</c:set> | |
<script src="${jsLink}">void(0)</script> | |
</c:forEach> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE tiles-definitions PUBLIC | |
"-//Apache Software Foundation//DTD Tiles Configuration 2.1//EN" | |
"http://tiles.apache.org/dtds/tiles-config_2_1.dtd"> | |
<tiles-definitions> | |
<definition name="common" template="/WEB-INF/views/web/common/common-page-tile.jsp"> | |
<put-attribute name="title" value="" type="string"/> | |
<put-attribute name="header" type="definition" value="header"/> |
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
<dependencies> | |
<dependency> | |
<groupId>org.apache.hadoop</groupId> | |
<artifactId>hadoop-core</artifactId> | |
<version>1.2.1</version> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.mrunit</groupId> | |
<artifactId>mrunit</artifactId> | |
<version>1.0.0</version> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<com.danilov.mangareaderplus.core.view.ScrollViewParallax | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
app:isChild="true" | |
android:orientation="vertical" | |
app:viewToParallax="@+id/manga_cover" |
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 com.danilov.mangareaderplus.core.adapter; | |
import android.content.Context; | |
import android.graphics.Bitmap; | |
import android.net.Uri; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.ArrayAdapter; | |
import android.widget.ImageButton; |
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 com.danilov.mangareaderplus.core.database; | |
import android.database.Cursor; | |
import android.database.sqlite.SQLiteDatabase; | |
/** | |
* Created by Semyon Danilov on 04.07.2014. | |
*/ | |
public class DatabaseHelper { |