Skip to content

Instantly share code, notes, and snippets.

View wickathou's full-sized avatar

Javier Hernandez wickathou

View GitHub Profile
@wickathou
wickathou / rails_with_bootstrap_asset_pipeline.md
Created November 24, 2023 05:34
Rails 7 + Bootstrap 5 — Are you getting an error saying: ‘The asset “application.css” is not present in the asset pipeline’ ? This is the solution

Problem:

Your app build with Rails 7 + Bootstrap 5 is showing an error saying

The asset “application.css” is not present in the asset pipeline

You might be getting this error when you clone a rails app with bootstrap or other assets which need to be compiled first, which bundle install can’t do.

Solution:

All you need is to precompile the assets of your rails app, which is done using

@wickathou
wickathou / expressFCC8.js
Created July 19, 2019 01:37
freeCodeCamp Node.js challenge #8
app.get('/now',(req,res,next)=> {
req.time = new Date().toString();
next();
}, (req,res)=> {
res.json({'time':req.time});
});
@wickathou
wickathou / index.html
Last active January 28, 2023 08:49
Transition animation
<div class="wrapper">
<div class="frame" id="b1">
<div class="center">
<p id='areYouText'>are you?</p>
<p class="line" style="width:105px"></p>
<p class="line" style="width:85px"></p>
<p class="line" style="width:95px"></p>
</div>
</div>
<div class="frame" id="b2">