- Go to Digital Ocean
- Create new ubuntu droplet
#language: pt-br | |
Funcionalidade: Pagamento com cartão de crédito | |
O cliente pode optar pelo pagamento com cartão de crédito ao finalizar a compra. O pagamento via cartão de crédito | |
deve ser autorizado pela operadora. No caso do pagamento por um cartão de crédito ser negado pela operadora, o cliente | |
deve ter a opção de selecionar outro cartão de crédito. | |
Contexto: | |
Dado que selecionei o produto "Nike Air Vapor Ace" |
def normalize_volume(file) | |
output = `ffmpeg -i '#{file}' -af "volumedetect" -f null /dev/null 2>&1` | |
raise "Error getting audio volume from #{file} (#{$?})" unless $?.success? | |
max_volume = output.scan(/max_volume: ([\-\d\.]+) dB/).flatten.first | |
mean_volume = output.scan(/mean_volume: ([\-\d\.]+) dB/).flatten.first | |
return if !max_volume || !mean_volume | |
max_volume = max_volume.to_f | |
mean_volume = mean_volume.to_f | |
target_volume = -14.0 | |
adjustment = target_volume - mean_volume |
#!/usr/bin/env bash | |
############### USAGE ############### | |
# | |
# 1. Create a new workspace on Cloud9 using the "Blank" template | |
# | |
# 2. Run this command in the console: | |
# bash <(curl -fsSL https://gist.githubusercontent.com/padde/3c6301f15cbd5025e131740dae33aa95/raw/c9-elixir.sh) | |
# | |
# 3. There is no step 3! |
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.
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
With its built-in Bluetooth capabilities, the ESP32 can act as a Bluetooth keyboard. The below code is a minimal example of how to achieve it. It will generate the key strokes for a message whenever a button attached to the ESP32 is pressed.
For the example setup, a momentary button should be connected to pin 2 and to ground. Pin 2 will be configured as an input with pull-up.
In order to receive the message, add the ESP32 as a Bluetooth keyboard of your computer or mobile phone:
- Go to your computers/phones settings
- Ensure Bluetooth is turned on
{ | |
"CreateClass": { | |
"prefix": "cc", | |
"body": [ | |
"Class ${TM_DIRECTORY/.*src[\\/\\\\](([^\\/\\\\]*)([\\/\\\\])?)|([\\/\\\\])([^\\/\\\\]*)/$2${3:+.}${5:+.}$5/g}.${TM_FILENAME_BASE} Extends ${1|%Persistent,Ens.BusinessOperation,Ens.Request,%SOAP.WebClient|} ", | |
"{", | |
"\t${2:/*Remember to do TDD Leopoldo*/}", | |
"}" | |
], | |
"description": "Create an auto-named class" |
# IFS=$'\n' arr=($(lv2ls)) && IFS=$'\n' arr2=($(lv2ls -n)) && for (( i=0; i<${#arr[*]}; ++i)); do printf "%s|%s\n" "${arr[$i]}" "${arr2[$i]}"; done | column -t -s "|" | |
file:///usr/lib/lv2/audio_to_audio.ingen/main.ttl audio_to_audio | |
file:///usr/lib/lv2/control_to_control.ingen/main.ttl control_to_control | |
file:///usr/lib/lv2/cv_to_cv.ingen/main.ttl cv_to_cv | |
file:///usr/lib/lv2/event_to_event.ingen/main.ttl event_to_event | |
file:///usr/lib/lv2/gen_amsynth_filte_out.ingen/main.ttl gen_amsynth_filte_out | |
file:///usr/lib/lv2/MonoEffect.ingen/MonoEffect.ttl Ingen Mono Effect Template | |
file:///usr/lib/lv2/MonoInstrument.ingen/MonoInstrument.ttl Ingen Mono Instrument Template | |
file:///usr/lib/lv2/StereoEffect.ingen/StereoEffect.ttl Ingen Stereo Effect Template | |
file:///usr/lib/lv2/StereoInstrument.ingen/StereoInstrument.ttl |