App | App Store size | App | App Store size |
---|---|---|---|
41.6mb | Trello | 14.27mb | |
21.55mb | TED | 8.79mb | |
12.86mb | Stack Exchange | 8.2mb | |
Chrome | 54.39mb | Audible | 35.75mb |
firefox | 39.33mb | Xero | 6.65mb |
Uber | 18.3mb | Google Music | 18.54mb |
- https://medium.com/@101/how-to-make-users-think-your-app-loads-faster-24052fe307bf#.us0cipry8
- http://www.webperformancetoday.com/2014/07/16/eight-tricks-improve-perceived-web-performance/
- https://en.wikipedia.org/wiki/Perceived_performance
- http://blog.teamtreehouse.com/perceived-performance
- http://www.mobify.com/blog/beginners-guide-to-perceived-performance/
- http://www.sitepoint.com/the-perception-of-performance/
- http://blog.codinghorror.com/actual-performance-perceived-performance/
- https://wiki.mozilla.org/Perceived_Performance
- http://www.stevesouders.com/blog/2012/12/03/the-perception-of-speed/
- http://codebetter.com/howarddierking/2009/12/12/understanding-perceived-performance/
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
/* | |
======= REMOVE THESE COMMENTS ========= | |
```sh | |
// eslint | |
npm install -g eslint | |
npm install -g babel-eslint | |
npm install -g eslint-plugin-react | |
``` | |
You'll want to setup an `.eslintrc` file in your root directoey, and if you'd like to use the one defined here, you'll need to install the airbnb eslint config locally as it extends it. |
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
// on the server | |
Meteor.publish('comments', function(id) { | |
check(id, String); | |
var sub = this, userHandles = [], commentsHandle = null, userCursor; | |
// send over the author for the comment | |
var publishCommentAuthor = function publishCommentAuthor(authorId) { | |
userCursor = Meteor.users.find({ _id: authorId}); | |
userHandles[authorId] = | |
Mongo.Collection._publishCursor(userCursor, sub, 'users'); |
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
// HashTags | |
var simpleHash = /#\w+/g; | |
var complexHash = /\B#\w*[a-zA-Z]+\w*/g; // this seems uneccessary | |
// eg : | |
var input = "this is a #string with #tags to be #extracted"; | |
var matches = input.match(sinpleHash); | |
var matches = input.match(complexHash); | |
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
/* Prepared for autoForm select options */ | |
countryList = [ | |
{label: "Afghanistan", value: "AF"}, | |
{label: "Åland Islands", value: "AX"}, | |
{label: "Albania", value: "AL"}, | |
{label: "Algeria", value: "DZ"}, | |
{label: "American Samoa", value: "AS"}, | |
{label: "AndorrA", value: "AD"}, | |
{label: "Angola", value: "AO"}, | |
{label: "Anguilla", value: "AI"}, |
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
/* | |
Rotation Ciphers | |
*/ | |
var RotCipher = (function() { | |
var alpha = "abcdefghijklmnopqrstuvwxyz"; | |
var obj = { | |
result : "", |
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
//as a function | |
function shuffleFischerYates(arr) { | |
var i = arr.length, j, temp; | |
while (--i > 0) { | |
j = Math.floor(Math.random()*(i+1)); | |
temp = arr[j]; | |
arr[j] = arr[i]; | |
arr[i] = temp; | |
} | |
} |
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
// intentionally create a global | |
Deck = function Deck() { | |
// TODO : make appropriate vars settable | |
var Suits = ['c', 'h', 'd', 's'], | |
Pack = [], | |
cardsOut = [], | |
cardCount = 52, | |
rv = 6, // riffleVariance | |
cv = 10, // cutVariance |
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
var range = function(start, end, step) { | |
var range = []; | |
var typeofStart = typeof start; | |
var typeofEnd = typeof end; | |
if (step === 0) { | |
throw TypeError("Step cannot be zero."); | |
} | |
if (typeofStart == "undefined" || typeofEnd == "undefined") { |