Use Apache Benchmark (ab) to perform tests over each Ruby version.
There are two mainly ways to do that:
defmodule GoBikesWeb.CompareSelectBikeView do | |
use Phoenix.LiveView | |
alias GoBikesWeb.Router.Helpers, as: Routes | |
alias GoBikes.Bikes | |
def render(assigns) do | |
GoBikesWeb.CompareView.render("show.html", assigns) | |
end |
# Best Nginx configuration for security. | |
# | |
# Score A in https://securityheaders.io. | |
# Score A+ in https://www.ssllabs.com/ssltest. | |
# | |
# References | |
# | |
# - https://letsecure.me/secure-web-deployment-with-lets-encrypt-and-nginx/ | |
# - https://raymii.org/s/tutorials/Strong_SSL_Security_On_nginx.html | |
# - https://gist.github.com/plentz/6737338 |
# This is the lint file for .scss files. It uses https://github.com/causes/scss-lint | |
# to search through .scss files and point out errors. | |
# You can view these errors in your editor. | |
# | |
# Here's a link to all the default configurations | |
# https://github.com/causes/scss-lint/blob/master/config/default.yml | |
# below is our settings. | |
linters: | |
BangFormat: |
{ | |
"auto_complete": true, | |
"auto_complete_selector": "source - comment", | |
"auto_indent": true, | |
"bold_folder_labels": true, | |
"close_windows_when_empty": true, | |
"color_scheme": "Packages/Colorsublime - Themes/Afterglow.tmTheme", | |
"detect_indentation": true, | |
"draw_indent_guides": true, | |
"enable_tab_scrolling": false, |
{ | |
"auto_complete": true, | |
"auto_complete_selector": "source - comment", | |
"auto_indent": true, | |
"bold_folder_labels": true, | |
"close_windows_when_empty": true, | |
"color_scheme": "Packages/Theme - Cobalt2/cobalt2.tmTheme", | |
"detect_indentation": true, | |
"draw_indent_guides": true, | |
"enable_tab_scrolling": false, |
package main | |
import ( | |
"fmt" | |
"net" | |
"os" | |
) | |
/* A Simple function to verify error */ | |
func CheckError(err error) { |
package main | |
import ( | |
"database/sql" | |
"fmt" | |
"log" | |
"os" | |
"strconv" | |
_ "github.com/go-sql-driver/mysql" |
package main | |
import ( | |
"bytes" | |
"code.google.com/p/go.crypto/ssh" | |
"fmt" | |
"io/ioutil" | |
"os" | |
) |
{ | |
"auto_complete": true, | |
"auto_complete_selector": "source - comment", | |
"auto_indent": true, | |
"bold_folder_labels": true, | |
"detect_indentation": true, | |
"draw_white_space": "all", | |
"enable_tab_scrolling": false, | |
"ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": |