Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"| # edit and save this file to /usr/lib/systemd/system/clash.service | |
| [Unit] | |
| Description=clash | |
| After=network.target | |
| [Service] | |
| WorkingDirectory="your home directory"/.config/clash | |
| ExecStart="your home directory"/.config/clash/start-clash.sh | |
| ExecStop="your home directory"/.config/clash/stop-clash.sh | |
| Environment="HOME=your home directory" |
Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"| require 'matrix' | |
| def regression x, y, degree | |
| x_data = x.map {|xi| (0..degree).map{|pow| (xi**pow) }} | |
| mx = Matrix[*x_data] | |
| my = Matrix.column_vector y | |
| ((mx.t * mx).inv * mx.t * my).transpose.to_a[0].reverse | |
| end |
| # frozen_string_literal: true | |
| require "bundler/inline" | |
| gemfile(true) do | |
| source "https://rubygems.org" | |
| git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
| gem "rails", github: "rails/rails", branch: "main" |
| # frozen_string_literal: true | |
| require "bundler/inline" | |
| gemfile(true) do | |
| source "https://rubygems.org" | |
| git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
| gem "rails", github: "rails/rails", branch: "main" |
I hereby claim:
To claim this, I am signing this object:
| require 'singleton' | |
| require 'forwardable' | |
| class Postman | |
| include Singleton | |
| class << self | |
| extend Forwardable | |
| def_delegators :instance, :post, :delete |