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
<?php | |
function lcwords($str) { | |
$temp = ''; | |
$words = explode(' ', $str); | |
foreach ($words as $word) { | |
$word = ' ' . lcfirst($word); | |
$temp .= $word; |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Mojo::DOM; | |
use Mojo::UserAgent; | |
my $root_url = 'http://index-of.co.uk/'; | |
my $user_agent = 'Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5'; | |
my $ua = Mojo::UserAgent->new; |
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
#include<iostream> | |
#include<string> | |
#include<sstream> | |
#include<stdio.h> | |
#include<string.h> | |
#include<stdlib.h> | |
int main() { | |
const char* name = "Exec"; |
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
#include <iostream> | |
#include <fstream> | |
#include <vector> | |
#include <set> | |
#include <boost/regex.hpp> | |
#include <boost/algorithm/string/find.hpp> | |
const boost::regex frequency_line("^Matches found.*$"); | |
int main(int argc, char* argv[]) { |
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
#include <iostream> | |
#include <iterator> | |
#include <vector> | |
#include <string> | |
#include <boost/regex.hpp> | |
#include <boost/algorithm/string.hpp> | |
#include <boost/algorithm/string/join.hpp> | |
int main (int argc, char* argv[]) { |
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
#include <iostream> | |
#include <iterator> | |
#include <vector> | |
#include <string> | |
#include <fstream> | |
#include <set> | |
#include <map> | |
#include <boost/regex.hpp> |
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
#include <string> | |
#include <iostream> | |
#include <boost/regex.hpp> | |
#include <boost/date_time/gregorian/gregorian.hpp> | |
int main(int argc, char** argv) { | |
boost::regex date(R"((\d{2})\.(\d{2})\.(\d{4}))"); | |
boost::smatch match; |
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
#include <string> | |
#include <sstream> | |
#include <vector> | |
#include <algorithm> | |
#include <boost/regex.hpp> | |
#include <boost/date_time/gregorian/gregorian.hpp> | |
int main (int argc, char** argv) { |
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
#include <stdio.h> | |
#include <assert.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <string.h> | |
#define MAX_DATA 512 | |
#define MAX_ROWS 100 | |
struct Address { |
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
#include <stdio.h> | |
#include <stdlib.h> | |
struct Sizes { | |
int max_data; | |
int max_rows; | |
}; | |
int main(int argc, char** argv) { |