break in src/managers/LogManager.js:53
51
52
53 debugger;
54 rollbar.handleError(err, res);
55 if (res) {
debug> repl
Press Ctrl + C to leave debug repl
> err
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
const lib = require('lib'); | |
const async = require('async'); | |
const _ = require('lodash'); | |
var pages = [ | |
'https://techcrunch.com/', | |
...(_.range(2, 100).map((i) => "https://techcrunch.com/page/" + i)) | |
]; | |
async.mapLimit(pages, 10, (pageUrl, 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
from keras.models import Sequential | |
from keras.layers.core import Flatten, Dense, Dropout, Lambda | |
from keras.layers.normalization import BatchNormalization | |
from keras.layers.convolutional import Convolution2D, MaxPooling2D, ZeroPadding2D | |
from keras.optimizers import SGD, RMSprop, Adam | |
from theano.sandbox import cuda | |
from keras.preprocessing import image | |
cuda.use('gpu') | |
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
require 'ruby-progressbar' | |
base_recipes = BaseRecipe.where(:draft => false) | |
pbar = ProgressBar.create :total => base_recipes.count | |
url_but_not_image = [] | |
no_image_and_no_url = [] | |
def image_exists(url) |
NewerOlder