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
http://stackoverflow.com/questions/22667401/postgres-json-data-type-rails-query | |
http://stackoverflow.com/questions/40702813/query-on-postgres-json-array-field-in-rails | |
#payload: [{"kind"=>"person"}] | |
Segment.where("payload @> ?", [{kind: "person"}].to_json) | |
#data: {"interest"=>["music", "movies", "programming"]} | |
Segment.where("data @> ?", {"interest": ["music", "movies", "programming"]}.to_json) | |
Segment.where("data #>> '{interest, 1}' = 'movies' ") | |
Segment.where("jsonb_array_length(data->'interest') > 1") |
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
// add or import these into your Atom styles.less | |
/****************** VIM MODE STATUS BAR ****************************************/ | |
// green | |
@normal-bg: rgb(105, 238, 103); | |
// blue | |
@insert-bg: rgb(7, 193, 242); | |
// yellowish | |
@visual-bg: rgb(255, 206, 98); |
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
" Simple re-format for minified Javascript | |
command! UnMinify call UnMinify() | |
function! UnMinify() | |
%s/{\ze[^\r\n]/{\r/g | |
%s/){/) {/g | |
%s/};\?\ze[^\r\n]/\0\r/g | |
%s/;\ze[^\r\n]/;\r/g | |
%s/[^\s]\zs[=&|]\+\ze[^\s]/ \0 /g | |
normal ggVG= | |
endfunction |
- https://www.pullreview.com
- Hook it up to your GitHub repo and open a Pull Request
- It runs Excellent, Rubocop, Flay, Brakeman, RailsBestPractices, Yard, and secret sauce
- Free for OS, paid starts at 20€/month
- See also: CodeClimate, Hound
Here is a high level overview for what you need to do to get most of an Android environment setup and maintained.
Prerequisites (for Homebrew at a minimum, lots of other tools need these too):
- XCode is installed (via the App Store)
- XCode command line tools are installed (
xcode-select --install
will prompt up a dialog) - Java
Install Homebrew:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
How to set up multiple accounts with Mutt E-mail Client
Thanks to this article by Christoph Berg
Directories and files
~/
brew install mutt
- setup an app password for mutt in gmail
- setup an app password for imap_notifier in gmail
brew install terminal-notifier
terminal-notifiergem install imap_notifier
imap_notifierbrew install urlview
brew install w3m
(links
would be OK too)- Install pandoc to author in markdown and send as HTML
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
form i.icon.error { | |
color: $assertive; | |
} | |
form input + i.icon.error { | |
display: none; | |
margin-left: 8px; | |
} | |
form.ng-submitted input.ng-invalid + i.icon.error { |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS
REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
NewerOlder