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
final StringBuilder builder = new StringBuilder(); | |
final String pattern = "([\\d])\\w+"; | |
Pattern compiledPattern = Pattern.compile(pattern); | |
try { | |
Document doc = Jsoup.connect("https://itunes.apple.com/us/genre/podcasts/id26?mt=2").get(); | |
Elements links = doc.select("a.top-level-genre[href],.top-level-subgenres a[href]"); | |
for (Element link : links) { | |
String url = link.attr("href"); |
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
#pragma once | |
#include <fstream> | |
#include <string> | |
#include <vector> | |
#include <iterator> | |
class File | |
{ | |
public: | |
static bool Read( const std::string& file, std::vector< unsigned char >& data ) |
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 | |
include("/var/www/vhosts/xxxxxcom/httpdocs/PHPUtils/dbConfig.php"); | |
include("/var/www/vhosts/xxxxxcom/httpdocs/PHPUtils/DButils.php"); | |
// verifies receipt from iOS in-app purchase | |
// returns: | |
// 0 - if params missing | |
// 1 - if receipt is valid | |
// 2 - if invalid receipt, or invalid response from verification server | |
// or bundle/in-app IDs are incorrect |