Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

Neeraj neeraj9

🎯
Focusing
  • Microsoft
Block or report user

Report or block neeraj9

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
@neeraj9
neeraj9 / refactor_1_strike_cpp.diff
Last active Sep 9, 2019
Refactor Part 1 Strike .NET Core Diagnostics Strike.cpp
View refactor_1_strike_cpp.diff
diff --git a/src/SOS/Strike/strike.cpp b/src/SOS/Strike/strike.cpp
index f14b8c4..fe30347 100644
--- a/src/SOS/Strike/strike.cpp
+++ b/src/SOS/Strike/strike.cpp
@@ -153,6 +153,7 @@ const UINT kcMaxMethodDescsForProfiler = 100;
#include <set>
#include <vector>
#include <map>
+#include <tuple>
@neeraj9
neeraj9 / test_maps_order.erl
Created May 23, 2019
Erlang Maps Traversal Order Test
View test_maps_order.erl
#!/usr/bin/env escript
%%% @author neerajsharma
%%% @copyright (C) 2019, Neeraj Sharma <neerajsharma.9@outlook.com>
%%% @doc
%%%
%%% @end
-module(test_maps_order).
%% -*- erlang -*-
%%
@neeraj9
neeraj9 / py_beamparticle_testing_runeditor
Created May 5, 2018
BeamParticle sample python program which is to be used for evaluation via runeditor
View py_beamparticle_testing_runeditor
#!python
from pymongo import MongoClient
import pandas as pd
from datetime import datetime
from datetime import timedelta
import requests
import sys
import json
@neeraj9
neeraj9 / building_microsoft_graphengine_from_source.sh
Created Apr 23, 2018
Build Microsoft GraphEngine from source on Ubuntu 16.04
View building_microsoft_graphengine_from_source.sh
# Author: Neeraj Sharma
#
# https://www.graphengine.io/docs/manual/index.html
# https://www.microsoft.com/net/learn/get-started/linux/ubuntu16-04
setup_dot_net() {
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
@neeraj9
neeraj9 / bandwidth_monitoring.c
Created Mar 29, 2018
Simple Bandwidth monitoring in Gnu Linux
View bandwidth_monitoring.c
/*
* Copyright (c) 2015 Neeraj Sharma. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@neeraj9
neeraj9 / basic_application_logging.c
Created Mar 29, 2018
Demonstrate Application Logging in C Programming Language
View basic_application_logging.c
/*
* Copyright (c) 2015 Neeraj Sharma. All rights reserved.
*
* Licensed under GNU GPL v3 License.
* License: https://www.gnu.org/licenses/gpl-3.0.txt
*
* Code style based on the Linux Kernel, see
* https://www.kernel.org/doc/Documentation/CodingStyle
* for more details.
*
@neeraj9
neeraj9 / web_retrieve_url_and_summarize.erl.fun
Last active Feb 9, 2019
BeamParticle retrieve website and extract readable text
View web_retrieve_url_and_summarize.erl.fun
#!erlang
%% @doc Fetch content from internet and summarize
%% @author Neeraj Sharma
%%
%% run web_retrieve_url_and_summarize(<<"http://beamparticle.org/about.html">>, 5000, 5000)
%%
fun(Url, ConnectTimeoutMsec, TimeoutMsec) when (is_binary(Url) orelse is_list(Url))
andalso is_integer(ConnectTimeoutMsec)
andalso is_integer(TimeoutMsec) ->
Headers = [],
@neeraj9
neeraj9 / py_text_readability.py.fun
Created Mar 29, 2018
BeamParticle clean up data received from website
View py_text_readability.py.fun
#!python
#
# py_text_readability
#
# see https://github.com/buriy/python-readability#python-readability
#
# Dependencies:
#
# sudo pip3 install readability-lxml
#
@neeraj9
neeraj9 / nlp_microsoft_luis-response.json
Created Mar 29, 2018
BeamParticle Intent Analysis via Microsoft Luis Sample Result
View nlp_microsoft_luis-response.json
{
"entities": [
{
"endIndex": 25,
"entity": "europe",
"score": 0.986519933,
"startIndex": 20,
"type": "builtin.geography.continent"
}
],
@neeraj9
neeraj9 / nlp_microsoft_luis-1.json
Created Mar 29, 2018
BeamParticle Intent Analysis via Microsoft Luis Configuration
View nlp_microsoft_luis-1.json
{
"endpoint": "00000000-0000-0000-0000-000000000000",
"key": "00000000000000000000000000000000"
}
You can’t perform that action at this time.