This gist details the following:
- Converting a Subversion (SVN) repository into a Git repository
- Purging the resultant Git repository of large files
- Retrieve a list of SVN commit usernames
| // 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. |
This gist details the following:
$/
artifacts/
build/
docs/
lib/
packages/
samples/
src/
tests/
| # install tools | |
| sudo apt-get install pkg-config cmake | |
| # install dependencies | |
| sudo apt-get install \ | |
| libssh2-1-dev \ | |
| libssl-dev \ | |
| zlib1g-dev \ | |
| libncurses5-dev \ | |
| libncursesw5-dev \ |
| public static class CastingHelper | |
| { | |
| public static T CastToStruct<T>(this byte[] data) where T : struct | |
| { | |
| var pData = GCHandle.Alloc(data, GCHandleType.Pinned); | |
| var result = (T)Marshal.PtrToStructure(pData.AddrOfPinnedObject(), typeof(T)); | |
| pData.Free(); | |
| return result; | |
| } |
| bool SHCopy(LPCTSTR from, LPCTSTR to) | |
| { | |
| Log(_T("Recursive file copy from %s to %s"), from, to); | |
| SHFILEOPSTRUCT fileOp = {0}; | |
| fileOp.wFunc = FO_COPY; | |
| TCHAR newFrom[MAX_PATH]; | |
| _tcscpy_s(newFrom, from); | |
| newFrom[_tcsclen(from) + 1] = NULL; | |
| fileOp.pFrom = newFrom; |
| -- authors: Hadriel Kaplan <hadriel@128technology.com>, Stephen Cleary | |
| -- Copyright (c) 2015-2022, Hadriel Kaplan, Stephen Cleary | |
| -- This code is in the Public Domain, or the BSD (3 clause) license if Public Domain does not apply in your country. | |
| -- Thanks to Hadriel Kaplan, who wrote the original FPM Lua script. | |
| -- This is a starting point for defining a dissector for a custom TCP protocol. | |
| -- This approach assumes that each message has a header that indicates the message length. | |
| -- The code in this example uses a 4-byte header which is just a 4-byte big-endian message length, | |
| -- and this length does not include the length of the header. | |
| -- Modify the sections marked TODO to adjust these assumptions. |
| public class TrimmedTextBlockVisibilityConverter : IValueConverter | |
| { | |
| public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) | |
| { | |
| if (value == null) return Visibility.Collapsed; | |
| FrameworkElement textBlock = (FrameworkElement)value; | |
| textBlock.Measure(new System.Windows.Size(Double.PositiveInfinity, Double.PositiveInfinity)); |
| #!/usr/bin/env python | |
| # Unicorn2lsl streams data from a Unicorn Hybrid Black EEG system to LSL | |
| # | |
| # Copyright (C) 2022 Robert Oostenveld | |
| # | |
| # 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. |