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
- https://medium.com/ | |
- https://www.websiteboosting.com/ | |
- https://www.reddit.com/r/webdev/ | |
- https://t3n.de/ | |
- https://hackernoon.com/ | |
- https://www.heise.de/ | |
- https://www.smashingmagazine.com/ | |
- https://dzone.com/refcardz | |
- https://css-tricks.com/ | |
- https://morioh.com/ |
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
https://code.visualstudio.com/docs/remote/containers | |
https://www.youtube.com/watch?v=TVcoGLL6Smo |
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
FROM ruby:2.6.4 | |
RUN apt-get update -qq && apt-get install -y build-essential libpq-dev apt-utils | |
RUN mkdir /renteninfo | |
WORKDIR /renteninfo | |
COPY Gemfile /renteninfo/Gemfile |
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
<% @posts.each do |post| %> | |
<%= post.title %><br> | |
<% post.content.embeds.each do |embeds| %> | |
<%= url_for(embeds) %><br> | |
<%= image_tag(embeds, size: "#{embeds.metadata[:width] == nil ? (ActiveStorage::Analyzer::ImageAnalyzer.new(embeds).metadata[:width]) : embeds.metadata[:width]}x#{embeds.metadata[:height] == nil ? (ActiveStorage::Analyzer::ImageAnalyzer.new(embeds).metadata[:height]) : embeds.metadata[:height]}") %><br> | |
<% end %> | |
<%= post.content.embeds.length %><br> | |
<hr> | |
<% end %> |
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
1.) Prepare the 4 files: Dockerfile, Gemfile, Gemfile.lock, docker-compose.yml | |
2.) Generate the app: $ docker-compose run web rails new . --force --database=postgresql --skip-bundle | |
3.*) If in Linux: sudo chown _R $USER:$USER . | |
Finally: ) | |
Run: | |
docker-compose up | |
If you have any issues with missing gems and any time you cahnge your Gemfile or Dockerfile, run: |
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
1.) create directory: $ mkdir appname | |
2.) enter directory $ cd appname | |
3.) initialise npm $ npm init | |
4.) install webpack $ npm install webpack webpack-cli webpack-dev-server css-loader html-webpack-plugin style-loader --save-dev | |
5.) add script in package.json: "start:dev": "webpack-dev-server" | |
6.) Add webpack-config including script (from this Gist) | |
7.) add folder "dist" + index.html & bundle.js (including content associated with files from this Gist) | |
8.) add folder "src" + index.js & style.css (including content associated with files from this Gist) | |
9.) Import stylesheet import "./style.css" | |
10.) In index.html <script src="bundle.js"></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
dasdasdas |
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
source 'https://rubygems.org' | |
git_source(:github) { |repo| "https://github.com/#{repo}.git" } | |
ruby '2.6.3' | |
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | |
gem 'rails', '~> 6.0.1' | |
gem 'actiontext' | |
# Use postgresql as the database for Active Record | |
gem 'pg', '>= 0.18', '< 2.0' | |
gem "figaro" |
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
package de.producto.tbw.page.v5; | |
import java.io.File; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; | |
import javax.servlet.http.HttpServletRequest; |
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
$git push heroku master | |
--> works fine until: | |
remote: [1/4] Resolving packages... | |
remote: [2/4] Fetching packages... | |
remote: info There appears to be trouble with your network connection. Retrying... | |
remote: info There appears to be trouble with your network connection. Retrying... | |
remote: info There appears to be trouble with your network connection. Retrying... | |
remote: info There appears to be trouble with your network connection. Retrying... | |
remote: error An unexpected error occurred: "https://registry.yarnpkg.com/material-design-icons/-/material-design-icons-3.0.1.tgz: ESOCKETTIMEDOUT". |