Skip to content

Instantly share code, notes, and snippets.

Working from home

Théo Szymkowiak Theo-

Working from home
Block or report user

Report or block Theo-

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View webhookcare-demo.js
var webhookcare = require('webhookcare')('<API KEY>')
var payload = {
result: 'ok!'
webhookcare.send('') // Provide the url
.header('X-Secret-Header', 'a secret header') // Add headers (optional)
.json(payload) // provide a json payload (optional)
.end() // Send the request
View dispatch-demo.js
var dispatch = require('dispatch');
json: 'payload'
.then((result) => {
// Webhook successfully delivered
}, (error) => {
// Retrying later
from keras.preprocessing import sequence
max_review_length = 1600
X_train = sequence.pad_sequences(X_train, maxlen=max_review_length)
X_test = sequence.pad_sequences(X_test, maxlen=max_review_length)
from keras.layers import LSTM, Convolution1D, Flatten, Dropout, Dense
from keras.layers.embeddings import Embedding
from keras.models import Sequential
max_review_length = 1600
embedding_vecor_length = 300
model = Sequential()
model.add(Embedding(top_words, embedding_vecor_length, input_length=max_review_length))
model.add(Convolution1D(64, 3, border_mode='same'))
model.add(Convolution1D(32, 3, border_mode='same'))
You can’t perform that action at this time.