CSS Grid Masonry

Markets

Markets is a mobile app for fetching the markets information based on typed city or user’s location in a city. It uses the open API data from wo is markt (Where is market) project.

Here are some screenshot examples:

This app was a 6 hours challange I overcame. I retain the rights to the source code and all the related development. However, I cannot give futher documentation because it’s confidential and belongs to this great company I was working for. Feel free to check, change and use the code : )

Codebase in Gitlab repositories.

Multiple lines of code indented in WordPress Comments

If you want to show and mark up a single line of code in your HTML just use the code tags, however with multiple lines you need to surround the code tags with pre tags.

In WordPress comments, pre tags are not allowed by default (externally) no matter if you write them, WP will remove them. You need to add a hook to the end of your funtions.php file (Apparence/Theme Editor)


// Create function which allows more tags in comments
function allow_html_attributes_in_comment() {
  global $allowedtags;
  $allowedtags['pre'] = array('class'=>array());
}
 
// Add WordPress hook to use the function
add_action('init', 'allow_html_attributes_in_comment', 11);

This will let your users to happily post their indented code 🙂

From Datalist to Awesomplete

Temporal fix for apps using Datalist on Chrome/WebView with Android 8 or higher.

You can help and/or follow the reported bug here.

Inmobet

Sports bet forecasting system based on analytics from data and tipsters.

In early 2018, when I was still working in the Smart City sector, a couple of colleagues of mine came with the idea of creating a bet forecast system for sports. Mainly football, tennis and basketball matches.

I haven’t bet in my life, nor went to a casino but the idea was really good because they were regular bettors and the market was expanding. Just one year after, every simple corner in Europe got a betting house.

They were using MasxMenos and professional tipsters on Telegram to get sports match predictions (tips) and Bet360 to bet.

Our budget at that moment was quite small and neither of my colleagues knew how to code, so I spent all my spare time working after work on our project: INMOBET.

There wasn’t any API available, all the crucial information for the final bets were images on Telegram and Gmail (directly from tipsters)

So, to cope and offer valuable data to our users I created a neural network with Brain.js fed with Color Thief and Tesseract able to analyze and send to our Telegram Channels tips to  improve their betting.

It worked perfectly after a couple of iterations, we raised almost 400 users but then the betting house started to close bets in the market sooner than ever.

Bet360 was detecting many users betting on specific matches and with a high yield of earnings, so they decided to reduce the bet time dramatically. It was almost impossible to jump from our Telegram Channels to the Bet360 App, even though we spent just one second on posting what our users had to do to have a safe bet.

It was nice while it lasted. Inmobet worked for a couple of months until Bet360 cut our bet time. We decided to close the project 7 months after, aslo our competitors started having the same problem.

For my personal perspective, even though as I told you before I’m not a real fan of betting, I enjoyed the challenging coding experience. I learned a lot, it was my first time using: Brain.js, Tesseract.js, Mutation Observers and Telegram Bots : )

Codebase in GitLab repositories