Coder Social home page Coder Social logo

categorizr's Introduction

Hello

I'm Brett Jankord, a Lead Software Engineer living in the Midwest that enjoys working on Front-End Development, ReactJS/VueJS, Design Systems, Accessibility, Responsive Web Design, CSS, SCSS, NodeJS/ExpressJS, and open source software.

I also like to spend time riding my bike through the woods, grilling food while enjoying a cold drink, and playing video games.

You can find me on Twitter: @bjankord

๐Ÿ“ˆ GitHub Stats


bjankord's GitHub Stats bjankord's GitHub Streak

categorizr's People

Contributors

bjankord avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

categorizr's Issues

Why mess with sessions at all?

The assumption this script makes is that all sites use PHP's native sessions which isn't true. The script does not need any session code to cache the result.

function categorizr(){
    static $result = NULL;

    if($result) return $result;

    ....
    (run checks here)
    ....

    $result = 'desktop';
    ....

   return $result;
}

Then if someone happens to want the category saved in the session they can just do this:

$_SESSION['category'] = categorizr();

Needs Capabilities

It would be helpful if device classification could include basic capabilities matrix like "touch, speech, gesture, localstorage, canvas, svg" etc similar to DeviceAtlas. A plugin path for this or a method to add to the $device object for these would be helpful. I realize that is waaay out of scope for now, but a path to this would be a tremendous addition.

Repo still active?

Hey,

I'm just wondering is this project still active? There's been no activity on it in the last few months and am wondering how up-to-date the regex are.

Thanks,
Pat

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.