Skip to content

Instantly share code, notes, and snippets.

View mmore500's full-sized avatar

Matthew Andres Moreno mmore500

View GitHub Profile
// cppimport
#include <cstdint>
#include <memory>
#include <pybind11/pybind11.h>
namespace py = pybind11;
struct PerfectBacktrackHandleNative
: public std::enable_shared_from_this<PerfectBacktrackHandleNative>
@mmore500
mmore500 / cryptic-sequence-complexity.ipynb
Created December 29, 2022 17:35
cryptic-sequence-complexity.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mmore500
mmore500 / pareto.ipynb
Created January 18, 2022 17:57
pareto.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mmore500
mmore500 / symmetric_pareto.ipynb
Created January 18, 2022 17:52
symmetric_pareto.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mmore500
mmore500 / Random.h
Last active November 24, 2019 22:10
emp::Random::GetUInt64 profile
/**
* @note This file is part of Empirical, https://github.com/devosoft/Empirical
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
* @date 2015-2019
*
* @file Random.h
* @brief A versatile and non-patterned pseudo-random-number generator.
* @note Status: RELEASE
*/
@mmore500
mmore500 / Random.h
Last active November 24, 2019 22:11
emp::Random::RandFill profile
/**
* @note This file is part of Empirical, https://github.com/devosoft/Empirical
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
* @date 2015-2019
*
* @file Random.h
* @brief A versatile and non-patterned pseudo-random-number generator.
* @note Status: RELEASE
*/
"Fourscore and seven years ago our fathers brought forth, on this continent, a new nation, conceived in liberty, and dedicated to the proposition that all men are created equal. Now we are engaged in a great civil war, testing whether that nation, or any nation so conceived, and so dedicated, can long endure. We are met on a great battle-field of that war. We have come to dedicate a portion of that field, as a final resting-place for those who here gave their lives, that that nation might live. It is altogether fitting and proper that we should do this. But, in a larger sense, we cannot dedicate, we cannot consecrate—we cannot hallow—this ground. The brave men, living and dead, who struggled here, have consecrated it far above our poor power to add or detract. The world will little note, nor long remember what we say here, but it can never forget what they did here. It is for us the living, rather, to be dedicated here to the unfinished work which they who fought here have thus far so nobly advanced. It is ra
@mmore500
mmore500 / 2018-08-03_2018-10-26_70257977_sleepData.json
Created October 27, 2018 22:02
2018-08-03_2018-10-26_70257977_sleepData.json
[
{
"sleepStartTimestampGMT": {
"date": 1533268800000,
"localDate": {
"year": 2018,
"month": "AUGUST",
"chronology": {
"calendarType": "iso8601",
"id": "ISO"
@mmore500
mmore500 / mmore500.login@gmail.com_23708320392.csv
Last active October 27, 2018 21:50
mmore500.login@gmail.com_23708320392.csv
We can make this file beautiful and searchable if this error is corrected: It looks like row 9 should actually have 27 columns, instead of 7. in line 8.
Type,Local Number,Message,Field 1,Value 1,Units 1,Field 2,Value 2,Units 2,Field 3,Value 3,Units 3,Field 4,Value 4,Units 4,Field 5,Value 5,Units 5,Field 6,Value 6,Units 6,Field 7,Value 7,Units 7,Field 8,Value 8,Units 8
Definition,0,file_id,serial_number,1,,time_created,1,,manufacturer,1,,product,1,,number,1,,unknown,1,,type,1,,,,
Data,0,file_id,serial_number,3951179934,,time_created,903067200,,manufacturer,1,,garmin_product,2622,,number,39,,type,32,,,,,,,
Definition,1,device_info,timestamp,1,,serial_number,1,,manufacturer,1,,product,1,,software_version,1,,,,,,,,,,
Data,1,device_info,timestamp,903067200,s,serial_number,3951179934,,manufacturer,1,,garmin_product,2622,,software_version,4.6,,,,,,,,,,
Definition,2,software,version,1,,,,,,,,,,,,,,,,,,,,,,
Data,2,software,version,4.3,,,,,,,,,,,,,,,,,,,,,,
Definition,3,monitoring_info,timestamp,1,,local_timestamp,1,,cycles_to_distance,2,,cycles_to_calories,2,,unknown,2,,resting_metabolic_rate,1,,activity_type,2,,unknown,1,
Data,3,monitoring_info,timestamp,903067200,s,
@mmore500
mmore500 / crontab
Created October 24, 2018 22:16
/etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command