| Geocoder | Geokit-Rails | |
|---|---|---|
| Stars | 4802 | 1286 |
| Issues | 38 | 58 |
| Open pull requests | 19 | 1 |
| -- | |
| -- Read only | |
| -- | |
| -- Create a group | |
| CREATE ROLE postgres_ro_group; | |
| -- Grant access to existing tables | |
| GRANT USAGE ON SCHEMA public TO postgres_ro_group; | |
| GRANT SELECT ON ALL TABLES IN SCHEMA public TO postgres_ro_group; |
This is a proposal for a lightning talk at Reactive Conf. Please 🌟 this gist to push the proposal!
Do you test presentational logic of your components? No? Yes, but you feel like you are writing a lot of dummy tests? You even probably use snapshot tests for that, but don't feel like you make enought value from them..
If so, click 🌟 button on that Gist!
I'll talk how our team is using snapshot testing to iterate faster,
| FROM ubuntu:16.04 | |
| RUN apt-get update --yes && apt-get upgrade --yes | |
| RUN apt-get update --yes && apt-get upgrade --yes | |
| RUN apt-get -y install curl | |
| RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash | |
| RUN apt-get -y install ffmpeg zlib1g-dev automake autoconf git \ |
The goal of this cheatsheet is to make it easy to add hand-rolled authentication to any rails app in a series of layers.
First the simplest/core layers, then optional layers depending on which features/functionality you want.
Specs |
|
|---|---|
| AUTHOR | Ira Herman |
| LANGUAGE/STACK | Ruby on Rails Version 4, 5, or 6 |
| (* | |
| SCRIPT NAME: Copy Classic Link (Evernote) | |
| DATE: Tue, Feb 07, 2017 VER: 1.0.0 | |
| PURPOSE: | |
| • Get Classic link of selected Evernote Note | |
| • Copy to Mac Clipboard | |
| • Link is the "Classic", internal link to EN Mac Note | |
| # This summary shows how to set up a basic request to Google's Analytics Reporting API v4 from a Rails app. | |
| # Gemfile | |
| gem 'google-api-client', # v. 0.11 | |
| gem 'omniauth-google-oauth2' # v. 0.4.1 with Devise | |
| # In a model or controller somewhere... | |
| analytics = Google::Apis::AnalyticsreportingV4::AnalyticsReportingService.new | |
| analytics.authorization = current_user.token # See: https://github.com/zquestz/omniauth-google-oauth2 |
| #!/usr/bin/env bash | |
| VERSION=4.0.1 | |
| SCRIPT=`basename "$0"` | |
| APPNAME="My App" | |
| APPICONS="/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/GenericApplicationIcon.icns" | |
| OSX_VERSION=`sw_vers -productVersion` | |
| PWD=`pwd` | |
| function usage { |
| sudo apt-get update | |
| sudo apt-get install -y apt-transport-https ca-certificates | |
| sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
| echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list | |
| sudo apt-get update | |
| sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual | |
| sudo apt-get install -y docker-engine | |
| sudo service docker start | |
| sudo docker pull php:5.6-apache |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.