Skip to content

Instantly share code, notes, and snippets.

View marutypes's full-sized avatar
💻

Mallory Allen marutypes

💻
View GitHub Profile
@marutypes
marutypes / gitmoji.md
Last active March 12, 2022 20:38
Mallen's Simplified Gitmoji

Mallen's Simplified Gitmoji

Inspired by gitmoji, stripped down to an easier to remember and less granular subset. Include these in your commits and PR titles to enhance you communication and mood.

  • 🎉 :tada: first commit
  • :sparkles: adds a feature
  • 💥 :boom: breaking change
  • 📝 :memo: adds docs
  • :heavy_plus_sign: adds dependency(s)
  • :heavy_minus_sign: removes dependency(s)
@likethesky
likethesky / elixirphoenix.bash
Last active June 7, 2024 17:26
Installing Elixir & the Phoenix framework with Homebrew on OS X
$ brew update && brew doctor # Repeat, until you've done *all* the Dr. has ordered!
$ brew install postgresql # You'll need postgres to do this... you may also need to 'initdb' as well. Google it.
$ brew install elixir
$ mix local.hex # Answer y to any Qs
$ createuser -d postgres # create the default 'postgres' user that Chris McCord seems to like -- I don't create mine w/a pw...
# Use the latest Phoenix from here: http://www.phoenixframework.org/docs/installation -- currently this is 1.0.3
# ** Answer y to any Qs **
$ mix archive.install https://github.com/phoenixframework/phoenix/releases/download/v1.0.3/phoenix_new-1.0.3.ez
@chrisjhoughton
chrisjhoughton / bootstrap.js
Created August 14, 2014 10:56
SailsJS Geo-encoding and lookup
module.exports.bootstrap = function (cb) {
// Ensure we have 2dsphere index on Property so GeoSpatial queries can work!
sails.models.YOURMODEL.native(function (err, collection) {
collection.ensureIndex({ coordinates: '2dsphere' }, function () {
// It's very important to trigger this callack method when you are finished
// with the bootstrap! (otherwise your server will never lift, since it's waiting on the bootstrap)
cb();