- Our machine's time zone.
# Check our system time zone.
Time.now.getlocal.zone
# = YERB | |
# | |
# Who needs HAML when you have YAML + ERB? ;) | |
# | |
# See example.yaml below for an example. You can run this code | |
# by cloning this gist and then `ruby _yerb.rb example.yaml`. | |
# | |
# Notice that you need Ruby 1.9 so the hash order is preserved. | |
# Obviously, this is just for fun. Definitely slow as hell. | |
# |
require 'bundler/vlad' | |
require 'vlad/rvm' | |
set :default_stage, 'production' | |
set :shared_paths, { | |
'log' => 'log', | |
'system' => 'public/system', | |
'pids' => 'tmp/pids', | |
'sockets' => 'tmp/sockets', |
# See rails source: | |
# https://github.com/rails/rails/blob/master/actionpack/lib/action_controller/caching/pages.rb | |
# | |
# Turn on caching in development, by changing this line to true in config/environments/development.rb: | |
# | |
# config.action_controller.perform_caching = true | |
# | |
# Then run: | |
# | |
# bundle exec rake pages:cache |
class Users::Register | |
def self.call(attributes) | |
new(attributes).call | |
end | |
def initialize(attributes) | |
@attributes = attributes | |
end |
--colour | |
-I app |
RSpec.configure do |config| | |
config.around do |example| | |
# For examples using capybara-webkit for example. | |
# Remove this if you don't use it or anything similar | |
if example.metadata[:js] | |
example.run | |
ActiveRecord::Base.connection.execute("TRUNCATE #{ActiveRecord::Base.connection.tables.join(',')} RESTART IDENTITY") | |
else | |
ActiveRecord::Base.transaction do |
var engine: AVAudioEngine! | |
var file: AVAudioFile! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view. | |
engine = AVAudioEngine() | |
audioFile = AVAudioFile(forReading: filePathUrl, error: nil) |
// | |
// SVD.swift | |
// | |
// Created by Dongwan Kim on 2015. 10. 30.. | |
// | |
/* MATLAB svd(X) | |
For the matrix |
# https://github.com/marketplace/actions/checkout | |
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#issue-comment-event-issue_comment | |
# https://devcenter.heroku.com/changelog-items/775 | |
# https://github.com/actions/checkout#fetch-all-history-for-all-tags-and-branches | |
# https://github.com/cirrus-actions/rebase#installation | |
# https://github.com/actions/heroku/issues/10 | |
--- | |
name: Deploy to HEROKU_APP_NAME | |
on: |