Skip to content

Instantly share code, notes, and snippets.

View alexismansilla's full-sized avatar
🌨️
Full Snack

Alexis Mansilla Ruiz alexismansilla

🌨️
Full Snack
View GitHub Profile
Top level ::CompositeIO is deprecated, require 'multipart/post' and use `Multipart::Post::CompositeReadIO` instead!
Top level ::Parts is deprecated, require 'multipart/post' and use `Multipart::Post::Parts` instead!
/Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/faraday-multipart-1.0.3/lib/faraday/multipart/file_part.rb:54: warning: constant ::UploadIO is deprecated
/Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/faraday-multipart-1.0.3/lib/faraday/multipart/file_part.rb:56: warning: constant ::Parts is deprecated
/Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/faraday-multipart-1.0.3/lib/faraday/multipart.rb:19: warning: constant ::UploadIO is deprecated
/Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/bootsnap-1.7.7/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require': dlopen(/Users/alexismansilla/.asdf/installs/ruby/2.6.8/lib/ruby/gems/2.6.0/gems/pg-1.2.3/lib/pg_ext.bundle, 0x0009): Librar
<Table dataSource={data}>
<ColumnGroup title="Name">
<Column title="First Name" dataIndex="firstName" key="firstName" />
<Column title="Last Name" dataIndex="lastName" key="lastName" />
</ColumnGroup>
<Column title="Age" dataIndex="age" key="age" />
<Column title="Address" dataIndex="address" key="address" />
<Column
title="Tags"
dataIndex="tags"
return (
<Form form={form} name="horizontal_login" layout="inline" onFinish={onFinish}>
<Form.Item
name="username"
rules={[{ required: true, message: 'Please input your username!' }]}
>
<Input prefix={<UserOutlined className="site-form-item-icon" />} placeholder="Username" />
</Form.Item>
<Form.Item
name="password"
@alexismansilla
alexismansilla / array_rotation.rb
Created June 16, 2021 21:19
Create a small script that rotates elements without using rotate method (ruby)
require 'rspec'
# Returns a new array with the rotated positions
# when the count is major to one I'm going to call the divmod method
#
# Finally the result has summed the elements with different positions based on divmod method.
#
#
# @param ary [Array<Integer>]
# @param count [Integer]