A (more) complete cheatsheet for Arel, including NamedFunction functions, raw SQL and window functions.
posts = Arel::Table.new(:posts)
posts = Post.arel_table # ActiveRecord| --- | |
| # Archive of http://www.columbia.edu/~alan/schemas/common/jsonapi.yaml | |
| openapi: 3.0.2 | |
| info: | |
| version: 1.0.0 | |
| title: "{json:api} Specification" | |
| description: > | |
| An include file to define the [{json:api} 1.0 specification](http://jsonapi.org/format). | |
| N.B. I've got some confusion going on between a validating a jsonapi schema and defining one! |
| require "openssl" | |
| require "securerandom" | |
| ########################## | |
| ### iOS/Android Device ### | |
| ########################## | |
| # Installation id - returned by the registration request | |
| uuid = "E1D160C7-F6E8-48BC-8687-63C696D910CB" | |
| uuid_bytes = uuid.scan(/[0-9A-Z]{2}/).map { |s| s.to_i(16) }.pack("C*") |
| JSONAPIObject: | |
| description: Includes the current JSON:API version for this specification as well as optional meta information | |
| type: object | |
| required: | |
| - version | |
| properties: | |
| version: | |
| type: string | |
| default: '1.0' | |
| example: '1.0' |
| #!/usr/bin/env ruby | |
| require 'date' | |
| require 'xml' | |
| def htmlit(infile) | |
| lines = File.readlines(infile) | |
| /<!--\s+(.+)\s+-->/.match lines.shift | |
| lines.unshift('<h2>%s</h2>' % $1) | |
| html = '' | |
| lines.each do |line| |
This work is released under a Creative Commons Attribution-NoDerivatives 4.0 International License.
"OpenPGP" refers to the OpenPGP protocol, in much the same way that HTML refers to the protocol that specifies how to write a web page. "GnuPG", "SequoiaPGP", "OpenPGP.js", and others are implementations of the OpenPGP protocol in the same way that Mozilla Firefox, Google Chromium, and Microsoft Edge refer to software packages that process HTML data.
TL;DR: what was the bug? (spoilers!): https://gist.github.com/trptcolin/6039cd454acfe6e820d13cbdce5e4064
JEKYLL_ENV=production bundle exec jekyll upload -e staging
Liquid Exception: ExecJS::ProgramError in /_layouts/default.htmlnode --version
bundle open jekyll-s3-upload to read code & see this command is doing
Jekyll::Commands::Build.build(site, jekyll_config)) - https://github.com/8thlight/jekyll-s3-upload/blob/60dd52f937db21d1265cb9a7fdcdf438730e32d2/lib/jekyll/commands/s3_upload.rb#L51bundle exec jekyll build| FROM ruby:2.6.5-alpine | |
| RUN apk add --update --no-cache bash build-base nodejs sqlite-dev tzdata postgresql-dev yarn | |
| RUN gem install bundler:2.1.4 | |
| WORKDIR /usr/src/app | |
| COPY package.json yarn.lock ./ | |
| RUN yarn install --check-files |
The always enthusiastic and knowledgeable mr. @jasaltvik shared with our team an article on writing (good) Git commit messages: How to Write a Git Commit Message. This excellent article explains why good Git commit messages are important, and explains what constitutes a good commit message. I wholeheartedly agree with what @cbeams writes in his article. (Have you read it yet? If not, go read it now. I'll wait.) It's sensible stuff. So I decided to start following the