Was tested with git version 2.14.1
git config --global alias.opendiff 'difftool --no-prompt --tool opendiff --dir-diff'
and anytime after
git opendiff
| package main | |
| import ( | |
| "crypto/tls" | |
| "log" | |
| "github.com/quic-go/quic-go" | |
| "golang.org/x/net/context" | |
| ) |
| package main | |
| import ( | |
| "bytes" | |
| "context" | |
| "crypto/tls" | |
| "log" | |
| "net/http" | |
| "time" |
| class InvoiceItem < ApplicationRecord | |
| # Constants | |
| # Includes | |
| # include AccountScope | |
| include AASM | |
| aasm column: "status", requires_lock: true do | |
| state :pending, initial: true | |
| state :closed |
| class Invoice < ApplicationRecord | |
| # Constants | |
| # Includes | |
| # include AccountScope | |
| include AASM | |
| aasm column: "status", requires_lock: true do | |
| state :pending, initial: true | |
| state :final, :paid |
| class MessagesController < ApplicationController | |
| before_action :authenticate_user!, except: %i[shared download_attachment download_eml raw_iframe view_attachment] | |
| before_action :set_message, only: %i[show read download_attachment download_eml raw_iframe view_attachment destroy | |
| share unshare], if: -> { params[:id] } | |
| before_action :set_shared_message, only: %i[show download_attachment download_eml raw_iframe view_attachment shared], | |
| if: -> { params[:token] } | |
| def show |
| import React, {useState, useEffect} from 'react'; | |
| export default () => { | |
| const [input, setInput] = useState([]); | |
| useEffect(() => { | |
| addInput(); | |
| }, []); | |
| const addInput = () => { |
Was tested with git version 2.14.1
git config --global alias.opendiff 'difftool --no-prompt --tool opendiff --dir-diff'
and anytime after
git opendiff
| #!/bin/bash | |
| #title :ufw_allow_countries.sh | |
| #author :JSC Novabyte (novabyte.co) | |
| #date :20/10/2018 | |
| #version :0.0.1 | |
| #notes :Use root privileges | |
| #usage :$sh ufw_allow_countries.sh | |
| #license :https://opensource.org/licenses/MIT |
| # config/geocoder.rb | |
| module Geocoder | |
| module Request | |
| def location | |
| @location ||= begin | |
| Geocoder.search(IpAddress.new('190.12.48.158')).first | |
| end | |
| @location | |
| end |
| /** | |
| * Local forms jQuery plugin. | |
| * Author: Dachi Natsvlishvili | |
| */ | |
| (function($) { | |
| $.fn.local_forms = function(options) { | |
| var handle = function(key, e) { | |
| if (!e.validity.valid) { | |
| $.each(options[key], function(key, value) { | |
| if (e.validity[key]) { |