Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Philipp Meißner PhilippMeissner

🏠
Working from home
View GitHub Profile
View angular.json
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"XX-frontend": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "XX",
View gist:ac901fae1022c46859fe08b01b41c5fa
yarn install v1.22.0
[1/5] 🔍 Validating package.json...
[2/5] 🔍 Resolving packages...
[3/5] 🚚 Fetching packages...
[4/5] 🔗 Linking dependencies...
warning " > @angular/http@7.2.16" has incorrect peer dependency "@angular/core@7.2.16".
warning " > @angular/http@7.2.16" has incorrect peer dependency "@angular/platform-browser@7.2.16".
warning " > @ngrx/effects@8.6.0" has incorrect peer dependency "@angular/core@^8.0.0".
warning " > @ngrx/router-store@8.6.0" has incorrect peer dependency "@angular/common@^8.0.0".
warning " > @ngrx/router-store@8.6.0" has incorrect peer dependency "@angular/core@^8.0.0".
@PhilippMeissner
PhilippMeissner / gist:4a719870ac1dfb91776e4d728c528e69
Created Feb 25, 2020
Output which displays hanging before command
View gist:4a719870ac1dfb91776e4d728c528e69
-----> Apt app detected
-----> Detected Aptfile or Stack changes, flushing cache
-----> Adding custom repositories
-----> Updating apt caches
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:2 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease [46.3 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1,344 kB]
Get:6 http://apt.postgresql.org/pub/repos/apt bionic-pgdg/main amd64 Packages [293 kB]
@PhilippMeissner
PhilippMeissner / gist:21e387c544873c4381e74d56338c5c1b
Created Feb 25, 2020
Output which displays hanging after command
View gist:21e387c544873c4381e74d56338c5c1b
-----> Apt app detected
-----> Detected Aptfile or Stack changes, flushing cache
-----> Adding custom repositories
-----> Updating apt caches
Get:1 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:2 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease [46.3 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1,344 kB]
Get:6 http://apt.postgresql.org/pub/repos/apt bionic-pgdg/main amd64 Packages [293 kB]
View gist:34fad4c03b175a4adb55438654f999d5
Compiling @angular/material/stepper : module as esm5
Compiling angular-animations : module as esm5
NOW IT STOPS. NOTHING.
52% building 354/357 modules 3 active ...timizer/webpack-loader.js??ref--8-0!/Users/philippmeissner/....
View gist:654c599394cd66a9e56fc25a78270a25
Compiling @Angular/core : module as esm5
Compiling @Angular/common : module as esm5
Compiling @Angular/platform-browser : module as esm5
Compiling @Angular/platform-browser-dynamic : module as esm5
Compiling @Angular/common/http : module as esm5
Compiling @Angular/forms : module as esm5
Compiling @Angular/cdk/keycodes : module as esm5
Compiling @Angular/cdk/platform : module as esm5
Compiling @Angular/cdk/observers : module as esm5
Compiling @Angular/cdk/a11y : module as esm5
View gist:a96c2686cad6214dc3261b3b48162c98
import {HttpClientTestingModule, HttpTestingController} from '@angular/common/http/testing';
import {inject, TestBed} from '@angular/core/testing';
import {AviorBackendService} from './avior-backend.service';
describe('AviorBackendService', () => {
beforeEach(() => TestBed.configureTestingModule({
imports: [HttpClientTestingModule],
providers: [AviorBackendService],
}));
View Receiver.ino
#include <SPI.h>
#include <Wire.h>
#include <RF24.h>
// https://quadmeup.com/generate-ppm-signal-with-arduino/
#define CHANNEL_NUMBER 1 //set the number of channels
#define CHANNEL_DEFAULT_VALUE 1000 //set the default servo value
#define FRAME_LENGTH 22500 //set the PPM frame length in microseconds (1ms = 1000µs)
#define PULSE_LENGTH 300 //set the pulse length
View Sender.ino
#include <SPI.h>
#include <Wire.h>
// TMRh20 v1.3.1
#include <RF24.h>
#define POTI_PIN 3
#define CE_PIN 9
#define CSN_PIN 10
#define MAGIC_STORAGE_ADDRESS 0xE8E8F0F0E1LL
View Adwords API Currencies
# See https://developers.google.com/adwords/api/docs/appendix/codes-formats#currency-codes
[
{
'code': 'AED',
'symbol': 'د.إ',
'name': 'United Arab Emirates Dirham',
},
{
'code': 'ARS',
'symbol': 'AR$',
You can’t perform that action at this time.