Skip to content

Instantly share code, notes, and snippets.

@poshl9k
poshl9k / launch
Created October 12, 2021 06:19 — forked from vvvlad/launch
debug django with javascript in vscode
{
"version": "0.2.0",
"configurations": [
{
"name": "Django",
"type": "python",
"request": "launch",
"stopOnEntry": false,
"program": "${workspaceFolder}/manage.py",
"args": [
@poshl9k
poshl9k / remotehintpoll.php
Created May 30, 2021 17:23 — forked from lgaetz/remotehintpoll.php
Simple PHP script that checks the extension status at a remote PBX and updates a custom hint on the local pbx for proper BLF operation.
<?php
/**** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** **** ****
* remotehintpoll.php
*
* Created by Lorne Gaetz lgaetz@sangoma.com
*
* Latest version: https://gist.github.com/lgaetz/8545099
*
* Licensed under GNU GPL version 2 or any later verison.
@poshl9k
poshl9k / image_widget.py
Created October 9, 2020 14:40 — forked from ssokolow/image_widget.py
PyQt 5.x code for Just Do What I Mean™ image display in the presence of animated GIFs and containers with no fixed aspect ratio
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""Example code for a PyQt image-display widget which Just Works™
TODO: Split this into a loader wrapper and a widget wrapper so it can be used
in designs which maintain a preloaded queue of upcoming images to improve
the perception of quick load times.
"""
from __future__ import (absolute_import, division, print_function,