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 AsyncStateManager = require('../managers/asyncStateManager'); | |
var AsyncComponentMixin = { | |
componentWillMount: function AsyncComponentMixin_componentWillMount() { | |
var self = this; | |
var asyncStateGetter = this.constructor.getInitialAsyncState; | |
var asyncStateKey = asyncStateGetter.name; | |
// ====> AsyncStateManager should not be module / global, it should be tied to request | |
if ( AsyncStateManager.hasData(asyncStateKey) ) { |
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
diff --git a/main_good.js b/main_bad.js | |
index 22979ef..9521811 100644 | |
--- a/main_good.js | |
+++ b/main_bad.js | |
@@ -1054,124 +1054,4 @@ function hasOwnProperty(obj, prop) { | |
} | |
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) | |
-},{"./support/isBuffer":4,"_process":3,"inherits":2}],4:[function(require,module,exports){ | |
-module.exports = function isBuffer(arg) { |
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
function Data(a, b, c) { | |
this.a = a; | |
this.b = b; | |
this.c = c; | |
} | |
/* Statics */ | |
Data.getBufferDesc = function Data_getBufferDesc() { | |
// avoid new instance here, but i'm lazy. | |
return [ | |
{ type: 'UInt32BE', size: 32 }, |
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 MongoClient = require('mongodb').MongoClient | |
, assert = require('assert') | |
, cappedCollectionName = "capped_test"; | |
function capitalizeFirstLetter(string) { | |
return string.charAt(0).toUpperCase() + string.slice(1); | |
} | |
function createTailedCursor(db, callback) { |
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 hours = []; | |
totalMinutes = 0, | |
maxMinutes = 0; | |
minMinutes = Number.MAX_VALUE; | |
Array.prototype.forEach.call(document.querySelectorAll('table.atnd > tbody > tr'), function (tr) { | |
// if there is an error td, then don't count that row | |
var errorTd = tr.querySelectorAll('td.atnd_error'); | |
if (errorTd && errorTd.length > 0) { |
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
#include <stdio.h> | |
#include <sys/time.h> /* select */ | |
#include <sys/types.h> /* select */ | |
#include <unistd.h> /* select, exit */ | |
#include <stdlib.h> /* atexit */ | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <arpa/inet.h> | |
#include <pcap.h> |
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
/** | |
* Internal dependencies | |
*/ | |
import wpcom from 'lib/wp'; | |
import { | |
COMMENTS_RECEIVE, | |
COMMENTS_COUNT_RECEIVE, | |
COMMENTS_REQUEST, | |
COMMENTS_REQUEST_SUCCESS, | |
COMMENTS_REQUEST_FAILURE, |
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
// External dependencies | |
import React, { PropTypes } from 'react'; | |
import withStyles from 'isomorphic-style-loader/lib/withStyles'; | |
// Internal dependencies | |
import styles from './styles.scss'; | |
import Input from './input'; | |
const wrapInputChildRecursivly = refSaver => { | |
const recurser = child => { |
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
//////////// | |
/// | |
/// Delphin with RegExp x 131,568 ops/sec ±1.01% (85 runs sampled) | |
/// Delphin with for loop x 15,235 ops/sec ±0.72% (90 runs sampled) | |
/// Delphin with regex replace x 291,946 ops/sec ±1.08% (88 runs sampled) | |
/// Calypso x 323,048 ops/sec ±1.51% (87 runs sampled) | |
/// Fastest is Calypso | |
/// | |
//////////// |
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
{ | |
"name": "test", | |
"version": "1.0.0", | |
"description": "test", | |
"scripts": { | |
"build": "cross-env NODE_ENV=production webpack --env.prod=true --config webpack.config.js --progress --colors", | |
"start": "webpack-dev-server", | |
"prod": "cross-env NODE_ENV=production webpack-dev-server --env.prod=true", | |
"test": "cross-env NODE_PATH=.:app jest --maxWorkers=4", | |
"lint": "eslint ./src ./webpack.config.js -f table || true" |
OlderNewer