- @idlehands: I don't post new things
- @idlehahands@mastodon.social: if I post new things, it's here
- help@testingelixir.com: I like to help people
- Testing Elixir Book: the sample code is downloadable without buying the book
https://www.nuget.org/packages/dotnet-aspnet-codegenerator/ | |
---dotnet tool install --global dotnet-aspnet-codegenerator --version 3.0.0 | |
https://gavilan.blog/2018/04/28/asp-net-core-2-doing-scaffolding-with-dotnet-cli-aspnet-codegenerator/ | |
---dotnet aspnet-codegenerator controller -name GameController -actions -outDir Controllers -m Game -dc GeneralContext | |
Must be created model, DBContext. |
const resursaModel = require('../../models/resursa-red'); | |
const competenteS = require('../../models/competenta-specifica'); | |
module.exports = (params) => { | |
return resursaModel.find({_id: params.idres}).populate({ | |
path: 'competenteS' | |
}).exec().then( (resursa) => { | |
// console.log(resursa); | |
if (resursa[0].content) { | |
let articleHTML = ''; | |
resursa[0].content.blocks.map(obj => { |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>Add React in One Minute</title> | |
</head> | |
<body> | |
<h2>Add React in One Minute</h2> | |
<p>This page demonstrates using React with no build tooling.</p> |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
The Phoenix Framework was built with realtime communication as a first class priority. Using its built in socket handling and channels we can implement a basic, realtime chat application with little effort.
For this video we’re going to assume that you already have Elixir and Phoenix Setup. You will not need a database as the messages will not be persisted. This tutorial is taken pretty much directly from the Phoenix Documentation.
To start let’s generate a standard phoenix application:
$> mix phoenix.new instachat
@kangax created a new interesting quiz, this time devoted to ES6 (aka ES2015). I found this quiz very interesting and quite hard (made myself 3 mistakes on first pass).
Here we go with the explanations:
(function(x, f = () => x) {
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
/* CSS */ | |