Skip to content

Instantly share code, notes, and snippets.

@mm53bar
mm53bar / Zip Codes to DMAs
Created August 10, 2023 17:37 — forked from clarkenheim/Zip Codes to DMAs
TSV file containing zip codes and the DMA they fall in to. Method: calculate the centre point of every zip code geo boundary, plot those points on a DMA boundary map, find the containing DMA of each zip centroid
This file has been truncated, but you can view the full file.
zip_code dma_code dma_description
01001 543 SPRINGFIELD - HOLYOKE
01002 543 SPRINGFIELD - HOLYOKE
01003 543 SPRINGFIELD - HOLYOKE
01004 543 SPRINGFIELD - HOLYOKE
01005 506 BOSTON (MANCHESTER)
01007 543 SPRINGFIELD - HOLYOKE
01008 543 SPRINGFIELD - HOLYOKE
01009 543 SPRINGFIELD - HOLYOKE
01010 543 SPRINGFIELD - HOLYOKE
@mm53bar
mm53bar / README.md
Last active September 14, 2022 22:25
Track recent files in Obsidian's daily notes
  • Update your notes path in recent.rb
  • Save ca.aream.recent.plist to ~/Library/LaunchAgents/ca.aream.recent.plist
  • Save recent.rb to ~/bin/recent (you may have to create the bin folder and run chmod +x recent to make the script executable
  • Run launchctl load ~/Library/LaunchAgents/ca.aream.recent.plist to start the launchd service
  • Check your notes path to see if RECENT.md was created!

If that all worked, install the Templater plugin for Obsidian and create a Daily Note template that includes [[RECENT]] - I've included my template to get you started.

@mm53bar
mm53bar / obsidian.css
Created January 22, 2021 15:19 — forked from pihentagy/obsidian.css
Clutter free edit mode
/* inline formatting, link targets and [[ ]] disappears if not active line*/
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting,
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-string.cm-url,
div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-formatting-link,
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-hmd-barelink,
div:not(.CodeMirror-activeline)>.CodeMirror-line span.cm-comment
{ display: none; }
/* hide all html tags -- IT IS COMMENTED OUT BY DEFAULT */
/* div:not(.CodeMirror-activeline) > .CodeMirror-line span.cm-tag{ display: none; } */
@mm53bar
mm53bar / obsidian.css
Created May 21, 2020 15:22 — forked from seanwcom/obsidian.css
Bear.app stylings for Obsidian
/* Font for the markdown source panel */
div.markdown-source-view {
font-family: 'Avenir Next'
}
/* Font for the markdown preview panel */
div.markdown-preview-view {
font-family: 'Avenir Next'
}
@mm53bar
mm53bar / Makefile
Created November 21, 2019 15:41
Makefile for a Rails app
.PHONY: serve live-reload db-reset db-setup db-migrate init deps compile bundle yarn clean
serve: init deps compile db-setup db-migrate
rails server
live-reload: yarn
./bin/webpack-dev-server --host 127.0.0.1
db-reset:
bundle exec rake db:reset
@mm53bar
mm53bar / README.md
Last active September 6, 2019 17:32
My personal values

I've been through a few different companies now where I'm brought in to do the same thing - fix the devs. While the bigger problems are often in management, there are also some differences that I can bring to a dev team that helps.

Recently, I was reflecting on that and how I tend to bring the same approach to each new company. Could that similarity be a way to extract my personal values? Let's give it a shot.

Values

Encourage Openness

  • Share information in open ways i.e. google docs, slack, github
@mm53bar
mm53bar / wordlist.txt
Created April 12, 2019 20:54 — forked from stevepaulo/wordlist.txt
Mnemonic word list for server names, release names, etc... solve the "hard problem" of naming things
From http://web.archive.org/web/20090918202746/http://tothink.com/mnemonic/wordlist.html
Word selection criteria:
- The wordlist contains 1626 words.
- All words are between 4 and 7 letters long.
- No word in the list is a prefix of another word (e.g. visit, visitor).
- Five letter prefixes of words are sufficient to be unique.
The rest of the criteria are less strict. You may find exceptions to all of them because it is difficult to satisfy them all at the same time.
- The words should be usable by people all over the world. The list is far from perfect in that respect. It is heavily biased towards western culture and English in particular. The international vocabulary is simply not big enough. One can argue that even words like "hotel" or "radio" are not truly international. You will find many English words in the list but I have tried to limit them to words that are part of a beginner's vocabulary or words that have close relatives in other european languages. In some cases a word has a different meaning
@mm53bar
mm53bar / principles.markdown
Last active May 10, 2019 19:28
Skeleton for a dev team

“The purpose of life is not to be happy. It is to be useful, to be honorable, to be compassionate, to have it make some difference that you have lived and lived well.” - Ralph Waldo Emerson

The purpose for the dev team is to be useful (1). We will accomplish this by being more productive and building the right things. Tactical plans to achieve this purpose will vary greatly. It is more useful to have a set of guiding principles which can be applied as the situation evolves. These principles can be used in any situation as a framework for decision-making that will guide us forward.

1. Being More Productive

We don’t confuse productivity with efficiency. Efficiency is a fine goal but we’re not trying to do more with less. That can work in a factory but not in a creative endeavour where our speed is managed by our knowledge (2).

Instead, we want to do more with the same (3). We will accomplish that by optimizing our approach to delivery and expanding our use of technical leverage.

1.1 Optimizing Our A

@mm53bar
mm53bar / README.markdown
Last active March 15, 2019 18:29
Building a company

How to build a company

I'm interested in building a company with an engaged culture and opportunities to learn & innovate. But what does that mean? How does that translate into actions? This is a collection of snippets and links that can help to define it.

Snippets

Chacka also offers an open-ended personal time-off policy, which Laravie sees as an important element of "empowerment and trust." There are limits—such as making sure everything gets done and teams have proper coverage. Says Laravie, "You're giving everybody the opportunity to be responsible and make sure work is done and on time. link

"Good startup hygiene: -set a small number of specific cultural values from inception -define a mission -declare war on gossip -lionize cross function problem solvers -encourage action -abstain from meetings -hold something sacred (product, tech, sales) -protect your secret" [link](https://twitter.com/BrianNorgard/sta

@mm53bar
mm53bar / README.md
Last active November 29, 2018 15:28
Scrape ramp

First go to any team's home page on a ramp site i.e. http://raidershockey.ca/team/2090/0/0/33929. Grab the url of the home page and add it into sync.rb. Then run the script:

ruby sync.rb

The script will pull a json feed of games, practices, and events (events.json) and make it available by exposing an Event object for each element in the json array.