Giter Club home page Giter Club logo

public-storm's Introduction

An IoT passionate Lead Product Manager from France... Well yes I'm not a developper. :-)

mathcoll

  • ๐Ÿ”ญ Iโ€™m currently working on t6 IoT mostly implementing Maching Learning stuff made from tensorflowJs
  • ๐Ÿ”ญ Iโ€™m currently working on t6 IoT Arduino library

Connect with me:

mathcoll mathcoll mathieulory

Languages and Tools:

android arduino chartjs d3js express html5 invision javascript linux mysql nodejs php postman pug tensorflow

Support:

mathcoll



mathcoll

ย mathcoll

mathcoll

public-storm's People

Contributors

mathcoll avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

public-storm's Issues

[Insight] Database queries should use parameter binding

in Trunk/www/plugins/public_storm/_plugin.php, line 179

If provided by the user, the value of implode(',', $liste) may allow an SQL injection attack. Avoid concatenating parameters to SQL query strings, and use parameter binding instead.

        $storms = array();
        foreach( users::getMyFavorites() as $favorite ) {
            array_push($liste, $favorite["storm_id"]);
        }
        //print_r($favorites);
        $q = "SELECT s.* FROM storms s WHERE s.storm_id IN(".implode(",", $liste).") ORDER BY s.date DESC";
        //print $q;
        $storms = self::$db->q2($q, "public_storms.db", array());
        //print_r($storms);
        for($n=0; $n<sizeOf($storms); $n++)
        {

Posted from SensioLabsInsight

Css bug in the admin panel

In the admin panel, in the "Configuration" tab, when it lists all the custom parameters, the i18n plugins have a param called "languages" witch the html ID has conflict with the top-right box (for choosing user current language)

[Insight] Usage of a function in loops should be avoided

in Trunk/www/plugins/public_storm/_plugin.php, line 159

This loop uses a function. To avoid the overhead of executing the function n times, you should precalculate it before the loop.

        {
            $datas = array(':user_id' => $user_id);
        }
        //print $q;
        $storms = self::$db->q2($q, "public_storms.db", $datas);
        for($n=0; $n<sizeOf($storms); $n++)
        {
            $author = self::getStormAuthor($storms[$n]['user_id']);
            $storms[$n]['author'] = $author['prenom']." ".$author['nom'];
            $storms[$n]['author_login'] = $author['login'];
            $storms[$n]['url'] = self::getUrl($storms[$n]['permaname']);

Posted from SensioLabsInsight

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.