Skip to content

Instantly share code, notes, and snippets.

@dankrause
dankrause / ssdp.py
Last active July 8, 2024 02:05
Tiny python SSDP discovery library with no external dependencies
# Copyright 2014 Dan Krause
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@ozh
ozh / gist:5607258
Last active December 17, 2015 12:09
Firefox Responsive mode: custom resolutions

How to add custom resolutions in Firefox Responsive Mode

  1. open about:config
  2. look for devtools.responsiveUI.presets
  3. paste the following string: `[{"key":"2560x1440","width":2560,"height":1440},{"key":"1920x1200","width":1920,"height":1200},{"key":"1680x1050","width":1680,"height":1050},{"key":"1600x1200","width":1600,"height":1200},{"key":"1600x900","width":1600,"height":900},{"key":"1440x900","width":1440,"height":900},{"key":"1366x768","width":1366,"height":768},{"key":"1280x1024","width":1280,"height":1024},{"key":"1280x800","width":1280,"height":800},{"key":"1280x768","width":1280,"height":768},{"key":"1152x864","width":1152,"height":864},{"key":"1024x768","width":1024,"height":768},{"key":"800x600","width":800,"height":600},{"key":"800x1280","width":800,"height":1280},{"key":"768x1024","width":768,"height":1024},{"key":"640x960","width":640,"height":960},{"key":"360x640","width":360,"height":640},{"key":"320x480","width":320,"height":480},{"key":"320x396","width":320,"height":396},{"key":"2
@lucaspiller
lucaspiller / never_gonna.ws
Created June 1, 2012 14:04
Never Gonna Give You Up (Whitespace)