In programming languages, literals are textual representations of values in the source code. This is a syntactical concept.
Some examples:
7 # integer literalIn programming languages, literals are textual representations of values in the source code. This is a syntactical concept.
Some examples:
7 # integer literal| #!/usr/bin/env bash | |
| # Abort sign off on any error | |
| set -e | |
| # Start the benchmark timer | |
| SECONDS=0 | |
| # Repository introspection | |
| OWNER=$(gh repo view --json owner --jq .owner.login) |
DidYouMean::SPELL_CHECKERS.merge deprecate warnings anymore.database.yml with aliases and secrets.yml with aliases.| -- Script to create Oracle's "SCOTT" schema with tables | |
| -- EMP, DEPT, BONUS, SALGRADE, DUMMY. Originally Oracle's demobld.sql. | |
| -- | |
| -- In a format suitable for pasting into SQL Fiddle for PostgreSQL: | |
| -- http://sqlfiddle.com/#!17 | |
| create table dept( | |
| deptno decimal(2,0) not null, | |
| dname varchar(14), | |
| loc varchar(13)); | |
| create table emp( |
Tuesday, February 25, 2020
Wednesday, May 27, 2020 - updated customer_churn.ipynb for version 7.7.0
Monday, November 16, 2020 - updated for version 7.10 and eland 7.10b
Monday, September 20, 2021 - updated customer_churn.ipynb for version 7.14
Monday, February 8, 2022 - updated customer_churn.ipynb for version 8.0
| require 'rails_helper' | |
| RSpec.describe '/oauth/', type: :request do | |
| let(:application) { create(:doorkeeper_application, confidential: false) } | |
| let(:user) { create(:user, email: 'joe@example.com', password: "PASSWORD") } | |
| let(:valid_params) do | |
| { | |
| username: user.email, | |
| password: "PASSWORD", | |
| grant_type: 'password', |
| # run with | |
| # ruby tools/demo-option-parser.rb --skip-download | |
| # or | |
| # bundle exec rails runner tools/demo-option-parser.rb --skip-download | |
| require 'optparse' # not needed for rails runner | |
| skip = nil | |
| p ARGV # ["--skip-download"] |
I think most of us realize that macOS isn't a Linux OS, but what that also means is that instead of shipping with the GNU flavor of command line tools, it ships with the FreeBSD flavor. As such, writing shell scripts which can work across both platforms can sometimes be challenging.
Homebrew can be used to install the GNU versions of tools onto your Mac, but they are all prefixed with "g" by default.
All commands have been installed with the prefix "g". If you need to use these commands with their normal names, you can add a "gnubin" directory to your PATH from your bashrc.