- Quick Time
ffmpeg
- Open Quick Time
- File > New > Screen Recording
- Click the red button.
| diff --git a/app/javascript/Main.elm b/app/javascript/Main.elm | |
| index 7b2be6c..f5c7b74 100644 | |
| --- a/app/javascript/Main.elm | |
| +++ b/app/javascript/Main.elm | |
| @@ -1,54 +1,69 @@ | |
| module Main exposing (..) | |
| +import Browser | |
| import Html exposing (Html, h1, text) | |
| import Html.Attributes exposing (style) |
| unzip -p some.docx word/document.xml | sed -e 's/<[^>]\{1,\}>//g; s/[^[:print:]]\{1,\}//g' |
| # ... | |
| RSpec.configure do |config| | |
| # ... | |
| config.before(:each, type: :system, js: true) do | |
| desired_capabilities = Selenium::WebDriver::Remote::Capabilities.chrome( | |
| 'chromeOptions' => { | |
| 'prefs' => { | |
| 'download.default_directory' => Rails.root.join('spec/downloads'), | |
| 'download.prompt_for_download' => false, | |
| 'plugins.plugins_disabled' => ["Chrome PDF Viewer"] |
I hereby claim:
To claim this, I am signing this object:
| (def init-data | |
| {:session {:user/id 1 | |
| :messages [{:message/id 1}]} | |
| :messages [{:message/id 1 :text "Message 1"} | |
| {:message/id 2 :text "Message 1"}] | |
| :users [{:user/id 1 :email "[email protected]"} | |
| {:user/id 2 :email "[email protected]"}]}) | |
| (defui Message | |
| static om/Ident |
| namespace :db do | |
| task export: [:environment] do | |
| conn = ActiveRecord::Base.connection_config | |
| cmd = "PGPASSWORD=#{conn[:password]} pg_dump -Fc -h localhost -U #{conn[:username]} #{conn[:database]} > /tmp/#{conn[:database]}.sql" | |
| puts cmd | |
| system cmd | |
| end | |
| task :import => [:environment] do | |
| conn = ActiveRecord::Base.connection_config |
| # As cron runs with a restricted environment, we need to provide it with the correct path for our ruby | |
| # Define the following jobs: | |
| job_type :rbenv_rake, %Q{export PATH=/usr/local/rbenv/shims:/usr/local/rbenv/bin:$PATH; eval "$(rbenv init -)"; \ | |
| cd :path && RAILS_ENV=:environment bundle exec rake :task --silent :output } | |
| job_type :rbenv_runner, %Q{export PATH=/usr/local/rbenv/shims:/usr/local/rbenv/bin:$PATH; eval "$(rbenv init -)"; \ | |
| cd :path && bundle exec rails runner -e :environment ':task' :output } | |
| # And then use them in your schedule |
| (defn foo [first & rest] | |
| (apply bar first rest) | |
| ) | |
| (foo :name [:a :b] [:c :d]) | |
| ;; How can I ensure that bar is called like this: | |
| ;; (bar :name [:a :b] [:c :d]) | |
| ;; | |
| ;; and not like this: | |
| ;; |
| class RegexpHash < Hash | |
| def add_word(word, hsh = nil) | |
| hsh ||= self | |
| return unless (word && word.length > 0) | |
| key = word.slice(0..0) | |
| hsh[key] ||= {} | |
| add_word(word.slice(1..-1), hsh[key]) | |
| end |