These are the few steps I ran to completely remove RVM and install rbenv:
To remove pretty much everything:
$ rvm implode| using System; | |
| var x = 1; | |
| var y = x++; | |
| Console.WriteLine($"Value of y should be 2. It actually is {y}"); |
| fn inverse_captcha(input: &str) -> u32 { | |
| if input.len() <= 1 { | |
| return 0u32; | |
| } | |
| let mut prev = 0; | |
| let mut total: u32 = 0; | |
| let mut numbers: Vec<u32> = input.chars().map(|c| c.to_digit(10).unwrap()).collect(); | |
| let firstNumber = numbers[0]; |
| # | |
| # Elasticsearch Service | |
| # | |
| # Tested with ES v1.5.2 | |
| # | |
| # Doesn't currently support a configurable JVM. | |
| # | |
| # Adapted from the SysVInit script ES provides, which | |
| # can be found here: | |
| # |
| var $ = require('shimmed-jquery') | |
| require('plugin.jquery') | |
| $('.element').plugin() |
| var MyView = Backbone.View.extend({ | |
| events: function () { | |
| var mobile = false | |
| if (mobile) { | |
| return { | |
| "touch": function () { console.log('touched') } | |
| } | |
| } else { |
| var express = require('express') | |
| , app = express() | |
| , server = require('http').createServer(app) | |
| , io = require('socket.io').listen(server) | |
| , five = require('johnny-five') | |
| , board = new five.Board({ port:'/dev/tty.usbmodemfa131'} ) | |
| , led; | |
| // Listen for lights change | |
| io.sockets.on('connection', function (socket) { |
| # Adapted from http://stackoverflow.com/questions/1733507/how-to-get-size-of-mysql-database | |
| SELECT Round(Sum(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB" | |
| FROM information_schema.tables | |
| WHERE table_schema = "database_name" # Replace this with the name of the database you want to inspect | |
| GROUP BY table_schema; |
| <ul class="ui-tabs"> | |
| <li> | |
| <a href="#tab-1">My Tab 1</a> | |
| </li> | |
| <li> | |
| <a href="#tab-2">My Tab 2</a> | |
| </li> | |
| <li> | |
| <a data-external="http://www.example.com">My External Tab</a> | |
| </li> |
| /* | |
| * Use the small setup below to make the | |
| * jQuery Autocomplete widget show on input-blur, | |
| * rather than on every keypress. | |
| */ | |
| (function ($) { | |
| var field = $('.selector'); | |
| field.autocomplete({ |