Skip to content

Instantly share code, notes, and snippets.

View joshdavenport's full-sized avatar
🦉
Hooting and Howling

Josh Davenport-Smith joshdavenport

🦉
Hooting and Howling
View GitHub Profile
// Name: BBC Sounds Player
// Description: Stream a radio station from BBC Sounds
// Author: Josh Davenport-Smith
// Twitter: @jdprts
import "@johnlindquist/kit";
import { WidgetAPI } from "@johnlindquist/kit/types/pro";
const PLAYER_WIDTH = 180;
const PLAYER_HEIGHT = 195;
// Name: NTS Live
// Description: Stream NTS Live Channel 1 or 2
// Author: Vogelino, extended by Josh Davenport-Smith
// Twitter: @soyvogelino, @jdprts
import "@johnlindquist/kit";
const PLAYER_HEIGHT = 76;
const PLAYER_WIDTH = 205;
// Name: NTS Live
// Description: Stream NTS Live Channel 1 or 2
// Author: Vogelino, extended by Josh Davenport-Smith
// Twitter: @soyvogelino, @jdprts
import "@johnlindquist/kit";
const PLAYER_HEIGHT = 76;
const PLAYER_WIDTH = 205;
// Name: NTS Live
// Description: Stream NTS Live Channel 1 or 2
// Author: Vogelino, extended by Josh Davenport-Smith
// Twitter: @soyvogelino, @jdprts
import "@johnlindquist/kit";
const PLAYER_HEIGHT = 76;
const PLAYER_WIDTH = 205;
// Name: NTS Live
// Description: Stream NTS Live Channel 1 or 2
// Author: Vogelino, extended by Josh Davenport-Smith
// Twitter: @soyvogelino, @jdprts
import "@johnlindquist/kit";
const PLAYER_HEIGHT = 76;
const PLAYER_WIDTH = 205;
// Name: NTS Live
// Description: Stream NTS Live Channel 1 or 2
// Author: Vogelino, extended by Josh Davenport-Smith
// Twitter: @soyvogelino
// Shortcut:
import "@johnlindquist/kit";
const PLAYER_HEIGHT = 76;
const PLAYER_WIDTH = 205;
// Name: Open Notion URL in Notion App
import "@johnlindquist/kit"
const url = await arg('What is the Notion URL?');
if (!url.includes('notion.so')) {
throw new Error('Not a Notion URL');
}
@joshdavenport
joshdavenport / a-gallery.md
Created January 13, 2018 12:04
Basic reusable jekyll gallery utilising variable

Keybase proof

I hereby claim:

  • I am joshdavenport on github.
  • I am joshdavenport (https://keybase.io/joshdavenport) on keybase.
  • I have a public key whose fingerprint is 2D49 23A5 62CA 7C03 53CF 943F 3A9E 02A6 CED7 1D27

To claim this, I am signing this object:

@joshdavenport
joshdavenport / get-mage-config-path-from-selection.js
Last active August 29, 2015 13:58
Find Magento configuration path of selected field in WebKit
(function() {
/**
* Super simple to use, inspect the field (input, select, whatever) with developer tools and run this code from a
* bookmarklet, pasted into console or even as a snippet. You'll be prompted with the field where you can copy it
* for whatever you may need it for :)
*/
function getMageConfigPathFromInput(inputElement) {
var splitFieldName = inputElement.attributes['name'].value.replace('groups','').replace(/\[/g,'').split(']');
return /section\/(.*?)\//g.exec(window.location.href)[1] + '/' + splitFieldName[0] + '/' + splitFieldName[2];
}