This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"command": "projectManager.listGitProjects#sideBarGit", | |
"key": "cmd+o" | |
}, | |
{ | |
"command": "expand_region", | |
"key": "ctrl+=", | |
"when": "editorTextFocus" | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Solution do | |
#Enter your code here. Read input from STDIN. Print output to STDOUT | |
def read do | |
case IO.read(:stdio, :line) do | |
:eof -> :ok | |
{:error, reason} -> IO.puts "Error: #{reason}" | |
data -> | |
IO.write(:stdio, "Hello, World. \n") | |
IO.write(:stdio, data) | |
read() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How to install the latests version of ruby | |
# 1. clone ruby/ruby | |
# 2. autoconf | |
# 3. ./configure | |
# 4. cd ext/openssl && ruby extconf.rb --with-openssl-dir=<openssl_root>; make; make install | |
# 5. cd ../../ | |
# 6. make | |
# 7. make install-nodoc | |
# You should be ready ti run this script!!!! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "dry/monads/result" | |
class ApplicationForm | |
include Dry::Monads::Result::Mixin | |
include ActiveModel::Model | |
def self.attribute(name, options = {}) | |
self.send(:attr_accessor, name) | |
_attributes << Attribute.new(name, options) | |
end |