Skip to content

Instantly share code, notes, and snippets.

On Holiday

Mike Rogers MikeRogers0

On Holiday
Block or report user

Report or block MikeRogers0

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:91515fe966b1d89a5b822fe74ad246bb
$ brew uninstall dart; brew reinstall sass
Uninstalling /usr/local/Cellar/dart/2.0.0-dev.59.0... (1,206 files, 348.9MB)
dart 1.24.3 1 is still installed.
Remove all versions with `brew uninstall --force dart`.
==> Reinstalling sass/sass/sass
Error: /usr/local/opt/dart not present or broken
Please reinstall dart-lang/dart/dart. Sorry :(
View gist:91a0bf83acc90d8f8b5a87ad6e076f48
$ brew reinstall sass/sass/sass
==> Reinstalling sass/sass/sass
==> Downloading
Already downloaded: /Users/Mike/Library/Caches/Homebrew/sass-1.4.0.tar.gz
==> /usr/local/opt/dart/bin/pub get
==> /usr/local/opt/dart/bin/dart --snapshot-kind=app-jit bin/sass.dart tool/app-snapshot-input.scss
🍺 /usr/local/Cellar/sass/1.4.0: 9 files, 29.9MB, built in 23 seconds
Mike at Michaels-MacBook-Pro in ~
View gist:eedd0e1c8593d0549f8c1a4b4ffa069d
$ brew tap MikeRogers0/homebrew-sass
==> Tapping mikerogers0/sass
Cloning into '/usr/local/Homebrew/Library/Taps/mikerogers0/homebrew-sass'...
remote: Counting objects: 4, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 4 (delta 0), reused 2 (delta 0), pack-reused 0
Unpacking objects: 100% (4/4), done.
Tapped 1 formula (28 files, 22.5KB)
Mike at Michaels-MacBook-Pro in ~
View gist:c57a05b7671f509564bb1b020d2697d6
$ brew install sass/sass/sass
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (sass/sass).
No changes to formulae.
==> Installing sass from sass/sass
==> Downloading
Already downloaded: /Users/Mike/Library/Caches/Homebrew/sass-1.4.0.tar.gz
==> /usr/local/opt/dart/bin/pub get
View gist:d5614726a21e5fca973b6902bd0e8805
$ brew install sass/sass/sass
Updating Homebrew...
==> Migrating tap caskroom/cask to homebrew/cask...
Moving /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask to /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask...
Changing remote from to
==> Auto-updated Homebrew!
Updated 4 taps (heroku/brew, homebrew/core, homebrew/php, homebrew/cask).
==> New Formulae
bitwarden-cli clozure-cl density howard-hinnant-date kubecfg mk-configure soundpipe vsts-cli
brew-php-switcher confluent-oss fortio kakoune libheif pygitup taskell
View setup_puma_dev.local
brew install puma/puma/puma-dev &&
sudo puma-dev -setup &&
puma-dev -install &&
security add-trusted-cert -k login.keychain-db ~/Library/Application\ Support/
View migration-from-pow-to-puma-dev.bash
curl | sh &&
brew install puma/puma/puma-dev &&
sudo puma-dev -setup &&
puma-dev -install &&
security add-trusted-cert -k login.keychain-db ~/Library/Application\ Support/ &&
mv ~/.pow/* ~/.puma-dev
MikeRogers0 /
Last active May 23, 2016
Some code, that will flatten an array of arbitrarily nested arrays of integers into a flat array of integers. e.g. [[1,2,[3]],4] -> [1,2,3,4].

For Citrusbyte.

I wrote these two methods using Ruby 2.3.1, the tests require the minitest gem to be installed on your system.

You can run the tests using the command

ruby flatten_recursion_test.rb ruby flatten_regex_test.rb

Here is a summary of the two methods:

MikeRogers0 / application.html.erb
Created May 24, 2015
Example of how yield works
View application.html.erb
<%= yeild :some_content %>
MikeRogers0 / example_output.txt
Last active Mar 30, 2017
Setting up Oink to run after my test suite
View example_output.txt
Mikes-Mac-Pro:ExampleApp MikeRogers$ fr rspec
Worst Requests:
1. Mar 27 14:14:13, 18432 KB, home#index
2. Mar 27 14:14:12, 16384 KB, contact_us#create
3. Mar 27 14:14:08, 6072 KB, contact_us#create
You can’t perform that action at this time.