You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Austin
amcdnl
Crafter of Software • Lover of JavaScript & Goldendoodles • CEO/Founder @goodcodeus
Create a statistics engine leveraging MongoDB and C#. The engine should accept some basic query parameters from a Web API and return the appropriate statistical analysis.
Goals
Evaluate existing database architecture and provide better use cases
Provide direction on statistical analysis leveraging MongoDB Aggregation Framework or Map Reduce
Google Glass is easily one of the most antipated gadget releases of 2014. Its Google's first shot at wearable tech and it makes 'smart watches' look outdated. A few lucky individuals have had an oppertunity to get ahold of a pair over the past year or so; I was luckily enough to get invited. There are hundreds of reviews on the web about all the different aspects of the google glass but I want to take a moment to focus on the security implications of the gadget.
On a daily basis, I deal with cyber security engineering, prevention, and protection. As I wear the glass, it raises quite a bit questions in regards to security.
You and your privacy
Everyone today already takes millions of pictures on a daily basis with their smartphone, but its not easy to snap one of someone's face without them noticing. In a recent update, google added the ability to take a picture with a simple wink; next you can tweet that to the world by saying 'Ok Google, Share to Twitter
This file contains 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
RequireJS is a great module loading tool and it has great optimization techniques. When you combine RequireJS with GruntJS you get some really powerful tools; but the AngularJS optimization is still somewhat lacking.
A few key tools you can leverage to make your AngularJS apps blazing fast and clean are:
ng-min
When writing AngularJS controllers/services/directives you often end up with a HUGE constructor to make the code optimizer safe. I ended up with something like this quite a bit:
Often I update a value like size that updates quite a bit before it is finalized. If I do a AngularJS $watch on that object my update is firing quite a bit and depending on what you are doing might be a performance concern.
This service allows you to debounce those events so you can effectively throttle. Inspired by Ben Alman's jQuery plugin.
Service > throttle.js
define(['angular', 'app'], function (angular, app) {
This file contains 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
This file contains 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
This file contains 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
This file contains 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