Visit this link https://github.com/jithurjacob/Windows-10-Toast-Notifications to read in more detail.
Eg. I created in D drive using command mkdir D:\Python2.7
| // This method convert a json to a valid string json | |
| // It should handle all mongodb data types correctly (Date, ObjectId, ...) thanks to the | |
| // Newtonsoft.Json.Bson.BsonReader serializer | |
| public string ToJson(BsonDocument bson) | |
| { | |
| using (var stream = new MemoryStream()) | |
| { | |
| using (var writer = new BsonBinaryWriter(stream)) | |
| { |
Visit this link https://github.com/jithurjacob/Windows-10-Toast-Notifications to read in more detail.
Eg. I created in D drive using command mkdir D:\Python2.7
For a brief user-level introduction to CMake, watch C++ Weekly, Episode 78, Intro to CMake by Jason Turner. LLVM’s CMake Primer provides a good high-level introduction to the CMake syntax. Go read it now.
After that, watch Mathieu Ropert’s CppCon 2017 talk Using Modern CMake Patterns to Enforce a Good Modular Design (slides). It provides a thorough explanation of what modern CMake is and why it is so much better than “old school” CMake. The modular design ideas in this talk are based on the book [Large-Scale C++ Software Design](https://www.amazon.de/Large-Scale-Soft
| // Includes a mini-program for checking and fixing files that have no extension | |
| // Only checks for the most common types | |
| // If you create a better version, please upload it here. | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| namespace AppendJPG | |
| { |
| # https://specifications.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html, aggregate list from each section | |
| address-book-new The icon used for the action to create a new address book. | |
| application-exit The icon used for exiting an application. Typically this is seen in the application's menus as File->Quit. | |
| appointment-new The icon used for the action to create a new appointment in a calendaring application. | |
| call-start The icon used for initiating or accepting a call. Should be similar to the standard cellular call pickup icon, a green handset with ear and mouth pieces facing upward. | |
| call-stop The icon used for stopping a current call. Should be similar to the standard cellular call hangup icon, a red handset with ear and mouth pieces facing downward. | |
| contact-new The icon used for the action to create a new contact in an address book application. | |
| document-new The icon used for the action to create a new document. | |
| document-open The icon used for the action to open a document. | |
| document-open-recent T |
| #!/usr/bin/env python | |
| # Implementation of algorithm from http://stackoverflow.com/a/22640362/6029703 | |
| import numpy as np | |
| import pylab | |
| def thresholding_algo(y, lag, threshold, influence): | |
| signals = np.zeros(len(y)) | |
| filteredY = np.array(y) | |
| avgFilter = [0]*len(y) | |
| stdFilter = [0]*len(y) |
| /// <summary> | |
| /// Tolerant Enum converter. Based on code in the StackOverflow post below, but adds EnumMember attribute support. | |
| /// http://stackoverflow.com/questions/22752075/how-can-i-ignore-unknown-enum-values-during-json-deserialization | |
| /// </summary> | |
| public class TolerantEnumConverter : JsonConverter | |
| { | |
| [ThreadStatic] | |
| private static Dictionary<Type, Dictionary<string, object>> _fromValueMap; // string representation to Enum value map | |
| [ThreadStatic] |
# make sure to replace `<hash>` with your gist's hash
git clone https://gist.github.com/<hash>.git # with https
git clone git@gist.github.com:<hash>.git # or with ssh| // A simple quickref for Eigen. Add anything that's missing. | |
| // Main author: Keir Mierle | |
| #include <Eigen/Dense> | |
| Matrix<double, 3, 3> A; // Fixed rows and cols. Same as Matrix3d. | |
| Matrix<double, 3, Dynamic> B; // Fixed rows, dynamic cols. | |
| Matrix<double, Dynamic, Dynamic> C; // Full dynamic. Same as MatrixXd. | |
| Matrix<double, 3, 3, RowMajor> E; // Row major; default is column-major. | |
| Matrix3f P, Q, R; // 3x3 float matrix. |