Skip to content

Instantly share code, notes, and snippets.

View Cvetomird91's full-sized avatar

Cvetomir Denchev Cvetomird91

  • Plovdiv, Bulgaria
View GitHub Profile
<?php
function lcwords($str) {
$temp = '';
$words = explode(' ', $str);
foreach ($words as $word) {
$word = ' ' . lcfirst($word);
$temp .= $word;
#!/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;
#include<iostream>
#include<string>
#include<sstream>
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
int main() {
const char* name = "Exec";
#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[]) {
#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[]) {
#include <iostream>
#include <iterator>
#include <vector>
#include <string>
#include <fstream>
#include <set>
#include <map>
#include <boost/regex.hpp>
#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;
#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) {
#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 {
#include <stdio.h>
#include <stdlib.h>
struct Sizes {
int max_data;
int max_rows;
};
int main(int argc, char** argv) {