This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the reasonable option | |
::shadow .haskell .entity .module, | |
::shadow .haskell .identifier .module { | |
opacity: 0.5; | |
} | |
// the nuclear option | |
::shadow .line:not(.cursor-line) .haskell .entity .module, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ignore static version of the site (used to upload error pages to S3 for Heroku errors) | |
/out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env stack | |
> -- stack --resolver lts-6 --install-ghc runghc --package classy-prelude --package lens --package wreq | |
Blah Blah words about this single file executable README goes here. | |
> {-# LANGUAGE DeriveAnyClass #-} | |
> {-# LANGUAGE DeriveGeneric #-} | |
> {-# LANGUAGE NoImplicitPrelude #-} | |
> {-# LANGUAGE OverloadedStrings #-} |
There's a couple of ways, one way is
- Get search results
- Do
SPC /
and type in your search string - or
SPC x S
and search string - where x is your scope indicator (p for project, d for directory, etc..)
- Do
- Once you have the occurences you want, hit
C-c C-e
inside the helm buffer to put all your match occurences and puts them into a special buffer called the edit buffer or something like that - in that buffer you can use any commands you'd normally use on a buffer
- the
C-c C-c
to commit your changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rabbitmqctl add_user test test | |
rabbitmqctl set_user_tags test administrator | |
rabbitmqctl set_permissions -p / test ".*" ".*" ".*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule RegexCase do | |
defmacro regex_case(string, do: lines) do | |
new_lines = Enum.map lines, fn ({:->, context, [[regex], result]}) -> | |
condition = quote do: String.match?(unquote(string), unquote(regex)) | |
{:->, context, [[condition], result]} | |
end | |
# Base case if nothing matches; "cond" complains otherwise. | |
base_case = quote do: (true -> nil) | |
new_lines = new_lines ++ base_case |
This brief guide is written from my own experience with migrating a large (~5GB) MySQL database to PostgreSQL for a Rails project.
No warranties, guarantees, support etc. Use at your own risk and, as always, ENSURE YOU MAKE BACKUPS FIRST!
I chose [pgloader
][1] because it's extremely fast. YMMV.
- Replace
mysql2
gem withpg
inGemfile
. - Update
config/database.yml
for PostgreSQL. I used [Rails' template][2] as a starting point.
- Must be an event that someone involved in open source would be interested in attending
- Must be a community oriented event (no corporate owned for-profit events here please)
- Can't be about a specific language/framework.
Leave suggestions in the comments below
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.