Skip to content

Instantly share code, notes, and snippets.

Avatar
📑
Writing "Dead Simple Python" book

Jason C. McDonald CodeMouse92

📑
Writing "Dead Simple Python" book
View GitHub Profile
View useful_regexes.txt
# Replace all instances of string with std::string,
# without clobbering include statements, names, or anything with "string" in the name.
FIND ((?<!#include )[^\w>:\.])(string)([^\w])
REPLACE $1std::$2$3
@CodeMouse92
CodeMouse92 / project_wishlist.md
Last active Jan 23, 2020
2020 Coding Project Wishlist
View project_wishlist.md

2020 Coding Project Wishlist

These are (mostly) personal projects I want to try and release a functional version of in 2020.

Timecard 2.0

Timecard allows tracking and logging time spent on various tasks. This new version will also have tools for the Pomodoro technique built in.

This is a re-creation of the first working software project I ever created.

@CodeMouse92
CodeMouse92 / beginners-tag.md
Last active Apr 12, 2020
DEV.to Moderation Comments and Messages
View beginners-tag.md

MOVED TO https://github.com/CodeMouse92/DEVModInACan

#BEGINNERS TAG REMOVALS

Non-Beginner Article

All articles on #beginners should be written for those new to programming, development, networking, or to a particular language. These posts should also require little to no prerequisite knowledge. If you wish, you may rewrite your post to meet these requirements, at which point you may request that the tag be added back. Otherwise, just use the appropriate technology tags. (Read more about the tag rules here.)

Non-Beginner Question

View CRANKY.md

THE CRANKY DEVELOPER'S MANIFESTO

I am developing this project for the sole purpose of my own enjoyment. I make no promises about release date, features, usability, stability, practicality, or compliance with any normal standards of software development.

In pursuit of my unhindered enjoyment of this project, the only end-user I choose to care about in this project is myself, and maybe a few select friends. The timeline, the features, and the implementation are all

View gist:22cba61fccb71da8c26b2f845107c6a8
Verifying my Blockstack ID is secured with the address 1NWRfydSKGpSX4423mgutNu6fMi52Qx81T https://explorer.blockstack.org/address/1NWRfydSKGpSX4423mgutNu6fMi52Qx81T
@CodeMouse92
CodeMouse92 / skill_list.md
Last active Jan 4, 2021
Languages and Skills [CodeMouse92]
View skill_list.md

Programming Languages

  • ActionScript 3.0 [Expert]
  • Assembly (X86) [Basic]
  • Bash
  • C
  • C++ [Expert]
  • Python [Expert]
  • Java
  • Javascript
@CodeMouse92
CodeMouse92 / magic_hosts
Last active Apr 27, 2018
Magic Hosts Switcher (Bash Script)
View magic_hosts
#!/bin/bash
# Magic Hosts Switcher
# Automatically detects a target network and turns on/off LAN routing in
# your /etc/hosts file accordingly.
#
# Setup: In your root crontab, add and edit the following...
# * * * * * /path/to/magic_hosts
#
# AUTHOR(S): Jason C. McDonald
View gist:db4853223585940f1bd143debab0c87e
sudo add-apt-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main"
wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
sudo apt update
sudo apt install python-lldb-5.0
sudo apt install clang-5.0 clang-5.0-doc libclang-common-5.0-dev libclang-5.0-dev libclang1-5.0 libclang1-5.0-dbg libllvm-5.0-ocaml-dev libllvm5.0 libllvm5.0-dbg lldb-5.0 llvm-5.0 llvm-5.0-dev llvm-5.0-doc llvm-5.0-examples llvm-5.0-runtime clang-format-5.0 python-clang-5.0 libfuzzer-5.0-dev
sudo ln -sf /usr/bin/llvm-symbolizer-5.0 /usr/bin/llvm-symbolizer
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/clang-5.0 60
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 50
sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-5.0 60
@CodeMouse92
CodeMouse92 / main.cpp
Created Jun 21, 2017
Goldilocks Benchmark Demo
View main.cpp
#include "pawlib/iochannel.hpp"
#include "pawlib/goldilocks.hpp"
using namespace pawlib;
using namespace pawlib::ioformat;
void bubblesort(int* arr, int len)
{
int temp;
bool swap;
@CodeMouse92
CodeMouse92 / main.cpp
Created Jun 21, 2017
IOChannel Memory Dump Demo
View main.cpp
#include "pawlib/iochannel.hpp"
using namespace pawlib;
using namespace pawlib::ioformat;
class SomeMagicThing
{
public:
SomeMagicThing(int n1, int n2, bool b1)
:foo(n1), bar(n2), baz(b1)