mini-geek

Ruby

Ruby 小技巧(三) —— lamdba 的使用

关于 Lambda、Proc、和 Block 的区别网上已经有很多文章了,所以在这里就不过多赘述。这里讲讲一些关于 lambda 使用上的技巧。 Lambda 的创建方式 使用 lambda 语法 greeting = …

2022-11-30 0条评论 146次阅读 0人点赞 阅读全文
Ruby

Ruby 小知识 (一) $/ 是什么?

环境 Ruby: 3.1.0 最近在某个 gem 的代码里边发现了这样的代码 gem.files = `git ls-files`.split($/) 这个 "$/" 引起了我的注意。在网上查了下,原来这是一个 Ruby…

2022-07-17 0条评论 557次阅读 0人点赞 阅读全文
Ruby On Rails

Rails 7 ActionCable 的使用

环境 Rails: 7.0.3 Ruby: 3.1.1 一、新建一个 Rails 应用 $ rails new demo --api 二、安装 ActionCable 说是安装,实际上只要把 ActionCable 的 …

2022-07-12 0条评论 464次阅读 1人点赞 阅读全文
Vue

Vue 配置完 Vuex 后,this.$store 为 undefined

环境 vue: 2.7.2 问题 参照 Vuex 的官网安装完 vuex 之后,发现使用 this.$store 去获取状态时,this.$store 的值是 undefined 。 原因 谷歌无果之后,又在官网上翻了下…

2022-07-11 0条评论 547次阅读 0人点赞 阅读全文
Linux

Linux highlight 语法高亮工具

使用 highlight 可以带语法高亮地把源代码转换成 HTML, XHTML, RTF, LaTeX, TeX, BBCode, SVG, XTERM 格式的文件,或者ANSI转义序列,目前支持大约 160 种语言。…

2022-05-30 0条评论 600次阅读 0人点赞 阅读全文
Linux

Linux 的 watch 命令 —— 间隔时间执行命令并显示输出

前言 这是一个很有用的命令,可以用来监看命令的执行结果。更重要的是,它是系统提供的,所以可以跟各种编程语言和命令组合在一起。 环境 OS: Linux 参数 这里只列举常用的几个参数 -n: 间隔时间 -d: 高亮变化的…

2022-05-14 0条评论 529次阅读 0人点赞 阅读全文
Ruby On Rails

Ruby On Rails 7 提示`Redis.current=`将被废弃

环境 ruby: 3.1.1 Ruby On Rails: 7.0.2.3 redis-rb: 4.6 问题 在config/initializers/redis.rb中定义 redis 的配置后,提示如下信息 `Red…

2022-04-13 0条评论 726次阅读 0人点赞 阅读全文
Ruby

Rails 中的 config.force_ssl = true 的作用

引言 在config/environments/production.rb配置文件中有这么一行配置(默认没有开启) config.force_ssl = true 作用 将 http 的请求重定向到 https 设置 c…

2022-02-22 0条评论 1,354次阅读 0人点赞 阅读全文
Tools

Teamviewer 设备达到限制,移除旧设备的方法

因为重装了系统,旧的系统的 teamviewer 没有移除登录,在新的系统登录时,teamviewer 提示设备达到限制了,这里介绍下移除设备的方法 登录 https://login.teamviewer.com/Log…

2021-12-26 0条评论 857次阅读 0人点赞 阅读全文
Linux

Manjaro 21.2 i3wm 安装搜狗输入法

环境 Manjaro: 21.2rc WM: i3wm 安装 sudo pacman -S fcitx-im sudo pacman -S fcitx-configtool sudo pacman -S fcitx-so…

2021-12-11 0条评论 1,133次阅读 1人点赞 阅读全文
  • 1
  • 2
  • 3
  • 4
  • >
  • »

Ian Lynx
业精于勤荒于嬉,行成于思毁于随

搜索文章

  • 最新文章
  • 热点文章
  • 随机文章
  • 最新
  • 热点
  • 随机
    Ruby 小技巧(三) —— lamdba 的使用 Ruby 小技巧(三) —— lamdba 的使用 Ruby 小知识 (一) $/ 是什么? Ruby 小知识 (一) $/ 是什么? Rails 7 ActionCable 的使用 Rails 7 ActionCable 的使用 Vue 配置完 Vuex 后,this.$store 为 undefined Vue 配置完 Vuex 后,this.$store 为 undefined Linux highlight 语法高亮工具 Linux highlight 语法高亮工具 Linux 的 watch 命令 —— 间隔时间执行命令并显示输出 Linux 的 watch 命令 —— 间隔时间执行命令并显示输出
  • 暂时没有数据
    Rails 的 wrap_parameter 对签名的影响 Rails 的 wrap_parameter 对签名的影响 Linux highlight 语法高亮工具 Linux highlight 语法高亮工具 docker-compose elasticsearch 一直报elasticsearch-env: line 43: which: command not found docker-compose elasticsearch 一直报elasticsearch-env: line 43: which: command not found Vagrant 启动 ubuntu 20.04 时报错,mount /vagrant file 失败 Vagrant 启动 ubuntu 20.04 时报错,mount /vagrant file 失败 deepin wine wechat 输入框中文显示为方块(乱码) deepin wine wechat 输入框中文显示为方块(乱码) Jenkins + Ansible 部署,sudo 提示密码不正确 Jenkins + Ansible 部署,sudo 提示密码不正确

标签聚合

ubuntu centos memcache nginx php trap shadowsocks manjaro 软件 ansible ruby cookie wechat laravel Hash gem Array Ruby On Rails jenkins i3wm

分类

  • Book (1)
  • Deploy (5)
  • Docker (3)
  • Javascript (1)
  • Linux (16)
  • Manjaro (4)
  • Memcache (1)
  • PHP (5)
  • Ruby (7)
  • Ruby On Rails (21)
  • Tools (1)
  • Trap (2)
  • Ubuntu (4)
  • Vue (1)
  • Web (2)
  • Wordpress (1)

文章归档

  • 2022年11月 (1)
  • 2022年7月 (3)
  • 2022年5月 (2)
  • 2022年4月 (1)
  • 2022年2月 (1)
  • 2021年12月 (3)
  • 2021年10月 (2)
  • 2021年8月 (1)
  • 2021年7月 (2)
  • 2021年5月 (4)
  • 2021年4月 (1)
  • 2021年3月 (3)
  • 2021年2月 (2)
  • 2021年1月 (1)
  • 2020年12月 (4)
  • 2020年11月 (2)
  • 2020年9月 (2)
  • 2020年7月 (2)
  • 2020年6月 (2)
  • 2020年5月 (3)
  • 2020年4月 (4)
  • 2020年1月 (2)
  • 2019年8月 (2)
  • 2019年7月 (2)
  • 2019年5月 (8)
  • 2019年4月 (6)

Copyright 2019-2023 mini-geek. All Rights Reserved.
Theme Kratos made by Vtrois