Understand your Mac and iPhone more deeply by tracing the evolution of Mac OS X from prelease to Swift. John Siracusa delivers the details.
You've got two main options:
require 'fileutils' | |
# Loop through all .jpg and .png files in the current directory | |
Dir.glob("{*.jpg,*.png}").each do |img| | |
# Construct the output filename with .webp extension | |
output_filename = "#{File.basename(img, File.extname(img))}.webp" | |
# Execute ffmpeg command to convert the image | |
system("ffmpeg -i '#{img}' '#{output_filename}'") | |
end |
# Make sure to have prepared statements enabled. | |
# config/database.yml | |
# test: | |
# database: ... | |
# prepared_statements: true | |
# Add this to the top scope of test/test_helper.rb or spec/rails_helper.rb and | |
# run tests as usual. | |
queries = Hash.new(0) |
# syntax = docker/dockerfile:1 | |
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile | |
ARG RUBY_VERSION=3.2.2 | |
FROM registry.docker.com/library/ruby:$RUBY_VERSION-slim as base | |
# Rails app lives here | |
WORKDIR /rails | |
# Set production environment |
# To display flash messages inside XHR responses, | |
# place this file in app/controllers/concerns/ | |
# then include it in ApplicationController | |
module RenderFlashNowForXhr | |
extend ActiveSupport::Concern | |
private | |
# Flash messages are not directly available for XHR requests |
{ | |
"1594486665971892224": { | |
"id": 1594486665971892224, | |
"user_id": 16298441, | |
"user": null, | |
"created_at": 1668990219, | |
"text": "if you tell me The Mask is standing behind me i will turn around and try to look at it. Because my dumb ass thinks The Mask is real", | |
"source": "<a href=\"https://mobile.twitter.com\" rel=\"nofollow\">Twitter Web App</a>", | |
"retweet_count": 670, | |
"favorite_count": 7772, |
<?php | |
/** | |
* Twitter timeline backup | |
* | |
* Required: | |
* - PHP 8.1+ | |
* - cURL extension enabled | |
* - Windows: | |
* - download https://windows.php.net/downloads/releases/php-8.1.12-Win32-vs16-x64.zip (or a newer available version) | |
* - unzip to a folder of your choice |
function! IAmAPutsEmojiDebugger() | |
ruby <<EOS | |
separator = rand(0x1F601..0x1F64F).chr('UTF-8') | |
VIM::command("normal! oputs '#{separator}' * (`tput cols`.to_i / 2)") | |
VIM::command('normal! oputs "#{__FILE__}:#{__LINE__}"') | |
VIM::command("normal! oputs '#{separator}' * (`tput cols`.to_i / 2)") | |
EOS |
DidYouMean::SPELL_CHECKERS.merge
deprecate warnings anymore.database.yml
with aliases and secrets.yml
with aliases.