Skip to content

Instantly share code, notes, and snippets.

View lebnic's full-sized avatar

Nicolas Leblanc lebnic

  • Montreal, Canada
View GitHub Profile
@x1unix
x1unix / app.component.ts
Created April 22, 2017 02:31
Angular 2 Route - Change page title based on route
import { Component, OnInit } from '@angular/core';
import { isNil } from 'lodash';
import { ActivatedRoute, Router, NavigationEnd } from '@angular/router';
import { Title } from '@angular/platform-browser';
@Component({
selector: 'l2-app', // <my-app></my-app>
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss'],
})
@veuncent
veuncent / docker_debugging.md
Last active February 21, 2024 00:58
Debugging Django apps running in Docker using ptvsd - Visual Studio (Code)

Remote debugging in Docker (for Django apps)

In order to enable debugging for your Django app running in a Docker container, follow these steps using Visual Studio (Code):

  1. Add ptvsd to your requirements.txt file
ptvsd == 4.3.2
  1. To your launch.json, add this: