Original: https://www.twilio.com/blog/2018/05/generating-music-with-sonic-pi-and-ruby.html Generating Music with Sonic Pi and Ruby by Jessica Garson on May 17, 2018 Sonic Pi is an Integrated Development Environment (IDE) for writing music in Ruby. I write code with Ruby using the Sonic Pi IDE and sample myself screaming over it with Audacity under the artist name Messica Arson. The sound I create… Continue Reading [Reproduce]Generating Music with Sonic Pi and Ruby

sym是一个开源命令行实用程序和Ruby API,可以非常轻松地将敏感数据的可靠加密和解密添加到以任何语言编写的应用程序或项目中。与许多现有的加密工具不同,sym专注于缩小便利性和安全性之间的差距,提供增强的可用性和简化的ruby API和CLI。该库的主要目标是使加密变得非常容易和透明。 sym使用对称加密算法。这意味着使用相同的密钥来加密和解密数据。除密钥外,加密还使用随机IV矢量,该矢量根据每个加密自动生成并与数据序列化。加密结果是zlib压缩和base64编码,适合作为字符串存储。为方便起见,生成的密钥也是base64编码的。 最后,库使用任何常规密码提供加密,特别是支持受密码保护的加密密钥。自动密钥检测算法尝试将提供的密钥解析为文件名,环境变量名称,OS-X密钥链密码条目名称,密钥本身或默认密钥文件。 Original: https://github.com/kigster/sym Sym — Light-weight Symmetric Encryption for Humans        Discuss Sym on Gitter: March 10th, 2017. Please checkout the post “Dead Simple Encryption with Sym” that announces this library, and provides further in-depth discussion. Your donation of absolutely any amount is very much… Continue Reading [Reproduce]Sym — Light-weight Symmetric Encryption for Humans

使用语义化的异常(特别是基于继承的异常)描述错误是一种良好的编程习惯和建议。同时异常堆栈包含错误发生的代码位置,方便排错,以及对类似错误进行分组。 original: https://dev.to/appsignal/custom-exceptions-in-ruby-1n1b  AppSignal Custom Exceptions in Ruby  Robert Beekman  Jul 3 #ruby #learning #tutorial A little while ago we talked about exceptions in Ruby. This time we explore ways of creating custom exceptions specific to your app’s needs. Let’s say we have a method that handles the uploading of images while only allowing JPEG… Continue Reading [Reproduce]Custom Exceptions in Ruby

Snibox是一个自托管的代码片段管理器。 支持各种编程语言,Markdown,纯文本。 开发用于收集和组织代码段。 Original: https://github.com/snibox/snibox    Snibox is a self-hosted code snippets manager. Supports various programming languages, markdown, plain text. Developed to collect and organize code snippets. Table of Contents Demo Built with Deployment Development Todo License Demo Click the image below to launch demo: It may take up to 30… Continue Reading [Reproduce]Snibox is a self-hosted code snippets manager

现有的Ruby覆盖工具无法处理(定位或统计)eval中执行的代码。 这是因为Ruby内置的coverage模块没有公开必要的钩子来捕获它。 Covered使用Ruby 2.6,RubyVM :: AST.parse(源代码)存在,它为我们提供了一个精细的工具来计算初始源代码覆盖率(即哪些行是可执行的),从而可以计算“模板”的覆盖范围。