All of the following information is based on go version go1.17.1 darwin/amd64
.
GOOS | Out of the Box |
---|---|
aix |
✅ |
android |
✅ |
# Description: Boxstarter Script | |
# Author: Jess Frazelle <[email protected]> | |
# Last Updated: 2017-09-11 | |
# | |
# Install boxstarter: | |
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force | |
# | |
# You might need to set: Set-ExecutionPolicy RemoteSigned | |
# | |
# Run this boxstarter by calling the following from an **elevated** command-prompt: |
Author: Chris Lattner
# frozen_string_literal: true | |
# Uses pg's trigram extension to enable multi column searches | |
# | |
# add a search method to your model | |
# def self.search(query) | |
# SimilaritySearch.new(self, over: [:name, :email, :nickname]).search(query) | |
# end | |
# | |
# Then call it with Foo.search("bar") |
All of the below properties or methods, when requested/called in JavaScript, will trigger the browser to synchronously calculate the style and layout*. This is also called reflow or layout thrashing, and is common performance bottleneck.
Generally, all APIs that synchronously provide layout metrics will trigger forced reflow / layout. Read on for additional cases and details.
elem.offsetLeft
, elem.offsetTop
, elem.offsetWidth
, elem.offsetHeight
, elem.offsetParent
require 'benchmark/ips' | |
require 'faraday' | |
require 'excon' | |
require 'typhoeus'#, '~> 0.3.3' | |
require 'patron' | |
require 'net-http-persistent' | |
default_adapter = Faraday.new(:url => 'http://localhost') do |faraday| | |
faraday.adapter Faraday.default_adapter # make requests with Net::HTTP | |
end |
# A common concern,include into all doc modules | |
# | |
module BaseDoc | |
include Apipie::DSL::Concern | |
def namespace(namespace, options = {}) | |
@namespace = namespace | |
@namespace_name = options[:name] | |
end | |
attr_reader :namespace_name |