Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
# adapted from | |
# http://adamniedzielski.github.io/blog/2014/11/25/my-take-on-services-in-rails/ | |
class CreateUserAccount | |
attr_reader :user | |
def initialize(send_email_service: SendEmail.new, generate_token_service: GenerateToken.new) | |
@send_email_service = send_email_service | |
@generate_token_service = generate_token_service | |
end |
it: | |
devise: | |
failure: | |
invited: "Hai un invito in sospeso, accettalo per completare la creazione del tuo account." | |
invitations: | |
send_instructions: "Un'email di invito è stata inoltrata a %{email}." | |
invitation_token_invalid: "Il token di invito fornito non è valido!" | |
updated: "La tua password è stata impostata correttamente. Ora sei connesso." | |
updated_not_active: "La tua password è stata impostata correttamente." | |
no_invitations_remaining: "Non sono più disponibili inviti." |
# Italian translation for Devise 4.2 | |
# Date: 2016-08-01 | |
# Author: epistrephein, iwan | |
# Note: Thanks to xpepper (https://gist.github.com/xpepper/8052632) | |
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n | |
it: | |
devise: | |
confirmations: | |
confirmed: "Il tuo account è stato correttamente confermato." |
require 'pi_piper' | |
require 'ostruct' | |
laser = PiPiper::Pin.new(pin: 17, direction: :out) | |
alarm = PiPiper::Pin.new(pin: 18, direction: :out) | |
vibration = PiPiper::Pin.new(pin: 27, direction: :in) | |
i2c = PiPiper::I2C.new | |
def turn_on(pin) | |
pin.off |