form_with |
HTTP request | XHR / fetch() |
|---|---|---|
| 6.0 | local: true |
(default) |
| 6.1 | (default) | local: false |
link_to, form_for: defaults to local. Use remote: true to make remote.
| require 'mail' | |
| require 'net/imap' | |
| # Add IMAP move to Mail. | |
| module Mail | |
| # In addition to the options supported by the IMAP class: | |
| # | |
| # move: mailbox to which to move emails. This makes the :delete_after_find flag irrelevant. | |
| # |
| { | |
| "description": "Left shift -> {", | |
| "manipulators": [ | |
| { | |
| "from": { | |
| "key_code": "left_shift" | |
| }, | |
| "to_if_alone": { | |
| "key_code": "open_bracket", | |
| "modifiers": ["left_shift"] |
| $ mkdir wrapper && cd wrapper | |
| $ echo 'source "https://rubygems.org"' > Gemfile | |
| $ echo 'gem "rails", github: "rails/rails", branch: "main"' >> Gemfile | |
| $ bundle | |
| $ cat ~/.railsrc | |
| --database=postgresql | |
| --skip-action-mailbox | |
| --skip-action-text | |
| --skip-sprockets |
form_with |
HTTP request | XHR / fetch() |
|---|---|---|
| 6.0 | local: true |
(default) |
| 6.1 | (default) | local: false |
link_to, form_for: defaults to local. Use remote: true to make remote.
| <html> | |
| <head> | |
| <title><%= title %></title> | |
| <!-- ... --> | |
| </head> | |
| <!-- ... --> | |
| </html> |
| let s:async_sync_id = 0 | |
| let s:async_sync_outputs = {} | |
| function! s:next_async_sync_id() | |
| let async_sync_id = s:async_sync_id | |
| let s:async_sync_id += 1 | |
| return async_sync_id | |
| endfunction | |
| function! s:async_sync_output(async_sync_id, output) |
Download latest Raspbian Lite (currently Buster) from here.
Plug SD card into computer.
Unzip Raspbian image and install on SD card. This should overwrite everything on the SD card; it shouldn't be necessary to format first.
diskutil list # make note of disk of SD card; eg. disk4
diskutil unmountDisk /dev/disk4
sudo dd bs=1m if=<path of raspbian image> of=/dev/rdisk4 conv=sync # rdisk4 is faster than disk4
| let g:gitgutter_signs=0 | |
| function! GitStatus() | |
| return join(filter(map(['A','M','D'], {i,v -> v.': '.GitGutterGetHunkSummary()[i]}), 'v:val[-1:]'), ' ') | |
| endfunction | |
| set statusline+=%{GitStatus()} |
| { | |
| "global": { | |
| "check_for_updates_on_startup": true, | |
| "show_in_menu_bar": true, | |
| "show_profile_name_in_menu_bar": false | |
| }, | |
| "profiles": [ | |
| { | |
| "complex_modifications": { | |
| "parameters": { |
| #!/usr/bin/env ruby | |
| # Exports albums and their photos to plain directories and files. | |
| # | |
| # Built for Photos.app v1.5 on OS X 10.11.6. | |
| # | |
| # See also: | |
| # https://github.com/koraktor/gallerist | |
| # | |
| # TODO: |