Skip to content

Instantly share code, notes, and snippets.

View nfilzi's full-sized avatar

Nicolas Filzi nfilzi

View GitHub Profile
@jmondo
jmondo / copy_ruby_class.py
Last active May 2, 2022 20:33
Copy ruby class sublime plugin
# Installation
# Go to Tools > Developer > New Plugin, copy this code, save it.
# Then open the key bindings file and add something like
# { "keys": ["super+k", "super+c"], "command": "copy_ruby_class_window" }
# Usage
# With any ruby file open call this command to copy the class name (including all the nested modules) to clipboard.
# Shoutout to https://github.com/astrauka/TestRSpec plugin for the parsing/re logic
import sublime
@jaredcwhite
jaredcwhite / string_voodoo.rb
Last active June 23, 2021 18:14
JS in Ruby?!
### The Setup
Kernel.define_method(:"`") do |val|
val
end
def const(val)
val
end