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 org.anirudh.redquark.curl; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.net.URL; | |
import java.net.URLConnection; | |
import org.apache.commons.codec.binary.Base64; | |
import org.json.JSONArray; |
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 org.anirudh.redquark.datastructures; | |
/** | |
* | |
* @author anirshar This class reverses a Linked List if head of the input list | |
* is given | |
*/ | |
public class ReverseLinkedList { | |
/** |
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 org.anirudh.redquark.eventing; | |
import java.util.Arrays; | |
import javax.jcr.Node; | |
import javax.jcr.RepositoryException; | |
import javax.jcr.Session; | |
import javax.jcr.observation.Event; | |
import javax.jcr.observation.EventIterator; | |
import javax.jcr.observation.EventListener; |
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 org.anirudh.redquark.serialization; | |
import java.io.File; | |
import java.io.FileInputStream; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
public class ReadSerFile { |
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
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"> | |
<channel> | |
<atom:link type="application/rss+xml" rel="self" | |
href="https://timesofindia.indiatimes.com/rssfeedstopstories.cms" /> | |
<title>Times of India</title> | |
<link>https://timesofindia.indiatimes.com</link> | |
<description> | |
The Times of India: Breaking news, views, reviews, cricket from across | |
India | |
</description> |
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
<dependency> | |
<groupId>com.squareup.retrofit2</groupId> | |
<artifactId>retrofit</artifactId> | |
<version>2.4.0</version> | |
</dependency> | |
<dependency> | |
<groupId>com.squareup.retrofit2</groupId> | |
<artifactId>converter-simplexml</artifactId> | |
<version>2.4.0</version> |
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 org.redquark.retrofit.xmlparser.model; | |
import org.simpleframework.xml.Element; | |
import org.simpleframework.xml.Root; | |
/** | |
* @author Anirudh Sharma | |
* | |
* The 'Article' class represents one single article and only stores the title, link and description of it. | |
*/ |
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 org.redquark.retrofit.xmlparser.model; | |
import java.util.List; | |
import org.simpleframework.xml.Element; | |
import org.simpleframework.xml.ElementList; | |
import org.simpleframework.xml.Path; |
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 org.redquark.retrofit.xmlparser.api; | |
import org.redquark.retrofit.xmlparser.model.Feed; | |
import retrofit2.Call; | |
import retrofit2.http.GET; | |
/** | |
* @author Anirudh Sharma | |
* |
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 org.redquark.retrofit.xmlparser.api; | |
import static org.redquark.retrofit.xmlparser.constants.AppConstants.URL; | |
import org.redquark.retrofit.xmlparser.model.Feed; | |
import retrofit2.Call; | |
import retrofit2.Callback; | |
import retrofit2.Response; | |
import retrofit2.Retrofit; |
OlderNewer