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
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) |
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
theano/scan_module/scan_perform.pyx in theano.scan_module.scan_perform.perform (/home/ubuntu/.theano/compiledir_Linux-4.4--generic-x86_64-with-debian-stretch-sid-x86_64-2.7.12-64/scan_perform/mod.cpp:4193)() | |
ValueError: dimension mismatch in args to gemm (64,256)x(256,256)->(1,256) | |
Apply node that caused the error: GpuGemm{no_inplace}(GpuSubtensor{::, int64::}.0, TensorConstant{0.20000000298}, <CudaNdarrayType(float32, matrix)>, lstm_7_U_o_copy[cuda], TensorConstant{0.20000000298}) | |
Toposort index: 5 | |
Inputs types: [CudaNdarrayType(float32, matrix), TensorType(float32, scalar), CudaNdarrayType(float32, matrix), CudaNdarrayType(float32, matrix), TensorType(float32, scalar)] | |
Inputs shapes: [(1, 256), (), (64, 256), (256, 256), ()] | |
Inputs strides: [(0, 1), (), (256, 1), (256, 1), ()] | |
Inputs values: ['not shown', array(0.20000000298023224, dtype=float32), 'not shown', 'not shown', array(0.20000000298023224, dtype=float32)] | |
Outputs clients: [[GpuElemwise{Composite{(clip((i0 + i1), i2, i3) * tanh(i4))},no_inplace}(C |
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'); | |
lib['./send']({ | |
message: { | |
to: [{ | |
email: "nima@halfmoon.ws", | |
name: "Nima Gardideh", | |
type: "to" | |
}], | |
headers: { |
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'); | |
lib['./subscribe']({ | |
email_address: 'email-address@domain.com', | |
first_name: 'Nima', | |
last_name: 'Gardideh' | |
}, (err) => { | |
// Handle error | |
}); |
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
# STDLIB_LIBRARY_TOKEN can be found on your dashboard | |
lib utils.log.read -t STDLIB_LIBRARY_TOKEN --service service-name |
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
module.exports = { | |
config: { | |
// default font size in pixels for all tabs | |
fontSize: 12, | |
// font family with optional fallbacks | |
fontFamily: 'Hack, Menlo, "DejaVu Sans Mono", Consolas, "Lucida Console", monospace', | |
// terminal cursor background color and opacity (hex, rgb, hsl, hsv, hwb or cmyk) | |
cursorColor: 'rgba(248,28,229,0.8)', |
OlderNewer