Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name example-google
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.google.com
// @match https://www.google.com*
// @grant none
// ==/UserScript==
@gicque
gicque / Helpers.sql
Created February 1, 2019 13:06 — forked from alexsorokoletov/Helpers.sql
Helpful functions when you need to find out what is going on on SQL Server
/* TOP SLOW REQUESTS */
/* time is in microseconds */
SELECT creation_time
,last_execution_time
,total_physical_reads
,total_logical_reads
,total_logical_writes
, execution_count
, total_worker_time
, total_elapsed_time
@gicque
gicque / twitter_sentiment_analysis_convnet.py
Created November 28, 2018 15:20 — forked from giuseppebonaccorso/twitter_sentiment_analysis_convnet.py
Twitter Sentiment Analysis with Gensim Word2Vec and Keras Convolutional Networks
import keras.backend as K
import multiprocessing
import tensorflow as tf
from gensim.models.word2vec import Word2Vec
from keras.callbacks import EarlyStopping
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Flatten
from keras.layers.convolutional import Conv1D
System.NullReferenceException was unhandled by user code
HResult=-2147467261
Message=object reference not set to an instance of an object.
Source=mscorlib
StackTrace:
Server stack trace:
à System.Runtime.Serialization.XmlObjectSerializerReadContextComplex.InternalDeserializeWithSurrogate(XmlReaderDelegator xmlReader, Type declaredType, DataContract surrogateDataContract, String name, String ns)
à System.Runtime.Serialization.XmlObjectSerializerReadContextComplex.InternalDeserialize(XmlReaderDelegator xmlReader, Int32 declaredTypeID, RuntimeTypeHandle declaredTypeHandle, String name, String ns)
à ReadJavascriptResponseFromXml(XmlReaderDelegator , XmlObjectSerializerReadContext , XmlDictionaryString[] , XmlDictionaryString[] )
à System.Runtime.Serialization.ClassDataContract.ReadXmlValue(XmlReaderDelegator xmlReader, XmlObjectSerializerReadContext context)
@gicque
gicque / program.cs
Created June 24, 2015 18:16
cefsharp.OffScreen.Example: EvaluateScriptAsync result in System.NullReferenceException
// Copyright © 2010-2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Diagnostics;
using System.Drawing;
using System.IO;
using System.Threading.Tasks;
using CefSharp.Example;