rvm implode
You should have something like this left from RVM. Delete it from the file. ``[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"```
# frozen_string_literal: true | |
class CustomFormatter | |
RSpec::Core::Formatters.register self, :example_failed | |
def initialize(output) | |
@output = output | |
end | |
def example_failed(notification) |
# Cleans up branches like: | |
# if Shopify.rails_next? | |
# # Rails 5 login | |
# else | |
# # Rails 4 login | |
# end | |
module RuboCop | |
module Cop | |
module ShopifyRails | |
class RailsNextUnless < Cop |
(function() { | |
// Adding upload button to Trix toolbar on initialization | |
document.addEventListener('trix-initialize', function(e) { | |
trix = e.target; | |
toolBar = trix.toolbarElement; | |
// Creation of the button | |
button = document.createElement("button"); | |
button.setAttribute("type", "button"); | |
button.setAttribute("class", "attach"); |
If you're writing bare-bones javascript for the browser, creating Chrome Apps and Extensions, or using remote coding apps like cloud9, Koding, or Nitrous, you may not need to install Ubuntu. Some tutorials can be done entirely within the browser. The tradeoff is that you won't have a full-featured command line, and you may hit a point where you can't install something that you need.
To start coding within Chrome OS, install Text or Caret as a text editor. (Text stores files in Google Docs and Caret stores the files locally on your machine, which may help you choose.) After that, you're good to go, since Chromebooks come with a browser installed.
brew tap homebrew/cask-fonts
, brew tap homebrew/cask-versions
)brew install zsh
which zsh
to /etc/shells
and 2) changing the default shell with chsh -s $(which zsh)
brew install zsh-autosuggestions
(be sure to follow the instructions output by brew to update your ~/.zshrc)npm install -g spaceship-prompt
Ziel: Wir wollen beliebige Dateien auf das System schmeißen und diese im Volltext durchsuchbar machen sowie Vorschaubilder generieren.
Carrierwave: File Uploads für Rails und einfaches Processing (primär Bildverarbeitung) Docsplit: Dokumente auseinandernehmen, Texte, Bilder und einzelne Seiten extrahieren Carrierwave-Backgrounder: Carrierwave Processing in Background-Jobs auslagern
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger
>> a=lambda{:this};b=lambda{:this};a==b | |
=> true | |
>> a=lambda{:this} | |
=> #<Proc:0x007f9d5a8c4430@(irb):24 (lambda)> | |
>> b=lambda{:this} | |
=> #<Proc:0x007f9d5a8bade0@(irb):25 (lambda)> | |
>> a==b | |
=> false |
$ ruby -v | |
ruby 1.9.2p136 (2010-12-25) | |
$ ruby symbol_literals.rb | |
valid as first char: | |
@$_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz | |
valid as middle char: | |
_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 | |
valid as end char: | |
!_=?ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 |