This gist will collects all issues we solved with Rails 5.2 and Webpacker
# Last few parameters(--skip-* part) is only my habbit not actully required
$ rails new <project_name> --webpack=stimulus --database=postgresql --skip-coffee --skip-test
{ | |
"vars": { | |
"@gray-base": "#000", | |
"@gray-darker": "lighten(@gray-base, 13.5%)", | |
"@gray-dark": "lighten(@gray-base, 20%)", | |
"@gray": "lighten(@gray-base, 33.5%)", | |
"@gray-light": "lighten(@gray-base, 46.7%)", | |
"@gray-lighter": "lighten(@gray-base, 93.5%)", | |
"@brand-primary": "darken(#428bca, 6.5%)", | |
"@brand-success": "#5cb85c", |
<html> | |
<head></head> | |
<body> | |
<div class="noticia">CARGANDO</div> | |
<script src="https://code.jquery.com/jquery-3.1.0.js"></script> | |
<script> | |
$(function(){ | |
var url = 'https://www.domain.co/index.xml'; | |
var news = $('.noticia'); |
/** | |
* Smooth scroll animation | |
* @param {int} endX: destination x coordinate | |
* @param {int) endY: destination y coordinate | |
* @param {int} duration: animation duration in ms | |
*/ | |
window.smoothScrollTo = function(endX, endY, duration) { | |
var startX = window.scrollX || window.pageXOffset, | |
startY = window.scrollY || window.pageYOffset, | |
distanceX = endX - startX, |
$("#selectBox").append('<option value="option6">option6</option>'); |
This gist will collects all issues we solved with Rails 5.2 and Webpacker
# Last few parameters(--skip-* part) is only my habbit not actully required
$ rails new <project_name> --webpack=stimulus --database=postgresql --skip-coffee --skip-test
As the number of different possible states and transitions between states in a user interface grows, managing styles and animations can quickly become complicated. Even a simple login form has many different "user flows":
https://codepen.io/davidkpiano/pen/WKvPBP
State machines are an excellent pattern for managing state transitions in user interfaces in an intuitive, declarative way. We've been using them a lot on the Keyframers as a way to simplify otherwise complex animations and user flows, like the one above.
So, what is a state machine? Sounds technical, right? It’s actually more simple and intuitive than you might think. (Don’t look at Wikipedia just yet… trust me.)
Let’s approach this from an animation perspective. Suppose you’re creating a loading animation, which can be in only one of four states at any given time:
This article walks you through how to get the ID of any YouTube video.
You may be watching the video or just happened to visit a link to a video. The video ID will be located in the URL of the video page, right after the v=
URL parameter.
having a web server turned on doesn't necessarily mean you are serving pages on the world wide web. its what allows you to load your own static files (.html
, .js
etc.) in a browser via http://
.
if you're not sure whether or not you have a web server running, no problem! its easy to confirm.
import * as firebase from 'firebase/app'; | |
import 'firebase/firestore'; | |
var firebaseConfig = { | |
// your firebase credentials | |
}; | |
// Initialize Firebase | |
firebase.initializeApp(firebaseConfig); |