Skip to content

Instantly share code, notes, and snippets.

@jjwwcc
jjwwcc / trade.js
Created February 15, 2023 03:08 — forked from suddjian/trade.js
const Alpaca = require('@alpacahq/alpaca-trade-api')
// minimist is used to parse command line arguments
const minimist = require('minimist')
const minimistOpts = require('minimist-options')
// conf helps with saving config options to a file
const Conf = require('conf')
const config = new Conf({ configName: 'alpacacli' })
const alpaca = new Alpaca({
keyId: config.get('keyId'),
@jjwwcc
jjwwcc / readme.md
Created February 15, 2023 02:20 — forked from cdevroe/readme.md
YouTube pop-up Bookmarklet

YouTube Pop-up Bookmarklet

I forget where I found this originally (sorry). And I've modified it slightly over the years. But if you're on YouTube in a desktop browser and you'd like to have the video in a small pop-up window, tap this bookmarklet and it automatically creates the perfectly sized window for you.

How to install

  1. Create a new bookmark with any URL.
  2. Edit that bookmark in your browser, delete the URL that is there, and paste the code you see in the JS file into the Location field.

You're welcome / Colin