Skip to content

Instantly share code, notes, and snippets.

View Spone's full-sized avatar
🚴

Hans Lemuet Spone

🚴
View GitHub Profile
@Spone
Spone / avo-output.txt
Last active February 28, 2023 01:02
ViewComponent::Codemods::V3SlotSetters codemod output
$ avo git:(main) rails runner ../../vc/codemods/script.rb
Using ViewComponent path: app/components
Using Views path: app/views, ../app/views
134 ViewComponents found
2 ViewComponents using slots found
6 view component files found
19 view files found
Detected slots:
- `Avo::PanelComponent` has slots: tools, body, sidebar, bare_content, footer_tools, footer
@Spone
Spone / resume.json
Last active May 20, 2022 14:35
resume.json
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Hans Lemuet",
"label": "Développeur web",
"image": "",
"email": "hans@spone.net",
"phone": "",
"url": "",
"summary": "Ces derniers temps, je code chez Etamin Studio & je chill avec Californie Française.\nJ'enseigne également Ruby on Rails de temps à autres dans les bootcamps Le Wagon en Europe.\n\nPrécédemment, j'ai travaillé chez GOG.com et Upian.com.\n\nJe suis diplômé de Gobelins depuis 2010.",

Keybase proof

I hereby claim:

  • I am spone on github.
  • I am hanslemuet (https://keybase.io/hanslemuet) on keybase.
  • I have a public key ASBpVbPrDGTqB0D6E27yC8yL8596SkVTiv_jzpqooJ6odAo

To claim this, I am signing this object:

ActionView::Template::Error (Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true):
15:01:36 web.1 | 1: - content = capture do
15:01:36 web.1 | 2: = image_tag image
15:01:36 web.1 | 3: .admin-media-meta
15:01:36 web.1 | 4: strong.admin-media-meta-name(title=@media.filename)= @media.filename
15:01:36 web.1 | 5: .admin-media-meta-size=< number_to_human_size(@media.byte_size)
actionpack (5.2.0) lib/action_dispatch/http/url.rb:63:in `full_url_for'
actionpack (5.2.0) lib/action_dispatch/http/url.rb:53:in `url_for'
actionpack (5.2.0) lib/action_dispatch/routing/route_set.rb:339:in `block in <class:RouteSet>'
.header(data-controller="header")
= link_to root_path, class: "header-logo", tabindex: 1
= logo
.sr-only Va Voom
nav.header-nav(data-target="header.nav")
ul.header-nav-items
- items.each_with_index do |item, index|
li.header-nav-item(class=item.modifiers)= link_to item.text, item.href, tabindex: index + 3
button.header-nav-toggle(type="button" data-action="header#toggle" tabindex="2") •••
class Chef
attr_reader :name, :restaurant
def initialize(name, restaurant)
@name = name
@restaurant = restaurant
end
end
class Car # always CamelCase
def initialize(color = "white") # constructor
puts "I create a new car"
# The instance variables
@color = color
@engine_started = false
@brand = "Toyota"
end
def start # instance method
require 'open-uri'
require 'nokogiri'
require 'json'
url = "https://news.ycombinator.com/"
doc = Nokogiri::HTML(open(url))
filepath = "news.json"
items = []
require 'json'
puts "Welcome to the Chrismas list!"
# Settings
filepath = "list.json"
# Load the items from the JSON file (only if it exists)
if File.exist?(filepath)
serialized_list = File.read(filepath)
# Chrismas List in pseudo-code
# 1. Welcome
puts "Welcome to the Chrismas list!"
# items = [
# 'puppy',
# 'bag',
# 'video game'