Discover gists

View nuxtjs-nestjs.md

This is my take on fullstack development using NuxtJS and NestJS.

Development steps

  • Lerna monorepo
  • TypeScript linting and formatting
  • Minimal NestJS server
  • Minimal NuxtJS client
  • Environment configuration
  • TypeGraphQL
  • TypeORM / MySQL

View UN_Population_2019.csv

We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.

Country;Country code;1950;1951;1952;1953;1954;1955;1956;1957;1958;1959;1960;1961;1962;1963;1964;1965;1966;1967;1968;1969;1970;1971;1972;1973;1974;1975;1976;1977;1978;1979;1980;1981;1982;1983;1984;1985;1986;1987;1988;1989;1990;1991;1992;1993;1994;1995;1996;1997;1998;1999;2000;2001;2002;2003;2004;2005;2006;2007;2008;2009;2010;2011;2012;2013;2014;2015;2016;2017;2018;2019;2020
China;156;554419;569909;582576;593366;603052;612242;621363;630678;640296;650213;660408;670953;682103;694339;708255;724219;742415;762581;784075;805986;827601;848760;869486;889485;908464;926241;942685;957891;972205;986132;1000089;1014022;1027949;1042431;1058172;1075589;1095014;1116095;1137724;1158357;1176884;1192897;1206711;1218817;1230020;1240921;1251636;1261996;1271982;1281515;1290551;1299130;1307352;1315304;1323085;1330776;1338409;1345994;1353569;1361169;1368811;1376498;1384206;1391883;1399454;1406848;1414049;1421022;1427648;1433784;1439324
India;356;376325;382377;388799;395544;402579;409881;417443;425271;433381;441799;450548;459642;469077

View LoginRepoFlow.kt

class LoginRepoFlow(private val apiHelper: ApiHelper) : BaseDataSource() {
//login user with flow
suspend fun loginUserFlow(userModel: UserModel) : Flow<Resource<LoginResponse>> {
return flow {
val result = safeApiCall { apiHelper.login(userModel) }
emit(result)
}.flowOn(Dispatchers.IO)

View DomPDFHelper.php

<?php
namespace Netwerkstatt\Helper;
use SilverStripe\View\TemplateGlobalProvider;
class DomPDFHelper implements TemplateGlobalProvider
{
/**
* @return array

View object_5.js

const spaceship = {
name: "Millenium Falcon",
manufacturer: "Corellian Engineering Corporation",
maxSpeed: 1100,
color: "Light gray"
};
spaceship.color = "Gold";
spaceship["maxSpeed"] = 1500;
console.log(spaceship);