Skip to content

Instantly share code, notes, and snippets.

Avatar
🚂

Mike Rogers MikeRogers0

🚂
View GitHub Profile
@MikeRogers0
MikeRogers0 / .dockerignore
Last active Apr 9, 2020
Docker Setup for AWS Beanstalk
View .dockerignore
.git
.gitignore
README.md
#
# OS X
#
.DS_Store
.AppleDouble
.LSOverride
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 https://github.com/sass/dart-sass/archive/1.4.0.tar.gz
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=sass.dart.app.snapshot --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 https://github.com/sass/dart-sass/archive/1.4.0.tar.gz
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 https://github.com/caskroom/homebrew-cask to https://github.com/Homebrew/homebrew-cask...
==> 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/io.puma.dev/cert.pem
View migration-from-pow-to-puma-dev.bash
curl get.pow.cx/uninstall.sh | 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/io.puma.dev/cert.pem &&
mv ~/.pow/* ~/.puma-dev
@MikeRogers0
MikeRogers0 / 0-readme.md
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].
View 0-readme.md

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
MikeRogers0 / application.html.erb
Created May 24, 2015
Example of how yield works
View application.html.erb
<%= yeild :some_content %>
You can’t perform that action at this time.