Skip to content

Instantly share code, notes, and snippets.

@njm2112
njm2112 / testing.html
Created June 30, 2018 17:41 — forked from rowanmanning/testing.html
HTML template for testing CSS
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>CSS Testing</title>
</head>
<body id="top">
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
@njm2112
njm2112 / Remove-MsgAttachment.psm1
Last active December 2, 2017 22:33 — forked from dziemborowicz/Remove-MsgAttachment.ps1
PowerShell cmdlet for removing attachments from *.msg files
function Remove-MsgAttachment
{
[CmdletBinding()]
Param
(
[Parameter(ParameterSetName="Path", Position=0, Mandatory=$True)]
[String]$Path,
[Parameter(ParameterSetName="LiteralPath", Mandatory=$True)]
Verifying my Blockstack ID is secured with the address 13CXKLBP4xcBB879iFbgCXwhfN6hjKXRc2 https://explorer.blockstack.org/address/13CXKLBP4xcBB879iFbgCXwhfN6hjKXRc2
@njm2112
njm2112 / keybase.md
Last active July 18, 2017 01:45
Keybase proof

Keybase proof

I hereby claim:

  • I am njm2112 on github.
  • I am nm1 (https://keybase.io/nm1) on keybase.
  • I have a public key whose fingerprint is 4A2C F74B 4F96 CD20 FD86 23EB 6317 943E 74BE 68F4

To claim this, I am signing this object:

@njm2112
njm2112 / AirmailToOmnifocus2.scpt
Created July 18, 2017 01:35 — forked from matellis/AirmailToOmnifocus2.scpt
Sends the selected message from Airmail to Omnifocus 2
(*
Send currently selected Airmail message to OmniFocus 2 quick entry box, then archive it.
Based on http://simplicitybliss.com/add-last-sent-email-to-omnifocus
and http://discourse.omnigroup.com/t/mail-to-quick-entry-applescript/500
To install:
- Create a new Automator Service
- Cut/paste this into it
- Edit properties to your satisfaction
@njm2112
njm2112 / BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
Created May 25, 2017 05:29 — forked from ccstone/BBEdit-TextWrangler_RegEx_Cheat_Sheet.txt
BBEdit-TextWrangler Regular Expression Cheat-Sheet
————————————————————————————————————————————————————————————————————————————————————————————————————
BBEDIT/TEXTWRANGLER REGULAR EXPRESSION GUIDE MODIFIED 2016/02/29 17:26
————————————————————————————————————————————————————————————————————————————————————————————————————
NOTES:
The PCRE engine (Perl Compatible Regular Expressions) is what BBEdit and TextWrangler use.
Items I'm unsure of are marked '# PCRE?'. The list while fairly comprehensive is not complete.
@njm2112
njm2112 / big.log
Last active May 19, 2017 02:22
shell output; troubleshooting rvm install error
++ : 5 > iterm2_preexec_invoke_exec -x
++ /Users/njm/.iterm2_shell_integration.bash : iterm2_preexec_invoke_exec() 1 > '[' '!' -t 1 ']'
++ /Users/njm/.iterm2_shell_integration.bash : iterm2_preexec_invoke_exec() 6 > return
+ : 5 > source /Users/njm/.rvm/scripts/rvm
require 'rubygems'
require 'matrix'
require 'lingua/stemmer'
require 'csv'
require 'erb'
require 'iconv'
require 'sanitize'
require './cleaner.rb'
STEMMER = Lingua::Stemmer.new
@njm2112
njm2112 / uscode.rb
Created March 21, 2017 04:46 — forked from ashaw/uscode.rb
class USCode
SEARCH_ENDPOINT = "http://uscode.house.gov/uscode-cgi/fastweb.exe?search"
@@search_params = {
:view => "uscview",
:db2 => "t01t04" ,
:db3 => "t05t08" ,
:db4 => "t09t12" ,
:db5 => "t13t16" ,
:db6 => "t17t20" ,
:db7 => "t21t25" ,
@njm2112
njm2112 / mmoutline2md.rb
Created January 18, 2017 01:51 — forked from ttscoff/mmoutline2md.rb
Convert a Mindjet MindManager text outline export to Markdown
#!/usr/bin/env ruby
input = STDIN.read
input.gsub!(/^\=+\n ?(.*?)\n\=+/,"# \\1")
input.gsub!(/^-+\n\d+ (.*?)\n-+/,"## \\1")
input.gsub!(/^\d+\.\d+ (.*)/,"### \\1")
input.gsub!(/^\d+\.\d+\./,"@")
input.gsub!(/^@\d+ /,"- ")
input.gsub!(/^@\d+\.\d+ /,"\t- ")