Se le hai su un altro computer:
scp -r user@old-mac:~/.ssh ~/.sshOppure, se le hai su una chiavetta o drive, copiale manualmente nella cartella:
| -- rebuild_from_audio.lua – crea una timeline che contiene solo | |
| -- i segmenti dove l'audio esiste (isole dopo Detect Silence). | |
| -- da usare dopo aver fatto remove silence | |
| -------------------------------------------------- | |
| -- CONFIG | |
| local srcVTrack, srcATrack = 1, 1 -- tracce di partenza (dove c'è il materiale) | |
| local dstVTrack, dstATrack = 1, 1 -- tracce destinazione nella nuova timeline | |
| local newTLName = "AutoCut_fromAudio" |
| #!/bin/bash | |
| cd /path/to/my/app # Go to the app path | |
| echo "Searching for Ruby method definitions..." | |
| method_names=$(git grep -h -o -E '^ *def +([a-zA-Z_][a-zA-Z0-9_]*)' -- '*.rb' | sed -E 's/^ *def +//' | sort -u) | |
| if [ -z "$method_names" ]; then | |
| echo "No Ruby method found, or no .rb files found." |
| #!/bin/bash | |
| # Verify is this is a git repo | |
| if ! git rev-parse --git-dir > /dev/null 2>&1; then | |
| echo "Questo non è un repository Git." | |
| exit 1 | |
| fi | |
| IFS=$'\n' # Change the line separator to avoid breaking lines on spaces |
| # frozen_string_literal: true | |
| # To obtain a google mail's password, you need to: | |
| # 1. Go to gmail | |
| # 2. in the top right corner click on the menu icon and select 'Account' | |
| # 3. Click on 'Sign in & Security' | |
| # 4. Scroll down the 'Security' and find a section called 'Signing in to Google'. | |
| # 5. Click on "App passwords" | |
| # 6. You should see a dropdown labelled 'Select App'. Select Mail. | |
| # 7. For the 'on my device' dropdown select 'Other' and type in commandline or whatever you want to call the app. |
| # Code by PZac | |
| require 'yaml_sorter' | |
| namespace :yaml do | |
| task :fix_all do | |
| Dir.glob('config/locales/**/*.yml').each do |f| | |
| YamlSorter.new(f).fix! | |
| end | |
| end |
Ruby on Rails is the framework of choice for web apps at Shopify. It is an opinionated stack for quick and easy development of apps that need standard persistence with relational databases, an HTTP server, and HTML views.
By design, Rails does not define conventions for structuring business logic and domain-specific code, leaving developers to define their own architecture and best practices for a sustainable codebase.
| def wait_for_turbo | |
| has_css?('.turbo-progress-bar', visible: true) | |
| has_no_css?('.turbo-progress-bar') | |
| end |
| # Windows and WSL | |
| def clip_copy(input) | |
| str = input.to_s | |
| IO.popen('clip.exe', 'w') { |f| f << str } | |
| str | |
| end | |
| # Mac |
| int redPin = 9; | |
| int greenPin = 10; | |
| int bluePin = 11; | |
| int buttonPin = 2; | |
| int buttonState = 0; | |
| int lastButtonState = 0; | |
| char cmdBuffer[2]; | |
| int counter = 0; |