sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
| class Organisation < ApplicationRecord | |
| NUMBER_OF_PERMITTED_USERS = 10 | |
| has_many :users, before_add: :validate_user_limit | |
| private | |
| def validate_user_limit(user) | |
| raise Exception.new if users.size >= NUMBER_OF_PERMITTED_USERS | |
| end | |
| end |
| import React, { Component, PropTypes } from 'react'; | |
| export default class ImageInput extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| src: props.src ? props.src : null, | |
| } | |
| this.handleOnChange = this.handleOnChange.bind(this); |
| $('#percent').mask('P', { | |
| translation: { | |
| 'P': { | |
| pattern: /[\d\.,]/, | |
| recursive: true | |
| } | |
| }, | |
| onKeyPress: function(val, e, field, options) { | |
| var old_value = $(field).data('oldValue') || ''; |
Our app relies entirely on the current_user helper method (found in our ApplicationController) to retrieve the User object associated with the currently logged-in user (if any). You guys are using the devise gem for authentication, but you still have a current_user helper method which is made available to ApplicationController (and all subclasses).
Normally, the current_user method looks something like this:
def current_user
# do some magic to get the user id from the (encrypted) session cookie…
user_id = get_user_id_from_sessionThis procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Ansi 0 Color</key> | |
| <dict> | |
| <key>Color Space</key> | |
| <string>sRGB</string> | |
| <key>Blue Component</key> | |
| <real>0.25882352941176473</real> |
| require 'sidekiq/api' | |
| # 1. Clear retry set | |
| Sidekiq::RetrySet.new.clear | |
| # 2. Clear scheduled jobs | |
| Sidekiq::ScheduledSet.new.clear |
Kong, Traefik, Caddy, Linkerd, Fabio, Vulcand, and Netflix Zuul seem to be the most common in microservice proxy/gateway solutions. Kubernetes Ingress is often a simple Ngnix, which is difficult to separate the popularity from other things.
This is just a picture of this link from March 2, 2019
Originally, I had included some other solution
| K6_NO_USAGE_REPORT | |
| export let options = { | |
| noUsageReport: true | |
| }; |