How to filter emails from GitHub in Gmail and flag them with labels.
The labels in this document are just examples.
Filter | Label |
---|
version: 2 | |
jobs: | |
build: | |
environment: | |
working_directory: ~/circleci-myapp | |
docker: | |
- image: circleci/ruby:2.4.2-node-browsers | |
environment: | |
CC_TEST_REPORTER_ID: XXXYYY | |
RAILS_ENV: test |
module MyTweak | |
def execute(sql, name=nil) | |
if caller.detect {|x| x =~ /20171010151334/ } && sql !~ /SHOW TIME ZONE/ | |
puts sql | |
else | |
super | |
end | |
end | |
end | |
class ActiveRecord::ConnectionAdapters::PostgreSQLAdapter |
gem 'stackprof', require: false | |
gem 'ruby-prof', require: false |
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") |
image: rails | |
services: | |
- redis | |
- $DB | |
cache: | |
key: bundle | |
paths: | |
- vendor/bundle |
Proposal for a lightning talk at the Reactive 2016.
Keep calm and like/retweet it on Twitter and star this Gist to vote on this talk.
I work at Grammarly. We like React and happily use it in our applications. However, sometimes something goes wrong and bugs creep into the code. Here comes testing. It helps make us confident about the quality of our code.
#!/bin/sh | |
RESTORE=$(echo '\033[0m') | |
BOLD=$(echo '\033[1m') | |
GREEN=$(echo '\033[1;32m') | |
echo | |
echo ${GREEN} | |
echo "------------------------------" | |
echo " Installing prerequisites " | |
echo "------------------------------" | |
echo |
#!/usr/bin/env ruby | |
require_relative 'config/environment' | |
path = ARGV.shift || raise("specify migration as first argument") | |
require_relative path | |
filename = File.basename(path, ".rb") | |
timestamp, name = filename.split("_", 2) |