Map [1]
Operation | Time Complexity |
---|---|
Access | O(log n) |
Search | O(log n) |
Insertion | O(n) for <= 32 elements, O(log n) for > 32 elements [2] |
Deletion | O(n) for <= 32 elements, O(log n) for > 32 elements |
export default (request) => { | |
const xhr = require('xhr'); | |
const query = require('codec/query_string'); | |
const apiKey = 'YOUR_API_KEY'; | |
const apiUrl = 'http://api.giphy.com/v1/gifs/search'; | |
const regex = /\/gif\s\(([^.?]*)\)|\/gif\s\w+/g; | |
let textToAnalyze = request.message.text; |
Built with blockbuilder.org
forked from enjalot's block: interviewing.io: mean lines
forked from enjalot's block: interviewing.io: mean vs stddev
This table was created in 2015 so may be quite outdated today.
Feature | Meteor Solution | Alternative Solutions | Description |
---|---|---|---|
Live DB Sync | [livequery][lq] ([mongo-oplog]), [ddp] | RethinkDB, Redis, ShareDB, [npm:mongo-oplog], [firebase], etc. | Push DB updates to client/server. |
Latency Compensation, Optimistic UI | [minimongo][mm] | [RethinkDB][lcr], [mWater/minimongo] (fork, not ws but http, browserify) | Imitate successful db query on client before it is done. |
Isomorphic Code | [isobuild] & isopacks | browserify | Write one code for server/client/mobile. |
Isomorphic Packaging | [isobuild], atmosphere | No more separate packages for server & client. Get bower + npm + mobile. |
These are the Kickstarter Engineering and Data role definitions for both teams.
// Includes functions for exporting active sheet or all sheets as JSON object (also Python object syntax compatible). | |
// Tweak the makePrettyJSON_ function to customize what kind of JSON to export. | |
var FORMAT_ONELINE = 'One-line'; | |
var FORMAT_MULTILINE = 'Multi-line'; | |
var FORMAT_PRETTY = 'Pretty'; | |
var LANGUAGE_JS = 'JavaScript'; | |
var LANGUAGE_PYTHON = 'Python'; |
#WDI Week 9 Notes
##Sunday
###Code School: The Anatomy of Backbone.js
Source:
// performs the specified action on each item in the array | |
Array.prototype.forEach = function (fnAction) { | |
var l = this.length; | |
for (var i = 0; i < l; ++i) { | |
fnAction(this[i]); | |
} | |
} | |
// returns an array containing the items matching the filter | |
Array.prototype.where = function (fnFilter) { |
This entire guide is based on an old version of Homebrew/Node and no longer applies. It was only ever intended to fix a specific error message which has since been fixed. I've kept it here for historical purposes, but it should no longer be used. Homebrew maintainers have fixed things and the options mentioned don't exist and won't work.
I still believe it is better to manually install npm separately since having a generic package manager maintain another package manager is a bad idea, but the instructions below don't explain how to do that.
Installing node through Homebrew can cause problems with npm for globally installed packages. To fix it quickly, use the solution below. An explanation is also included at the end of this document.